Saturday, November 20, 2010

Space Invaders Project - Completed

Finally put on the finishing touches, just about everything is done, and I've had a great time doing this. Hoping to maybe convert my Space Invaders game to iPhone/Android app in the future (just for fun).

I had a little fun with my app. I turned the background blue (which looks kind of cool), I switched out some of the art with other art (such as my sons head picture), and changed some of the sounds around a bit.

Great project, great class!

Tuesday, November 16, 2010

Latest update - Almost completed



So I went through the checklist and completed a good portion of the items, I also did a little bit of cleanup as well as changing out some of the images (I liked some of Michael Henson's monster images better).

Right now the only thing on my to-do list for this project is:
- Game Cycle - Return to select screen after game over
- Collisions - Ship laser explodes on hitting top of screen
- Collisions - laser explodes on alien bombs
- Alien Grid - more than one alien can drop bombs at once
- UFO - UFO drops bombs
- Sound - UFO sound
- Sound - better explosion sound
- Shields - Dissolve effect when destroyed

I'll hopefully get most of those done before turning in. If not, it's a fairly functional game right now (I've posted my latest screenshot).

Friday, November 12, 2010

2 Player implemented



Okay, I didn't realize until last class that we were supposed to implement 2 player mode, so I worked on a solution to it. I ended up going with a new object "SpaceInvadersLevel" which held the ship, the enemies, the barriers and all of that. As well as the level the player was on, how many lives, and the score.

If they choose a 1 player game I just instantiate one of these objects, if they choose 2 player I instantiate 2 of them and switch back and forth between them when the player loses a life or goes to the next level (I think that's how it's supposed to work).

Had all sorts of weird bugs with my Laser singleton, but finally figured it out.

A few more things to go and I'll be all done.

Thursday, November 11, 2010

New features!



Okay, new features added today:
- Sound: You can't tell from the picture, but it's there. Currently only the "moving" sound, firing sound and explosions.
- Intro Screen: You can see from the previous post
- Bombs sprite flip: I realized that the bombs are actually a switching sprite too, so I added that.
- Some cleanup, mostly in the level creation areas.

Update


Ok, as you can see I've added the "intro" screen. I just sit there until the user hits "1" or "2" (maybe I should some instructions to let the user know they need to do that).

Currently not doing anything, I just toggle a boolean value, but I don't read the value or anything. I'll need to add "2 players" later on if I get time. I also need to add transitions between the levels. I do have levels, but when they reach "level 2" it just resets the grid and keeps going. Even a laser fired during the end of level 1, might hit an enemy in level 2 if they time it right.

Wednesday, November 10, 2010

Final Space Invaders Spec

The Final specification for the Space Invaders game was given to us today, this adds quite a few things that I need to do to match the spec. The things I need to add to complete all items are:

Select Screen
o Instructions
o High score
o Points for each type of alien
o 1 or 2 player selection
o Credits (optional)

Game Cycle
o Game goes through the following cycles:
 Select Screen
 Instructions/points for each type of player
Select 1 or 2 player Enter Game
Play game until player dies 3 times Cycling between player 1 and player 2
o if in 2 player mode
 Game over screen Update high score if it’s a new high score
 Select screen Return to this screen

Game should be able to
o Each level should get progressively harder
 Initial states: Alien grid position lower to the ground than previous level Alien rate faster than previous level

Score
o High score is updated at the End of Game
 if it’s a new high score displacing the old one.

Player

 Collision:
Missile hits Alien Bomb
o Sound effect on missile launch

Alien Grid
 No one alien can drop more than one bomb at a time  Individual aliens can re-launch bombs
if their respective bomb hits a shield, player’s missile, or ground Aliens can be destroyed by player’s missile
 Music tempo changes as the grid moves faster Adding to the mode and suspense to the game
Launches at random intervals Moves horizontally at top of screen in the right or left direction Launches one bomb at a time


And a few others, I'll add the rest shortly. But just realized I have a lot to do.

Saturday, November 6, 2010

Update - Proceeding nicely



Since last update:

- Added UFO (can be seen in screenshot)
- Added level system (used to just end the game when the last alien had been killed)
- Added a image loader to increase speed slightly
- Added a score singleton so that any object could alter/access score
- Added a 4th barrier
- Cleaned up some code.

So far going well, things I need to still do:
- Sounds
- Barrier 'starbust'

Having tons of fun!