Commit Graph

17 Commits

Author SHA1 Message Date
Bryan Schumaker
ee59446eee spaceblaster: added beam class
I should have added this earlier...
2010-12-31 11:41:04 -05:00
Bryan Schumaker
a84cc3c8f0 spaceblaster: Removed "remaining beams" printout
This was added so I can make sure beams were being removed
2010-12-31 11:39:39 -05:00
Bryan Schumaker
4400f5dee5 engine: Custom minimum game object location
This allows me to set a minimum location either on or off screen (so
that beams fly all the way off the screen before being removed)
2010-12-31 11:37:29 -05:00
Bryan Schumaker
35cc5f09d2 spaceblaster: can fire beams
Beams are currently fired from the current location of the CSE-1670.
They are removed from the game when they are out-of-bounds
2010-12-31 11:34:39 -05:00
Bryan Schumaker
c5fb07a735 spaceblaster: created class CSE1670()
The CSE1670() is the players ship.  This class will be used to represent
the ship.
2010-12-31 11:06:06 -05:00
Bryan Schumaker
4a8d2325c4 spaceblaster: Created ArcadeShip() class 2010-12-31 11:03:22 -05:00
Bryan Schumaker
b14c1be7e3 spaceblaster: Move TestState() to ArcadeState()
This patch changes the TestState() class into an ArcadeState() class,
and moves the state to a new file.
2010-12-31 10:44:34 -05:00
Bryan Schumaker
6f2b080b0c Added game objects
A game object has a position, speed and surface associated with it.  I
can move a game object either left or right.
2010-12-30 22:52:38 -05:00
Bryan Schumaker
bdd003977b Added key_up event handler 2010-12-30 22:17:51 -05:00
Bryan Schumaker
8b66ce81f2 added logic step before rendering game states 2010-12-30 21:31:23 -05:00
Bryan Schumaker
00f9948a34 Can calculate maximum / minumum x position for images 2010-12-30 21:13:18 -05:00
Bryan Schumaker
323fc4a289 Move image left or right based on key press 2010-12-30 20:59:54 -05:00
Bryan Schumaker
afc3ea43f4 Draw an image on a screen
I can now draw an image on the screen during each render step
2010-12-30 20:44:35 -05:00
Bryan Schumaker
848788a5c6 Added spaceblaster
Spaceblaster is my test game while building the engine
2010-12-30 19:34:08 -05:00
Bryan Schumaker
dfbf2d56d8 Added current state tracker 2010-12-30 19:30:44 -05:00
Bryan Schumaker
2c06c3d42b Initialize games, add GameState base class, call render()
First, the game package needs to be initialized after the game engine

Second, every game should inherit states from the base GameState class

Finally, the game state should be rendered after every iteration of the
event loop.
2010-12-30 19:23:23 -05:00
Bryan Schumaker
3e49b93f83 Added initial files
The inital files import the engine and the game directory.  This also
adds a .gitignore file.
2010-12-30 17:31:13 -05:00