more editor work on handling entity spawns

This commit is contained in:
lustlion
2022-03-10 10:21:10 +01:00
parent 6e76607030
commit 39b65571a0
10 changed files with 91 additions and 8 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)