you can now edit archetype and args of spawns in editor with "t" and "d" when selected, respectively
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user