SNES Mode 7 in Monkey!
Submitted by Earok on Sat, 08/20/2011 - 00:17I promise, this'll be the last Monkey demo for awhile! Use cursor keys or hold down mouse button to drive. (I'd be interested to hear how it performs on an iPad).
So, finally I thought up a way to do a Mode 7 type effect in Monkey that looks good, runs smooth (though it could be optimised further by sacrificing some detail) and was actually reasonably easy to program as well.
This is technically a "ray caster", but doesn't cast to every single row and column pixel like my previous "floor caster" did. Rather, it sends out a single ray for each row, and detects where it hits the map. The map texture is then translated, rotated and scaled appropriately, and drawn on screen (with the viewport clipped to that single row, so it doesn't obscure the rows above or below it). In essence, the map is redrawn 240 times each render, which is once per horizontal line from the center of the screen to the bottom.
Maybe I actually will do Earok Kart now. Who wouldn't want a kart game with Nik the Kiwi, Thalia the Elf, Noah or the WitchBlaster? Maybe with some race tracks on the Blow Stuff Up Island or the space ship from Derelict.
Comments
Extremely cute! I approve. Especially as I'm a big fan of Mario Kart :)
Cheers mate.
Heh, awhile back we had a couple of Texans staying with us who happened to happened to mention that they love the N64 Mario Kart and play it about once a year. So I loaded it up on the Wii and we had a great time.
Incidentally I have never played the SNES Mario Kart, but I spent many hours as a kid playing the Shareware version of Wacky Wheels.
To be honest, I only tried the SNES original after falling in love with the N64 edition. It didn't do it for me. But yeah, looooove the N64 (even though the AI cheats shamelessly!) and DS versions. Wii and GC also pretty cool.
Hah. Reminds me more of whacky wheels. :P
Heh. The tech demo is actually kind of a hybrid of both games. The graphics are obviously a direct rip from Super Mario Kart, but the viewport is more or less identical to the Wacky Wheels one (Even in one player, Super Mario Kart was split screen, with the bottom screen being the map).
I actually really liked Wacky Wheels. I think it still had the "elastic" AI that'd catch up to you absurdly easy, but the power ups were far less frustrating and required more skill to use. (There wasn't a powerup that zapped every other driver from memory). Also the death match was great, though I haven't played the SNES Mario Kart death match.
I do have Mario Kart on Wii as well as the Sonic racing game, I need to get back into them both sometime.
Mario Kart on Wii... I found it MEH. You _really_ needed the stearing wheel extensions methinks. I want to play WW again... But there are a lot of things I want to play again. :S Hrm.. $10, including first time electronic download system registration. Peh, Forget it. The full version is SOMEWHERE.
My sister wants to find the old Magic School bus games, we had to write off our cds as they were so badly damaged. :S
I think I prefer Mario Kart with the wheel but it doesn't affect gameplay too much.
$10 isn't too bad I guess, but it sucks that 3D Realms don't put their legacy games on Steam like ID did. I'd almost certainly buy a complete pack if they did one.
It's cool they've made some of their classics freeware though, like Major Stryker and Biomenace.