EDIT: *** Last updated on: 8-29-04 ***
Pic (yep, that's Mario):
I've been working on a tile-based 2D game engine. In doing so I am recreating Super Mario Bros. Here is what I have so far, source code and all. I've been working on it during 1 hour intervals that I have free in between conducting my dissertation research. I haven't touched the code in a while but it is starting to get interesting. There is no actual game play yet but a lot of the nuts and bolts are there. There's also no animation as I have been too lazy to work out how to do it well.
Nothing is tweaked yet and everything is still very rough. I included source code because it is fun to look at (and laugh at, in this case) other people's source code.
My goal is to make a nice engine for a game idea I have. I would also like to get this Mario clone working multiplayer via internet (yeah right). In addition, I thought it would be a good idea to post all this stuff in the event that my house in Orlando gets pulverized by Charlie the big-ass hurricane this weekend
I'd also like feedback if it doesn't run at the right speed. I am not sure how it runs on other machines. The only thing I am doing to control speed is set the sync command. Also, my key handling code is weak - I hate that DBpro is not "event-based". As a result, weirdness happens if you try to press more than one key at a time (which I know is dumb beacuse you are always holding down the jump button while moving in Mario games!).
Here are the keys:
Move: left and right arrows.
Jump: Z (hold for more height)
Run: Hold shift
Shoot fireball: Left Control
Debug stuff:
w: Toggle debug view on or off
A/D: inc/dec jump velocity
W/S: inc/dec gravity (Mario only for now)
Up/Down arrows: inc/dec jump floatiness
Grow/Shrink Mario: G (you can break blocks when you are BIG!)
Right mouse button: Toggle tile edit mode on or off
Return: View monster data
Tile edit mode-
Left mouse button: add tile at cursor
Mouse wheel: select tile to draw with
c: hide tile palette
h: help
***************************
Last updated on 8-29-04
Changes since orignial post:
* Improved key-input, MUCH improved collision
* Mushrooms work somewhat
* Added a new demo level, physics tiles, and the ability to run.
* Added a built in tile editor (no save function yet)
* Improved debug display
* Improved object and monster handling
Download it from:
http://home.earthlink.net/~3ddd/mario.zip
Derek
He's evil, but, he'll die. I like it.