add command for spawning glider
[carveJwlIkooP6JGAAIwe30JlM.git] / testing.c
index af79381488b15d3846d25dcaa27566c364644586..2e581637e017e040f12b6fda8ec9c3c7e58b7f55 100644 (file)
--- a/testing.c
+++ b/testing.c
@@ -21,6 +21,13 @@ static void testing_update(void){
       q_identity( baller.rb.q );
       rb_update_matrices( &baller.rb );
    }
+
+   if( vg_getkey( SDLK_8 ) ){
+      localplayer.have_glider = 1;
+      localplayer.glider_orphan = 0;
+      player_glide.t = -1.0f;
+   }
+
    vg_line_boxf_transformed( baller.rb.to_world, baller.box, VG__RED );
 
    world_instance *world = world_current_instance();