Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: GameEngine/GameEngine.h
- Revision:
- 20:febd920ec29e
- Parent:
- 19:1bc0a2d22054
- Child:
- 21:f7d7834e3af1
diff -r 1bc0a2d22054 -r febd920ec29e GameEngine/GameEngine.h --- a/GameEngine/GameEngine.h Sun May 03 18:15:58 2020 +0000 +++ b/GameEngine/GameEngine.h Mon May 04 10:47:06 2020 +0000 @@ -43,9 +43,15 @@ /** Creats bullet object if button A is pressed*/ void create_bullet(); - /** Draws each bullet object*/ + /** Draws each bullet object*/ void draw_bullets(); + /** Creats alien object*/ + void create_alien(); + + /** Draws each alien object*/ + void draw_aliens(); + // Variables ----------------------------------------------------------- // Direction of joystick @@ -54,6 +60,9 @@ // Vector to store each new bullet object std::vector<Weapons> bullet_vector; + // Vector to store each new alien object + std::vector<Alien> alien_vector; + // Objects ------------------------------------------------------------- // Gamepad object @@ -68,8 +77,6 @@ // Map object Map map; - // Alien object - Alien alien; };