aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorUneven Prankster <unevenprankster@protonmail.com>2023-08-27 19:48:24 -0300
committerUneven Prankster <unevenprankster@protonmail.com>2023-08-27 19:48:24 -0300
commitb7603d3d8a59b8f4ea22927f8bb35ebf75f74acb (patch)
tree54c8bf374bd777d42b3311d03d3080f4005e3597 /src/main.c
parent8769c45f025d61ff506579baa2f35ff39a246bdc (diff)
Controller + Keyboard support
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index c881a18..4fc9bc2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3,17 +3,25 @@
#include "shader_sys.h"
#include "script_sys.h"
+#include "controller.h"
+#include "rand_sys.h"
+
int main()
{
InitWindow(640, 480, "Gunner Engine");
SetTargetFPS(60);
+ rand_seed();
+
init_tex_sys();
init_shader_sys();
init_script_sys();
while(!WindowShouldClose()){
+ float dt = GetFrameTime();
+ poll_rumble(dt);
+
update_textures();
update_shaders();