Skip to content

Commit

Permalink
remove untested rumble support
Browse files Browse the repository at this point in the history
  • Loading branch information
vayan committed Nov 19, 2023
1 parent 79c4b16 commit c4eea19
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
2 changes: 0 additions & 2 deletions include/player.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "bn_optional.h"
#include "bn_regular_bg_item.h"
#include "bn_regular_bg_ptr.h"
#include "bn_rumble_actions.h"
#include "bn_size.h"
#include "bn_sprite_builder.h"
#include "bn_sprite_items_bear.h"
Expand Down Expand Up @@ -59,7 +58,6 @@ namespace cd
bn::fixed checkpoint_life = 100;
bn::fixed money = fallback_money;
bn::fixed checkpoint_money = fallback_money;
bn::optional<bn::rumble_toggle_action> rumble;
bn::vector<bn::camera_move_to_action, 3> camera_actions;
};
}
11 changes: 0 additions & 11 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@ void Player::on_tick(Game *game)
{
cursor->on_tick(game);

if (rumble.has_value())
{
rumble->update();

if (rumble->duration_updates() == 200)
{
rumble.reset();
}
}

if (!camera_actions.empty())
{
camera_actions.front().update();
Expand All @@ -55,7 +45,6 @@ void Player::on_hit(Enemy *enemy)
{
life -= enemy->get_strenght();
log("player life is now", life);
rumble = bn::rumble_toggle_action(200);
if (camera_actions.empty())
{
camera_actions.push_back(bn::camera_move_to_action(camera, 2, camera.x() + 10, camera.y()));
Expand Down
3 changes: 2 additions & 1 deletion tools/credits.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"title": "Special Thanks",
"names": [
"Whisky",
"Junio Branco"
"Junio Branco",
"GValiente"
]
}
]

0 comments on commit c4eea19

Please sign in to comment.