- [NEW] Comence a implementar enemics

- [NEW] Sistema de IA bàsica
This commit is contained in:
2025-06-23 19:20:41 +02:00
parent a5634a5869
commit 4fc968dcc4
4 changed files with 70 additions and 21 deletions

View File

@@ -18,7 +18,7 @@ game = {
-- Pintar el mapa i sprites
rooms.draw()
sprites.update()
sprites.update_hero()
--sprites.update_hero()
if key.press(key.ESCAPE) or key.press(key.F9) then
editor.enable()
@@ -29,6 +29,7 @@ game = {
game.chg_adv.x = x
game.chg_adv.y = y
game.chg_step = 8
sprites.pause_ia = true
app.push(game.update_change_room)
end,
@@ -48,6 +49,7 @@ game = {
sprites.update()
game.chg_step = game.chg_step - 1
if game.chg_step == 0 then
sprites.pause_ia = false
app.pop()
end
end