Skip to content

Commit

Permalink
limit player cubes prior to release
Browse files Browse the repository at this point in the history
  • Loading branch information
pwalig committed Oct 18, 2024
1 parent 5718785 commit 092cb11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/player_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ game::player::player(const glm::vec3& initial_position, const float& y_rotation)
hand_cubes.push_back(new power_cube(this, &game::cube_presets::jumping));
hand_cubes.push_back(new power_cube(this, &game::cube_presets::speed));
gun_cubes.push_back(new power_cube(this, &game::cube_presets::dash));
gun_cubes.push_back(new power_cube(this, &game::cube_presets::missle));
unused_cubes.push_back(new power_cube(this, &game::cube_presets::jumping));
unused_cubes.push_back(new power_cube(this, &game::cube_presets::speed));
unused_cubes.push_back(new power_cube(this, &game::cube_presets::dash));
unused_cubes.push_back(new power_cube(this, &game::cube_presets::missle));
gun_cubes.push_back(new power_cube(this, &game::cube_presets::jumping));
set_ui_cube_positions();
recoil_rb.movement_drag = 100.0f;
scope_rb.movement_drag = 200.0f;
Expand Down
2 changes: 1 addition & 1 deletion src/player_script.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ namespace game {
glm::vec2 rot = glm::vec2(0.0f);

int max_hand_cubes = 2;
int max_gun_cubes = 3;
int max_gun_cubes = 2;

std::deque<game::power_cube*> hand_cubes;
std::deque<game::power_cube*> gun_cubes;
Expand Down

0 comments on commit 092cb11

Please sign in to comment.