you can now edit archetype and args of spawns in editor with "t" and "d" when selected, respectively

This commit is contained in:
lustlion
2022-03-10 18:23:47 +01:00
parent 93bfe0bda4
commit dbfae2f74e
4 changed files with 89 additions and 11 deletions

View File

@@ -1,3 +1,14 @@
function restartGame()
for _, entity in ipairs(LoadedObjects.Entities) do
if entity.light ~= nil then entity.light:kill() end
entity = nil
end
LoadedObjects.Entities = {}
LoadedObjects.Particles = {}
main_player = Player:new(75,50)
activateSpawns()
end
function stepGame()
setCollisionFlags()
if menu_type == "no" then
@@ -33,13 +44,6 @@ function stepGame()
end
if Keybind:checkPressed(Keybind.debug.reposition) then
if not editor_mode then
main_player.pos.x, main_player.pos.y = 75,50
end
for _, entity in pairs(LoadedObjects.Entities) do
if entity.id ~= main_player.id then entity:kill() end
end
activateSpawns()
end
if Keybind:checkPressed(Keybind.debug.reload) then