(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
04-23-23 05:17 PM
Acmlm's Board - I3 Archive - - Posts by Rad Racer
User Post
Rad Racer
Newcomer


 





Since: 05-31-06

Last post: 6169 days
Last view: 6169 days
Posted on 05-31-06 09:40 PM, in Rad Racer Link
Does anyone know how they programmed games like Rad Racer I & II? I'm trying to make my own racing game and I'm not sure how to go about it. I wasn't sure if this belonged in here or the programming board, so feel free to move it if it needs to be.
Rad Racer
Newcomer


 





Since: 05-31-06

Last post: 6169 days
Last view: 6169 days
Posted on 06-01-06 06:40 PM, in Rad Racer Link
I don't necessarily need to know how it was programmed on the NES. I really just need to know how to go about programming a game like it. Specifically, how you'd make the road have a 3D effect to it.
Rad Racer
Newcomer


 





Since: 05-31-06

Last post: 6169 days
Last view: 6169 days
Posted on 06-01-06 11:30 PM, in Rad Racer Link
I'm using Game Maker to make it. While it does have 3D support, I really want my game to have a nostalgic feel to it. If anyone has ideas on how to program "fake" 3D, then that's great, but if not, I could always just use real 3D.
Rad Racer
Newcomer


 





Since: 05-31-06

Last post: 6169 days
Last view: 6169 days
Posted on 06-02-06 05:10 AM, in Rad Racer Link
Originally posted by Squash Monster
I don't really know the game in question so I'm doing this from vague memories and screenshots.

Get an image of a horizontal slice of road. Draw it full-sized at your current location. Draw a second copy scaled down a bit farther out. Draw another, smaller one farther. Keep going for some number of road slices.

Keep track of how far forward you've moved so far and where the track is supposed to turn at that point. Move each slice to the side based on how the course is supposed to turn.


Psuedocode follows:

track = {0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,-1,-1,-1,-1,-1,0,0,0,0,0,1,2,2,2,2,1,0}
x = 0
y = screenHeight
height = 20
for position = carposition to arbitraryNumber
drawRoad(x,y,imageWidth,height)
height = height - 1
x = x + track[position]
y = y - height
end for


In this example, the array track represents the amount of turning the track has at any given point, and the function drawRoad(x,y,width,height) draws a horizontal slice of road at (x,y) with width width and height height.


Awesome! With a little tweaking, I made a nice looking 3D-ish road! I've got the basics, so I think I can handle the rest from here. Thank you so much for getting me started!
Acmlm's Board - I3 Archive - - Posts by Rad Racer


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.010 seconds; used 351.45 kB (max 415.87 kB)