- [NEW] 'animations' module
- [NEW] 'game' module - [NEW] 'sprites' module - [NEW] more tiles - [NEW] Can choose which tile layer to edit from the editor menu
This commit is contained in:
@@ -10,7 +10,6 @@ editor = {
|
||||
modified = false,
|
||||
|
||||
enable = function()
|
||||
menu.show()
|
||||
app.update = editor.update
|
||||
sys.beat(2)
|
||||
end,
|
||||
@@ -109,6 +108,12 @@ editor = {
|
||||
end,
|
||||
|
||||
stamp=function(tx,ty)
|
||||
if editor.layer == LAYER_FOREGROUND then
|
||||
map.surf(rooms.surf_foreground)
|
||||
elseif editor.layer == LAYER_BACKGROUND then
|
||||
map.surf(rooms.surf_background)
|
||||
end
|
||||
|
||||
local w,h=editor.brush.w,editor.brush.h
|
||||
local p=1
|
||||
for y=1,h do
|
||||
@@ -145,7 +150,7 @@ editor = {
|
||||
update_tiles = function()
|
||||
view.origin(0,0)
|
||||
view.clip()
|
||||
surf.source(tiles)
|
||||
surf.source(surf_tiles)
|
||||
surf.cls(1)
|
||||
draw.surf(0,0,128,128,0,0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user