Alright, so I've finally gotten the game looking like the simplified version of the final product. I have enemy ships (just the generic ships so far). The ships randomly change their x and y velocities to make the effect they have in the original game where the ships sort of bump back and forth as to make it harder to shoot them. When the number of enemies on the screen is equal to 3 and the number of Enemy bullets on the screen is equal to 0, I have a number generator pick a number between 0 and 2 (for the purpose of using it as the index of the 3 enemies on the screen in listOfEnemies). Once that one is chosen, I then make him fire a bullet at you.
Things still to come:
- Graphics
- More diverse Enemy ships (ones that shoot a laser, and others who separate into two smaller ships once shot, and a combination of both)
- More then one Level
- I'll have a Level number screen and a game over screen (to give it that video game feel)
- Point system
- Lives
Good stuff, Matt!
ReplyDeleteDo the ships only fire when there are three of them, or is "the number of enemies on the screen is equal to 3" just an example?
A random ship on the screen will be selected once there are exactly 3 enemy ships on the screen. Another way of doing this to stay dedicated to the original game is to just check which enemy is closest to the ground and have him fire the bullets while the other two ships are just flying around and being annoying. I can't decide which I like better. It will become more apparent once I upgrade the graphics from simple black rectangles fluttering around the screen.
ReplyDelete