Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / 2d Dynamic terrain

Author
Message
GeeB
20
Years of Service
User Offline
Joined: 9th Jul 2003
Location:
Posted: 28th Nov 2003 23:45
I was going to start making a 2d tank game with dynamic terrain, similar to scorched earth. I'v almost got it working exactly how i want it, but i'm having a problem getting the terrain to fall down. Insted it just collects on the bottom and you can't see it fall. I want to know if it would be really complicated to get it to work the way i want or if im just making a stupid mistake.
Thanks.

ps.
make sure you are in fullscreen 640x480 true color not 16bit
click the mouse to create terrain
GeeB
20
Years of Service
User Offline
Joined: 9th Jul 2003
Location:
Posted: 29th Nov 2003 22:54
Never mind... i figured it out today, my vertical loop just had to count backwards insted of from 0. Stupid mistake! Anyway i included the source for a little snow program using memblocks I get a constant 31 fps on a 2.0ghz athlon with a geforce3. Test it out and see what you get. If you can find a way to make it run faster I'd like to know!
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 30th Nov 2003 13:29
Nice work ... apart from the fact that I wouldn't have done it that way

I get 7fps on my laptop. With a few changes to get the syncing right (SYNC ON:SYNC RATE 0 at the top and change the final SYNC RATE 0 to just SYNC) I can boost that to 8fps.

However, if I remove that set of loops in the middle and replace them with a COPY MEMORY command, I boost the frame rate to 42fps

My laptop is an 850PIII BTW
GeeB
20
Years of Service
User Offline
Joined: 9th Jul 2003
Location:
Posted: 1st Dec 2003 22:30
Yeah your version definitly runs faster! I get 60 fps. Only, is there any way to get the snow to build up like i had before and still keep the high framerate? If there was that would be really cool! Thanks for your help.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 2nd Dec 2003 12:05
IanM, is your version suppose to look like snow falling and not have the terrain stay at the bottom of the screen? 100fps with that.
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 2nd Dec 2003 16:35
Well, I obviously didn't leave it running long enough to see the whole effect ... let me think about it for a while and I'll see what I can come up with
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 2nd Dec 2003 17:51
How about something like this:

ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 2nd Dec 2003 22:14
360fps for me with that last one


GO TO THE ETERNAL DESTINY FORUMS!!! http://forums.eternaldestinyonline.com
Do it now!!!
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 2nd Dec 2003 23:58 Edited at: 2nd Dec 2003 23:59
I get high 70's dropping to low 70's on my laptop

Still, with a small optimisation, I can boost it into the mid-90's

With yet another, I can boost it to 106 constant

Stand back! Master of optimisation at work

GeeB
20
Years of Service
User Offline
Joined: 9th Jul 2003
Location:
Posted: 3rd Dec 2003 03:14
Amazing work IanM! Thanks for all your help
GeeB
20
Years of Service
User Offline
Joined: 9th Jul 2003
Location:
Posted: 8th Dec 2003 23:23
Heres a good one.. Is there anyway to put this on a 3d plain?
CloseToPerfect
21
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 10th Dec 2003 07:17
make memblock from bitmap
make image from memblock
then texture the plane with that image

CTP

Lifes short, try to enjoy it and not take it to seriously!

Login to post a reply

Server time is: 2024-05-09 01:21:21
Your offset time is: 2024-05-09 01:21:21