Monday, February 16, 2009
Tank game sketch out
This is me figuring out some of the fundamentals to the Tank game for the final in Flash class.
What follows is a big chunk of psudo-psudo code for the game.
Game name: Tank-ity-Tank.
Conceptually stolen from the tanks game for the Wii Play. The hard part is creating the code and the content.
Concept: Player controls a Tank and shoot enemy tanks. Shooting all enemy tanks lets the player advance to the next level. Getting hit reduces the player’s life counter. No lives: game over. Life’s gained by score, which is gained from killing enemy tanks.
Elements:
-Player tank,
-Player tank health, can take a few hits and collect health power-ups left by some enemies.
-enemy tanks of various ‘type.’ Can tell apart by color. Differ in smartness, speed, shooting. Or just a lot of simple AI dummies if I can’t figure out different levels of stuff.
-Shells by player and enemies, can ‘hit’ other shells or a target.
+ hope to add bouncing off walls
-Walls. Cannot be destroyed.
-Life counter
-Score counter (score based on enemies killed)
-Splash screens to start and at the end.
+ high score initials entry?
Additional stuff if I can get to it:
-mines laid by player, some enemies, area blast, triggered by going too close or getting shot.
- Destructible walls, destroyed by mines.
-Health levels: player has better armor, can survive a few hits. Need to track and display this data.
-Powerups. Either just there or from killed enemies. Health, lives, different shots, exploding shots, faster shots, tracking shots?
That’s enough I’d say.
Controls:
-moved by keyboard arrow keys, or bindable so people can set up their own keyset.
-Shoot with mouse, using mouse cursor to aim.
How the hell is this supposed to work?
It’s all on the x y coordinate system, so it should be possible to use that and collision squares for most things. Class files to have Tank, shell, and wall objects that I can populate the screen with, so each level is just a lot of instances.
What I don’t know vaguly how to do: shell paths based on target x/y from mouse click. Bouncing of shells off wall. AI scripting. Most of the expandable stuff.
Powerups actually should be easy, just edit the player tank and support it visually somehow. Powerup objects and collision events.
To do, where to start:
Have tank class,
Move tank with keys.
Have turret on tank
Have shell class
Tank shoot shell
Tank shoot shell at mouse click.
Add bad guy tank from tank class
Shoot bad guy tank. Collision script
Add walls.
Shoot walls
Run into walls.
Ect.
AI programming of bad guys
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment