From 2b095e30f7786526da9339ccada3aae7f2ab5df4 Mon Sep 17 00:00:00 2001 From: Andy Belle-Isle Date: Tue, 10 Sep 2019 23:55:54 -0400 Subject: Started world system --- Scripts/init.lua | 5 +++-- Scripts/world.lua | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'Scripts') diff --git a/Scripts/init.lua b/Scripts/init.lua index f177462..78b2a76 100644 --- a/Scripts/init.lua +++ b/Scripts/init.lua @@ -129,6 +129,9 @@ wall = { } } +-- Create the world +dofile("Scripts/world.lua") + birdSpawn = game.spawn(bird); dogSpawn = game.spawn(cat); @@ -156,8 +159,6 @@ game.spawn({ end }); -dofile("Scripts/world.lua") - ------------------- -- SERIALIZING -- ------------------- diff --git a/Scripts/world.lua b/Scripts/world.lua index db0dc70..345a9b4 100644 --- a/Scripts/world.lua +++ b/Scripts/world.lua @@ -32,4 +32,5 @@ world = { end } -world:Generate() +--world:Generate() +game.worldRegister(world) -- cgit v1.2.3