[WIP] Més tiles
[WIP] Fase 2 [NEW] En l'editor, es pot moure per la fase amb SPACE+ratolí [WIP] mòdul GAME [WIP] mòdul BATMAN [NEW] F4 recarrega les textures
This commit is contained in:
15
data/batman.lua
Normal file
15
data/batman.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
batman = {
|
||||
x = 7*8,
|
||||
y = 14*8,
|
||||
surface = nil,
|
||||
flip = false,
|
||||
|
||||
init = function()
|
||||
batman.surface = surf.load("batman.gif")
|
||||
end,
|
||||
|
||||
draw = function()
|
||||
surf.source(batman.surface)
|
||||
draw.surf(0,0,16,16,batman.x,batman.y,16,16,batman.flip)
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user