- [NEW] Més tiles
- [FIX] L'heroi se clavaba en les pareds quan li pegaven - [NEW] Alguns fondos enhancechats - [FIX] Augmentada la velocitat de Nemesio - [NEW] Shortcuts de teclat per a canviar de mode a l'editor - [NEW] Habitacions al 40%
This commit is contained in:
@@ -14,6 +14,8 @@ editor = {
|
||||
item_dragged=nil,
|
||||
dragged_start_pos=nil,
|
||||
flip=false,
|
||||
msg=nil,
|
||||
msg_timeout=0,
|
||||
|
||||
enable = function()
|
||||
app.update = editor.update
|
||||
@@ -153,6 +155,18 @@ editor = {
|
||||
editor.play()
|
||||
elseif key.press(key.F11) then
|
||||
reload_textures()
|
||||
elseif key.press(key.N1) then
|
||||
editor.layer=LAYER_FOREGROUND
|
||||
editor.msg="FOREGROUND"
|
||||
editor.msg_timeout = 20
|
||||
elseif key.press(key.N2) then
|
||||
editor.layer=LAYER_BACKGROUND
|
||||
editor.msg="BACKGROUND"
|
||||
editor.msg_timeout = 20
|
||||
elseif key.press(key.N3) then
|
||||
editor.layer=LAYER_ITEMS
|
||||
editor.msg="ITEMS"
|
||||
editor.msg_timeout = 20
|
||||
end
|
||||
|
||||
if editor.layer==LAYER_ITEMS then
|
||||
@@ -181,8 +195,11 @@ editor = {
|
||||
draw.text(rooms.pos.x//20,1,96,28)
|
||||
draw.text(rooms.pos.y//13,5,96,28)
|
||||
|
||||
-- Pintar el menú (el marcador serà en el modul game.lua)
|
||||
--score.draw()
|
||||
if editor.msg_timeout > 0 then
|
||||
editor.msg_timeout = editor.msg_timeout - 1
|
||||
draw.text(editor.msg, 10, 96, 8)
|
||||
end
|
||||
|
||||
menu.draw()
|
||||
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user