aboutsummaryrefslogtreecommitdiff
path: root/source/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/game.c')
-rw-r--r--source/game.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/game.c b/source/game.c
new file mode 100644
index 0000000..941b176
--- /dev/null
+++ b/source/game.c
@@ -0,0 +1,10 @@
+#include "all.h"
+
+void game_frame(game_t * game, size_t frame, float x, float y) {
+ game->frame_x[frame] = x;
+ game->frame_y[frame] = y;
+}
+
+Vector2 game_frame_vector(game_t * game, size_t frame) {
+ return (Vector2) { game->frame_x[frame], game->frame_y[frame]};
+}