Add Komodo enemy class and enhance enemy spawning logic
- Introduce Komodo class with high health and attack mechanics. - Modify Enemy class to accept type parameter during initialization. - Update EnemyAI to set speed based on enemy type. - Implement random spawning of enemies in boss rooms. - Adjust health bar calculations to use max health.
This commit is contained in:
+4
-3
@@ -26,12 +26,13 @@ class MazeData
|
||||
end
|
||||
end
|
||||
|
||||
$bus.on(:boss_rooms) do
|
||||
next @boss_rooms
|
||||
end
|
||||
|
||||
return unless $bus.get(:settings, :debug)
|
||||
|
||||
print_debug
|
||||
$bus.on(:boss_room_coords) do
|
||||
next @boss_rooms.first ? [@boss_rooms.first[0] * 2 + 1, @boss_rooms.first[1] * 2 + 1] : nil
|
||||
end
|
||||
end
|
||||
|
||||
def solve(x1, y1, x2, y2)
|
||||
|
||||
Reference in New Issue
Block a user