How do I make a Mode 7 Racing game?

TheArtisan

  • Posts: 11
Um, hi. I want to make a racing game in Mode 7, which is kind of Fake 3D in a sense. Have a look at these two links and tell me if this video and what I've written on this Wiki Page is possible in Stencyl.

http://www.youtube.com/watch?v=1ntffRUHvPA

http://dimensionfive.wikia.com/wiki/Magic_Kart

spoogob

  • Posts: 1106
You could probably fake it with a bit of work. There's a user here called jffilion83 , who loves making these kinda fake 3d/arcade type games - have a look at some of his stuff on the stencyl arcade. Like I say, you could probably do something like it, but may take some work.

gamegirlxl

  • Posts: 713
I've been working on testing the limits of Stencyl with 3D, and I'll say that this seems possible.  I can think of a rough basis for the game, but I think it's going to be pretty hard to make your stuff turn.

But I'm pretty sure that all of the earliest racing games, like Mario Kart, Sonic R, or the Sega game you posted used 2D engines.

jffilion83

  • Posts: 131
Hey Artisan,

Yeah Ive been trying to do this for a while. Theres some limitation currently which prevent the research from going forward. Ive been tempted to continue the thing with some new codes Ive seen in SadiQ demo, the bouncing ball. Since the ball is deformed in all angle, it could be possible to use this approach to map a square texture  that is fullscreen and then maybe and rotate / scale it, "mode 7" style. So far my attempt at faking it use another rendering method based on a lot of simple elements being draw in a way that it give a 3d feel. I've sent you a Private message if you interested in discussing the subject.

« Last Edit: November 13, 2013, 10:54:22 am by jffilion83 »

gamegirlxl

  • Posts: 713
codes Ive seen in SadiQ demo, the bouncing ball. Since the ball is deformed in all angle, it could be possible to use this approach to map a square texture  that is fullscreen and then maybe and rotate / scale it, "mode 7" style. So far my attempt at faking it use another rendering method based on a lot of simple elements being draw in a way that it give a 3d feel.

I've asked SadiQ about this and it uses (real code) matrices.  You can do skews, rotations, and translations with matrices, although this isn't true 3D (actually, further up in 3D game programs, they use special matrices that work for 3D, and it operates in the same way).  However, I haven't used these, since I've worked with drawing polygons to make 3D stuff, which allows "real 3D".

However, if you look at something like Sonic R, there's like 8 images for each car/driver.  There's no fancy stuff happening, except maybe with the track.  And I've drawn polygons that might suit your needs.

Hi probably way too late with this but it is possible to get a similar effect to mode 7 I tried with this a while ago but lost motivation as I had way too much on my plate with other stuff. http://www.stencyl.com/game/play/17027 as you can see its really simplified just scaled sprites without any rotating or other effects and even then struggles to run at reasonable speed .

gamegirlxl

  • Posts: 713
Hi probably way too late with this but it is possible to get a similar effect to mode 7 I tried with this a while ago but lost motivation as I had way too much on my plate with other stuff. http://www.stencyl.com/game/play/17027 as you can see its really simplified just scaled sprites without any rotating or other effects and even then struggles to run at reasonable speed .

The car definitely works the same as those found in retro racing games (except less perspectives because you're not spinning on banana peels).  It's definitely interesting how you did the track, which works like a spine of sorts.  Although I probably was envisioning a later generation of racing games (the Mario Kart one I was thinking of had places where the track crossed itself), this does seem to be very close too effect that comes from Sonic R and maybe that game with Captain Falcon.

I would have guessed that there's lots of lag that comes with this, because I've got lots of lag with the stuff I've done.  Matrices may in fact help cut down on some of the lag.  I actually saved myself a bit of trouble by switching to Opengl and C++, although that brought problems because I have to work harder creating the actual code.  I'd guess that it would be easier for most people just to try to find a workaround with Stencyl and Flash, though...

Ah good old f-zero the first mode7 racer, think I might be trying to find my old GBA later. Reckon this was a little more like outrun or a game of around that time though. I have to wish you luck with this though would love to see the results of all the hard work, using matrices are something I need to read up on makes brain hurt at the moment.

flavioarruda

  • Posts: 28
Hello monkeyinamansuit!!!

Where a find Diamond or mine race?

I was looking for it in Stencyl Forge but there is nothig there!

Hi Flavioarruda,
I never uploaded any of the behaviours on the forge and this was a few years back now ( stencil 2.0 or something like that) .
No idea if it will work the same or not with the current version but will try  dusting off my old laptop to see if I can post some of the code blocks if you want. What bits did you want to see?
Off to bed now but will try it tomorrow.