- [NEW] Gota
This commit is contained in:
@@ -192,6 +192,56 @@ function me.create(type, options)
|
||||
room = options.room,
|
||||
ia = ia.update_rata
|
||||
}
|
||||
elseif key == "gota" then
|
||||
sprite = {
|
||||
type = key,
|
||||
pos = options.pos,--{ x=100, y=4*12*8+71 },
|
||||
size = { w=8,h=8 },
|
||||
bbo = { left=2, top=3, right=3, bottom=1 },
|
||||
current_frame = 1,
|
||||
current_wait = 1,
|
||||
flipped = options.flipped,
|
||||
surf = surf.load("gfx/gota.gif"),
|
||||
animation = "gota_generador",
|
||||
state = me.ALIVE,
|
||||
enemy = true,
|
||||
timer = 0,
|
||||
room = options.room,
|
||||
ia = ia.update_gota
|
||||
}
|
||||
elseif key == "gota_caiguent" then
|
||||
sprite = {
|
||||
type = key,
|
||||
pos = options.pos,--{ x=100, y=4*12*8+71 },
|
||||
size = { w=8,h=8 },
|
||||
bbo = { left=2, top=3, right=3, bottom=1 },
|
||||
current_frame = 1,
|
||||
current_wait = 1,
|
||||
flipped = options.flipped,
|
||||
surf = surf.load("gfx/gota.gif"),
|
||||
animation = "gota",
|
||||
state = me.ALIVE,
|
||||
enemy = true,
|
||||
room = options.room,
|
||||
ia = ia.update_gota_caiguent
|
||||
}
|
||||
elseif key == "gota_esguit" then
|
||||
sprite = {
|
||||
type = key,
|
||||
pos = options.pos,--{ x=100, y=4*12*8+71 },
|
||||
dir = options.dir,
|
||||
size = { w=8,h=8 },
|
||||
bbo = { left=2, top=3, right=3, bottom=1 },
|
||||
current_frame = 1,
|
||||
current_wait = 1,
|
||||
flipped = options.flipped,
|
||||
surf = surf.load("gfx/gota.gif"),
|
||||
animation = "esguit",
|
||||
state = me.ALIVE,
|
||||
enemy = true,
|
||||
room = options.room,
|
||||
ia = ia.update_gota_esguit
|
||||
}
|
||||
else
|
||||
error("Template not recognized")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user