Have a really bad walking sound.
This commit is contained in:
parent
20cbc3a21c
commit
3720340ab7
4 changed files with 6 additions and 2 deletions
|
@ -7,6 +7,7 @@
|
|||
#include <numbers>
|
||||
#include "systems.hpp"
|
||||
#include "events.hpp"
|
||||
#include "sound.hpp"
|
||||
|
||||
namespace gui {
|
||||
using namespace components;
|
||||
|
@ -201,6 +202,8 @@ namespace gui {
|
|||
Point move_to = $main_ui.plan_move(dir, strafe);
|
||||
|
||||
if($level.map->can_move(move_to) && !$level.collision->occupied(move_to)) {
|
||||
fmt::println("PLAYING WALK");
|
||||
sound::play("step_leather_1");
|
||||
state(MOVING);
|
||||
} else {
|
||||
state(IDLE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue