Commit Graph

24 Commits

Author SHA1 Message Date
2cef445289 Updated AsteroidsGame.run() to use mWorld.toArray()
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-05 11:41:40 -04:00
b7ce8d1f37 Increased Display Text font to 14
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-05 11:32:55 -04:00
45c083beda Updated display text to be centered
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-05 11:28:57 -04:00
7310444065 Fixed status bar counts for asteroids and shots
I implmented counters, and simply count the number of objects every
frame.

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-05 11:10:46 -04:00
77561aa328 Updated Status to prevent the stats from going negative
how ever this really more of a bandaid than a fix.

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-04 09:57:13 -04:00
c69b21bbf2 Starting locations for ships, and asteroids are now random
I also added a call to repaint the game's display when the ship hyper
jumps, this allows the display to update the ship's location while the
game is paused.
2012-04-04 09:35:01 -04:00
c0f14c2f2e Decreased rotational speed, and updated AsteroidGame.downShip()
I updated AsteroidGame.downShip() to move & stop the ship, rather than
deleting the current ship and creating a new one. Ships are only
deleted when the game is over.

I added MovingSpaceObject.allStop() to complement the above.

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-04 09:07:00 -04:00
8611bad5b8 Updated comments in main
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-04 00:12:25 -04:00
c46d2b4282 Updated file comments
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-04 00:07:01 -04:00
7ee23b0251 Made asteroids brown
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-04 00:03:48 -04:00
563676f772 Fixed 1up logic to allow for sequential 1ups after 200
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-03 23:50:34 -04:00
74dd62e4d0 Set the Velocity Decay of an asteroids to .999
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-03 23:49:23 -04:00
0e0b001c04 Added a 1up every 200 points
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-03 23:43:54 -04:00
01b1fa016c IMplemtned levels
in each level, there are the equivilent number of asteroids in respect
to the game's level. i.e. level 1 = 1 asteroids, level 6 = 6 asteroids

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-03 23:24:53 -04:00
2d008808c8 updated to remove shots when the they hit asteroids.
updated starting asteroid status count to 1

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-03 13:29:59 -04:00
2152cc8213 Addded in / de crement methods to the Status
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-03 13:24:45 -04:00
738ff31d1e Added Start/Pause feature to [Enter]
Cleaned up redundant key event handling code

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-03 12:13:58 -04:00
87eb6339e1 Started cleaing up the code
Game world objects no longer move (when paused) while the window is
being redrawn for resize events

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-03 11:55:35 -04:00
88b8853c31 Finished bacis collioion handling, and bacis game life cycle funtions.
the came can be started, pasused, restarted, won, and lost

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-02 13:36:30 -04:00
faeb1b790c Fixed space wrap for the asteroids
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-02 11:46:34 -04:00
0556735e64 Added a workign asteroid, next stp is collision detection
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-02 11:39:21 -04:00
6117a5c369 Heres the shot file
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-02 11:28:30 -04:00
1eaca0998a Added Shot
Currently you can shoot balls of light, but they dont do anything yet

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-02 02:19:16 -04:00
c54e39b01c Initial Commit of my Asteroids game clone.
I have started this project, to betterunderstand basic game development.

This commit contains Most of the frame work for the game. Currently the
ship can be flown around the screen.

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-04-02 00:45:43 -04:00