- [NEW] F9 canvia del editor al joc i viceversa

- [ONGOING] Rooms: 5%
- Més tiles
This commit is contained in:
2025-06-22 23:20:48 +02:00
parent 2d19554269
commit 27ccff0eb0
4 changed files with 3 additions and 1 deletions

View File

@@ -89,6 +89,8 @@ editor = {
elseif key.press(key.P) then
sprites.hero.pos.x = tx*8-4
sprites.hero.pos.y = ty*8-9
elseif key.press(key.F9) then
editor.play()
end
end,

View File

@@ -20,7 +20,7 @@ game = {
sprites.update()
sprites.update_hero()
if key.down(key.ESCAPE) then
if key.press(key.ESCAPE) or key.press(key.F9) then
editor.enable()
end
end,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 605 B

After

Width:  |  Height:  |  Size: 659 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB