Game Programming – Assignment day 13

Started on the bullet class today.

Made a bullet that spawns on the screen at coordinates x100 y100, will change this later to be dependent on the player’s position.

The bullet moves upwards slightly faster than the player, may change this later to be much faster than the player speed.

Created a bool method called ”Fire” in the player class that returns true when space is pressed.

The intention is to make bullet objects spawn at the players cannon when pressing space using the method ”Fire”.

 

UPDATE: The bullet now spawns by the player ship.