Asteroids (Rice Rocks) version1 in Python with SimpleGui
This is my first version of Asteroids (Rice Rocks) in Python using SimpleGui. I have only a ship and one asteroid.
The ship has basic movements and a thrust image when the "up" arrow is pressed down and an accompanying sound with the thrust.
The asteroid's movement is random and disappears from the screen. You can the game so far in the video.
This is expected to be a two week project. However, once again, I expect that this is based on the belief that the students don't work. For some one who has a regular job, this is probably a 3 or 4 week project.
For the first week, we are only expected to have a ship (with proper movement), an asteroid ( with proper movement) and a missile. I still need to work on the ship's movement and the missile.
With regard to the ship's movement. I just copied my code from the Pong game and added that as a method on the ship's class. There are 2 images for the ship: one without thrust and one with thrust. This is done using a boolean value. If the keydown is True then the program uses the ship image with thrust and the accompanying sound. If the keydown is Fale then the program uses the ship image without the thrust and no sound. By default, the ship keydown is set to False.
All the images and sound are provided by Rice University.
The original template is as follows:
The asteroid and ship image is then added.
The ship has basic movements and a thrust image when the "up" arrow is pressed down and an accompanying sound with the thrust.
The asteroid's movement is random and disappears from the screen. You can the game so far in the video.
This is expected to be a two week project. However, once again, I expect that this is based on the belief that the students don't work. For some one who has a regular job, this is probably a 3 or 4 week project.
For the first week, we are only expected to have a ship (with proper movement), an asteroid ( with proper movement) and a missile. I still need to work on the ship's movement and the missile.
With regard to the ship's movement. I just copied my code from the Pong game and added that as a method on the ship's class. There are 2 images for the ship: one without thrust and one with thrust. This is done using a boolean value. If the keydown is True then the program uses the ship image with thrust and the accompanying sound. If the keydown is Fale then the program uses the ship image without the thrust and no sound. By default, the ship keydown is set to False.
All the images and sound are provided by Rice University.
The original template is as follows:
The asteroid and ship image is then added.
Comments
Post a Comment