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 Racer - HOW?

Author
Message
Mr Pointless
21
Years of Service
User Offline
Joined: 17th Oct 2004
Location: Stuck in the UK
Posted: 27th Nov 2004 04:03
I'd like to do a racing game in DB Pro using similar graphics to OutRun or the Lotus games on the Amiga. I've got my program to draw the road on screen. It's probably rubbish, but I've:
*Made a road image
*Made an animated sprite from it, each frame being the width of the bitmap horizontally an one pixel vertically
*Cloned it until a top-down road fills the screen
*set each sprite one frame after the one above it
*and scaled each sprite in such a way, that I have a basic road going off into the distance

It runs smoothly (at the 60 fps that I set it for) at this point.

Now my problem is, when I try to set each sprite's priorities, it runs sluggishly. About 10 fps.

Any ideas anyone?
Sorry, but I couldn't provide the code at the moment. Can't remember where I save it!
Flashing Blade
23
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 27th Nov 2004 22:59
Out run was programed using a technique called mode7. Its a technique that modifies a bitmap using a pseudo z-axis. I'd put my trigonometry hat on and search "mode 7" on google.


The word "Gullible" cannot be found in any English Dictionary.
Benjamin
23
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 28th Nov 2004 09:09
Yeah, and you might wanna work with memory rather than sprites, its a lot faster.

AKA teh great Pet Rat.
Peace sells...but who's buying??
Mr Pointless
21
Years of Service
User Offline
Joined: 17th Oct 2004
Location: Stuck in the UK
Posted: 29th Nov 2004 01:39
Erm, Mode 7 is Nintendo's technology isn't it? F-Zero used Mode 7, but I think AM2 used their own tricks for OutRun.

Work with memory? Haven't learnt to do that yet.

Login to post a reply

Server time is: 2026-06-11 14:50:05
Your offset time is: 2026-06-11 14:50:05