diff --git a/assets/config.json b/assets/config.json index 5cb049b..fa9e72c 100644 --- a/assets/config.json +++ b/assets/config.json @@ -2,7 +2,8 @@ "sounds": { "sword_1": "assets/sword.1.ogg", "monster_16": "assets/monster-16.ogg", - "monster_1": "assets/monster-1.ogg" + "monster_1": "assets/monster-1.ogg", + "step_leather_1": "assets/step_leather_1.ogg" }, "sprites": { "armored_knight": "assets/armored_knight_1-256.png", diff --git a/assets/enemies.json b/assets/enemies.json index bf48e8c..aa47622 100644 --- a/assets/enemies.json +++ b/assets/enemies.json @@ -8,7 +8,7 @@ }, {"_type": "Combat", "hp": 200, "max_hp": 200, "damage": 15, "dead": false}, {"_type": "Motion", "dx": 0, "dy": 0, "random": false}, - {"_type": "LightSource", "strength": 60, "radius": 1.8}, + {"_type": "LightSource", "strength": 50, "radius": 1.0}, {"_type": "EnemyConfig", "hearing_distance": 5}, {"_type": "Animation", "scale": 0.2, "simple": true, "frames": 10, "speed": 1.0} ] diff --git a/assets/step_leather_1.ogg b/assets/step_leather_1.ogg new file mode 100644 index 0000000..dc4a3e5 Binary files /dev/null and b/assets/step_leather_1.ogg differ diff --git a/gui_fsm.cpp b/gui_fsm.cpp index ae56605..9c77b9e 100644 --- a/gui_fsm.cpp +++ b/gui_fsm.cpp @@ -7,6 +7,7 @@ #include #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);