Flash Game Physics Demo
I wrote a very simple yet customizable physics engine in Flash as part of a proof of concept / tech demo for a game. It's not really fun, but I thought I'd put it on here to prove I did it. Pirated Megaman sprites, ahoy!
- Gravity, weight, friction, material type and collisions (floors/walls/objects).
- "Plug and play" physics. Tie material values into any object and the engine handles the rest.
- GUI level design. Simply drag/drop floors/walls/objects into the stage and the engine snaps them in.
- Left, Right - Move
- Up - Jump
- Spacebar - Auto Fire
This is the final test. This is Megaman jumping around a Mario arena. Megaman/balls/shells interact with the multiple walls/floors. For "fun" you can try to get as many balls as possible into the far right side. Or just whatever.
Play Game Demo
Original Physics Tests
This are the tests I used to build the base physics for the above engine. (No real walls/floors yet.) This is just Megaman running around w/ bouncing balls/shells w/ a locked floor. The 50 ball version is rather impressive. Megaman also fires shells faster in this demo than in the final game demo.
Play - 50 balls - No inter-ball collisions
Play - 5 balls - Simplistic inter-ball collisions
This simplistic game was coded in about a week during those days of boring college classes back in 98. It was coded from scratch in Notepad, compiled in Suns freebie Java SDK, and the graphics were handdrawn and colored in Photoshop. The music was ripped from the Macintosh version of Descent.
When the game loads, click on the game area to have the game "see" the keyboard.
- Thrusters - Up Arrow
- Rotate - Left Arrow, Right Arrow
- Hyperspace - Down Arrow
- Fire - Spacebar
- Reset Game - ESC
- Speed Info Toggle - F1
- You fly around with your thrusters and fire at the roids. Pressing left and right rotates your ship, while pressing up fires your boosters. Pulling back on the "joystick", down, causes your ship to go into hyperspace ( you warp randomly anywhere on the screen ).
- When a large roid is hit, it breaks into two roids, when a medium sized roid is hit, it breaks into a smaller one, and when a small one is hit, it vanashes. A large roid is 100 points, a medium is 200, and a small is 300 points.
- Every so often, a CowShip, a flying saucer driven by a cow, will pop on the screen. This dangerous dame will shoot small roids at you and then exit off the right side of the screen. Shooting it gives you 300 points.
- Every 20,000 points, youll get an extra life. Also, randomly when a roid is hit, or even when the CowShip shoots at you, an extra life powerup, a gray ball with an "L" inside, may fly off. Grab it for an extra life, but make sure not to shoot it, or let it scroll off the screen, or you will loose it and gain no points.
- At the start of each level, or when you die, your ship will disappear for a few seconds. After a moment, a small flashing circe with the words "Press Fire!" on top of it will blink on the screen, and when you press the spacebar, you will be dropped on top of the circle. This helps cut down on getting smashed at the begining of a new level or after repop when you get blown up.
- It is a good idea to shut down all other programs to allow DAhCROIDS to run at max speed. While this game does have auto frame calabration, if your computer isnt fast enough, the game will still run slow ("!!!" Will appear in the lower right hand corner).
I coded this while learning Flash 4 scripting. The graphics are really shot from my personal Mr. Aterhead.
Simply drag the pieces around. Click the "X" at the lower right corner to open a menu. The rotational buttons modify the last piece clicked.
MUD Project (Screenshot Only)
What the heck is a "MUD" you ask? Its a "MultiUser Dungeon". Its a "Server" that runs on one computer somewhere in the world, and unlimited people can get into the one game (using a "Client" on their computer), so that you interact, talk, and play with literally thousands of people at a time in a huge Fantasy (or other genre) world. Well, JCP here had always wanted to code one, and I successfully did so. Below you can check out a screen shot of it running... However, I got sick of doing huge projects that Im not getting paid for, so the project is dead. Dead. Dead. And, no, you cant have the source code.
What was coded:
- World Time, Days, and Weather
- Support for unlimited players, MOBs, Items, Vehicles
- Complete Player, MOB, and Item interaction
- Anti-hack security
- Everything else a Server would do.
- Real Time God Editing
- Plugin-Based Configurable GUI
With all the hard work, hundred of hours, and personal physical health that was wasted on the project, I wanted to at least put a little shrine on here. RIP, MUDie. You were schweet while you lasted.