diff -r c600984d0428 -r bfe1077edab3 src/proto2/Graphics.cc --- a/src/proto2/Graphics.cc Tue Dec 02 01:46:18 2008 +0000 +++ b/src/proto2/Graphics.cc Wed Dec 03 12:09:42 2008 +0000 @@ -51,6 +51,11 @@ if (keyboard.get_keycode(CL_KEY_I)) player->debugInfo(); + + if (keyboard.get_keycode(CL_KEY_F)) { + Engine::log(DEBUG, "Graphics.check_input") << "Fire!"; + player->shoot(); + } if (keyboard.get_keycode(CL_KEY_M)) input_move |= INPUT_MOVE_DIG; @@ -75,6 +80,12 @@ p->draw(gc); } + // Draw projectiles + for (std::list::iterator it = state.projectiles.begin(); it != state.projectiles.end(); it++) { + PhysicsObject *po = *it; + po->draw(gc); + } + // Flip window buffer, LIEK NAO win.flip(0); }