- [NEW] F9 canvia del editor al joc i viceversa
- [ONGOING] Rooms: 5% - Més tiles
This commit is contained in:
@@ -89,6 +89,8 @@ editor = {
|
|||||||
elseif key.press(key.P) then
|
elseif key.press(key.P) then
|
||||||
sprites.hero.pos.x = tx*8-4
|
sprites.hero.pos.x = tx*8-4
|
||||||
sprites.hero.pos.y = ty*8-9
|
sprites.hero.pos.y = ty*8-9
|
||||||
|
elseif key.press(key.F9) then
|
||||||
|
editor.play()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ game = {
|
|||||||
sprites.update()
|
sprites.update()
|
||||||
sprites.update_hero()
|
sprites.update_hero()
|
||||||
|
|
||||||
if key.down(key.ESCAPE) then
|
if key.press(key.ESCAPE) or key.press(key.F9) then
|
||||||
editor.enable()
|
editor.enable()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 605 B After Width: | Height: | Size: 659 B |
BIN
data/tiles.gif
BIN
data/tiles.gif
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.3 KiB |
Reference in New Issue
Block a user