Working sound system and most enemies have a sound effect. This will make it easier to add sounds now.

This commit is contained in:
Zed A. Shaw 2025-02-22 12:48:37 -05:00
parent 83df9ff03b
commit 20cbc3a21c
12 changed files with 126 additions and 5 deletions

View file

@ -23,7 +23,8 @@
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
{"_type": "EnemyConfig", "hearing_distance": 5},
{"_type": "Animation", "scale": 0.2, "simple": true, "frames": 10, "speed": 0.3},
{"_type": "Sprite", "name": "armored_knight"}
{"_type": "Sprite", "name": "armored_knight"},
{"_type": "Sound", "attack": "monster_1", "death": "monster_16"}
]
},
"AXE_RANGER": {
@ -36,7 +37,8 @@
{"_type": "Motion", "dx": 0, "dy": 0, "random": true},
{"_type": "EnemyConfig", "hearing_distance": 5},
{"_type": "Sprite", "name": "axe_ranger"},
{"_type": "Animation", "scale": 0.2, "simple": false, "frames": 10, "speed": 0.6}
{"_type": "Animation", "scale": 0.2, "simple": false, "frames": 10, "speed": 0.6},
{"_type": "Sound", "attack": "sword_1", "death": "monster_16"}
]
},
"EVIL_EYE": {
@ -49,7 +51,8 @@
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
{"_type": "EnemyConfig", "hearing_distance": 5},
{"_type": "Sprite", "name": "evil_eye"},
{"_type": "Animation", "scale": 0.2, "simple": false, "frames": 10, "speed": 0.3}
{"_type": "Animation", "scale": 0.2, "simple": false, "frames": 10, "speed": 0.3},
{"_type": "Sound", "attack": "monster_1", "death": "monster_16"}
]
},
"RAT_GIANT": {
@ -62,7 +65,8 @@
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
{"_type": "EnemyConfig", "hearing_distance": 10},
{"_type": "Animation", "scale": 0.2, "simple": true, "frames": 10, "speed": 1.0},
{"_type": "Sprite", "name": "rat_with_sword"}
{"_type": "Sprite", "name": "rat_with_sword"},
{"_type": "Sound", "attack": "sword_1", "death": "monster_16"}
]
},
"SPIDER_GIANT_HAIRY": {
@ -75,7 +79,8 @@
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
{"_type": "EnemyConfig", "hearing_distance": 10},
{"_type": "Animation", "scale": 0.2, "simple": true, "frames": 10, "speed": 1.0},
{"_type": "Sprite", "name": "hairy_spider"}
{"_type": "Sprite", "name": "hairy_spider"},
{"_type": "Sound", "attack": "sword_1", "death": "monster_16"}
]
}
}