+#define STEP_INTERVAL 1000
+
+void update(float dt)
+{
+ static long prev_step;
+ int step[][2] = {{-1, 0}, {0, -1}, {1, 0}, {0, 1}};
+
+ cgm_vec3 vdir = {0, 0, -1};
+
+ upd_player_xform(&player);
+ cgm_vmul_m3v3(&vdir, player.view_xform);
+
+ player.dir = (int)(2.0f * (atan2(vdir.z, vdir.x) + M_PI) / M_PI + 0.5f);
+
+ /*
+ if(time_msec - prev_step >= STEP_INTERVAL) {
+ if(input[INP_FWD]) {
+ }
+ }
+ */
+}
+