use class() in more places
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
CursedBook = {}
|
||||
CursedBook.type = "CursedBook"
|
||||
CursedBook.supertype = Entity.type
|
||||
CursedBook.display = Animation:new(animation.cursed_book.flying)
|
||||
setmetatable(CursedBook, Entity)
|
||||
CursedBook = class(Entity, {
|
||||
type = "CursedBook",
|
||||
display = Animation:new(animation.cursed_book.flying),
|
||||
})
|
||||
|
||||
function CursedBook:new(x,y)
|
||||
local o = Entity:new(x,y)
|
||||
|
||||
Reference in New Issue
Block a user