summaryrefslogtreecommitdiff
path: root/sim.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-12-07 17:16:14 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-12-07 17:16:14 -0500
commit62d79ffc94f7ea177bd1a0745604490214e1e036 (patch)
tree8edd6b2c49956bb27e96324eef2d1520306ef6d3 /sim.h
parent2227e40af76aa10d87bbcce0f7df73d98407881b (diff)
physics?
Diffstat (limited to 'sim.h')
-rw-r--r--sim.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sim.h b/sim.h
index 124efe5..4de3191 100644
--- a/sim.h
+++ b/sim.h
@@ -110,6 +110,12 @@ typedef struct {
} Platform;
typedef struct {
+ v2 pos; // position
+ v2 vel; // velocity
+ float radius;
+} Ball;
+
+typedef struct {
bool initialized;
i32 win_width, win_height; // width,height of window
@@ -122,6 +128,8 @@ typedef struct {
ShaderPlatform shader_platform;
ShaderBall shader_ball;
+ Ball ball;
+
u32 nplatforms;
Platform platforms[1000];