summaryrefslogtreecommitdiff
path: root/sim.hpp
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-12-09 15:32:12 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-12-09 15:32:12 -0500
commit9ca2a24de737b18d681a016557e4a037751e32bf (patch)
tree04b06760c4d699b3be0b3ed9efb23cf2e3efdb11 /sim.hpp
parent13e81cdeb7994ebf062729d7e8407d22e401d459 (diff)
set rotate speed in editor
Diffstat (limited to 'sim.hpp')
-rw-r--r--sim.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim.hpp b/sim.hpp
index 7cfbe59..2a83412 100644
--- a/sim.hpp
+++ b/sim.hpp
@@ -132,13 +132,13 @@ typedef struct {
float angle;
bool moves; // does this platform move?
+ bool rotates; // does this platform rotate?
// if it's a moving platform
float move_speed;
v2 move_p1;
v2 move_p2;
-
float rotate_speed;
u32 color;
@@ -163,6 +163,7 @@ typedef struct {
float win_width, win_height; // width,height of window in pixels
v2 mouse_pos; // mouse position in Box2D (not GL) coordinates
+ bool shift, ctrl; // is either shift/ctrl key down?
float dt; // time in seconds since last frame