more editor work on handling entity spawns
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
CursedBook = Entity:new()
|
||||
CursedBook.type = "CursedBook"
|
||||
CursedBook.display = Animation:new(animation.cursed_book.flying)
|
||||
|
||||
function CursedBook:new(x,y)
|
||||
local o = Entity:new(x,y)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
Decoration = Entity:new()
|
||||
Decoration.type = "Decoration"
|
||||
Decoration.display = nil
|
||||
|
||||
function Decoration:new(x,y,animation,light_radius)
|
||||
local o = Entity:new(x,y)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
Fairy = Entity:new()
|
||||
Fairy.type = "Fairy"
|
||||
Fairy.display = Animation:new(animation.fairy.flying)
|
||||
|
||||
function Fairy:new(x,y)
|
||||
local o = Entity:new(x,y)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
HookAnchor = Entity:new()
|
||||
HookAnchor.type = "HookAnchor"
|
||||
HookAnchor.display = Animation:new(animation.fairy.flying)
|
||||
|
||||
function HookAnchor:new(x,y,hook_distance)
|
||||
local o = Entity:new(x,y)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
Kupo = Entity:new()
|
||||
Kupo.type = "Kupo"
|
||||
Kupo.display = Animation:new(animation.kupo.body)
|
||||
|
||||
function Kupo:new(x,y)
|
||||
local o = Entity:new(x,y)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
Player = Entity:new()
|
||||
Player.type = "Player"
|
||||
Player.display = Animation:new(animation.nancy.idle)
|
||||
|
||||
function Player:new(x,y)
|
||||
local o = Entity:new(x,y)
|
||||
|
||||
Reference in New Issue
Block a user