Added malfunctioning ship.

Currently it doesn't seem to be detecting the key preses.
This commit is contained in:
2018-03-25 17:47:31 +02:00
parent 80113d51ff
commit 88f3a5f1a5
8 changed files with 54 additions and 118 deletions
+9
View File
@@ -18,6 +18,8 @@
#pragma once
#include <allegro5/allegro.h>
struct ship {
float x, y; ///< The x and y coordinates of the ship.
float velX, velY; ///< The x and y velocities of the ship.
@@ -44,3 +46,10 @@ void ship_init(struct ship *ship, int x, int y);
* @param ship A pointer to the ship object.
*/
void ship_update(struct ship *ship);
/**
* @brief Draw the ship.
*
* @param ship Ship object to draw.
*/
void ship_draw(struct ship *ship);