Have a really bad walking sound.

This commit is contained in:
Zed A. Shaw 2025-02-22 13:26:33 -05:00
parent 20cbc3a21c
commit 3720340ab7
4 changed files with 6 additions and 2 deletions

View file

@ -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);