Raycasting Example Source

Post here your demos and examples with the source files.
Forum rules
Always post the games with a screenshot.
The file must have the ged and data files (complete game source)
Use the forum attachment to post the files.
It is always better to use the first post to put the game files

Raycasting Example Source

Postby mcveighja » Mon Jan 08, 2007 3:36 am

Raycasting Example Source.
Feedback would be greatly appreciated.

Thanks
Jason (KidsCo)

[EDIT] by makslane
Attachments
gefox.gif
gefox.zip
(241.46 KiB) Downloaded 2270 times
mcveighja
 
Posts: 5
Joined: Mon Jan 08, 2007 1:51 am
Score: 9 Give a positive score

Postby marathon332 » Mon Jan 08, 2007 11:49 am

That's very cool demo!

But it really sucks up the processing power...

Have you been able to make a playable game with it yet?
User avatar
marathon332
 
Posts: 57
Joined: Tue Sep 06, 2005 4:00 am
Score: 2 Give a positive score

Postby makslane » Mon Jan 08, 2007 12:19 pm

Amazing! :shock:

I will work to optimize the engine to execute better this kind of code.

Thanks!
makslane
Site Admin
 
Posts: 3945
Joined: Sat Apr 05, 2003 6:47 pm
Score: 178 Give a positive score

Postby kellyrey » Mon Jan 08, 2007 4:06 pm

very cool demo!

This makes me wonder if it would be possible to have game editor support some type of plug in mechanism. If we had this type of ability we would not need any perf work in game editor as we could simply make CPU intensive code native.
kellyrey
 
Posts: 20
Joined: Tue Dec 19, 2006 9:56 pm
Score: 2 Give a positive score

Increase Speed of Demo

Postby mcveighja » Mon Jan 08, 2007 4:56 pm

INCREASE SPEED OF DEMO

GEWOLF_SCREEN_WIDTH = 320;
GEWOLF_SCREEN_HEIGHT = 240;

The speed can be increased by reducing the resolution. There are two integer variables that determine the resolution, "GEWOLF_SCREEN_WIDTH" and "GEWOLF_SCREEN_HEIGHT". They are initialized within the "Create Actor" event for the "Screen" canvas. If you reduce them to 320x240 it will function at a playable frame rate. The bottleneck is definately in the "setpen()" and "putpixel()" functions.

Thanks
Jason (KidsCo)
mcveighja
 
Posts: 5
Joined: Mon Jan 08, 2007 1:51 am
Score: 9 Give a positive score

Postby kellyrey » Mon Jan 08, 2007 5:21 pm

you beat me to it. I was about to post a reply to this effect.

I set the height and width though to the height and width of the actor canvas in the example i am working with as this allowed me to dry different sizes of views simply by resizing the actor in GE.

Question though have you tried sorting pen changes? I am wondering if the pen issue really is a setting issue or a pen change issue? If it is a change issue then we could simply queue up the pens in an array, sort by pen type, and draw the pixels for a pen at once. Would be interesting to see how much if any this speeds the drawing up.
kellyrey
 
Posts: 20
Joined: Tue Dec 19, 2006 9:56 pm
Score: 2 Give a positive score

Postby Game A Gogo » Mon Jan 08, 2007 11:39 pm

AHHHH
this is A-MA-ZING!!!
simply brilliant, if i could fav this demo, I WOULD DO IT 10000 times *goes and check the codes ;)*
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3464
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

FAV ?

Postby mcveighja » Tue Jan 09, 2007 10:38 pm

Thanks =). How do you "fav" a demo ? What is "fav" ?

Thanks
Jason (KidsCo)
mcveighja
 
Posts: 5
Joined: Mon Jan 08, 2007 1:51 am
Score: 9 Give a positive score

Postby Game A Gogo » Tue Jan 09, 2007 11:51 pm

Favorite, lol, your name is jason, just like a game ive previously did ^^
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3464
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: FAV ?

Postby Sgt. Sparky » Sun Apr 22, 2007 1:22 pm

mcveighja wrote:Thanks =). How do you "fav" a demo ? What is "fav" ?

Thanks
Jason (KidsCo)

fav means favorite :D

oh, and AWSOME DEMO JASON!!! :D
(I thought I had allready posted on this :( it must have got deleted :()
EDIT: that was odd, the post by Gogo was not there when I posted this...
yet it says that it was posted in january... xD
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Game A Gogo » Mon Apr 23, 2007 1:25 am

and it is :\
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3464
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Sgt. Sparky » Mon Apr 23, 2007 3:36 am

:D
GREAT DEMO, AWSSSOOOMMMEEE! :D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby scythe » Tue Apr 24, 2007 5:12 pm

Man that looks great, but I cannot get the demo to work, do i need to export it? I am running on my Vista partition atm, could that be it?

Scythe
scythe
 
Posts: 37
Joined: Wed Apr 11, 2007 2:50 pm
Location: Australia
Score: 0 Give a positive score

Postby Sgt. Sparky » Tue Apr 24, 2007 5:14 pm

most likely. :(
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby makslane » Tue Apr 24, 2007 5:27 pm

Just open the ged file and go to the game mode.
Don't works?
makslane
Site Admin
 
Posts: 3945
Joined: Sat Apr 05, 2003 6:47 pm
Score: 178 Give a positive score

Next

Return to Game Demos

Who is online

Users browsing this forum: No registered users and 1 guest