Commit 466f8bdc authored by Elias Broschin's avatar Elias Broschin
Browse files

portals cancelled abort mission

parent 792b7d27
......@@ -116,12 +116,10 @@ namespace gdw {
if(input.mouseWheelY() < 0.f) {
auto cam = engine_.game_play_system().level_manager().camera();
cam->position(cam->position()+glm::vec3(0,1.f,1.f));
level_manager.set_weapon(weapon_type::tractor_beam);
}
if(input.mouseWheelY() > 0.f) {
auto cam = engine_.game_play_system().level_manager().camera();
cam->position(cam->position()+glm::vec3(0,-1.f,-1.f));
level_manager.set_weapon(weapon_type::portal_gun);
}
if(input.isPressed(inputMaping::beam_normal)) {
......@@ -251,7 +249,6 @@ namespace gdw {
if(!type_comp) continue;
if(type_comp->get_object_type() == "ACCELERATOR") {
ray_length_ = asteroid_hit ? ray_length_ : ray_length_*1.5f;
beam_velocity += 10.f;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment