aboutsummaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
authorIndrajith K L2022-03-05 05:44:05 +0530
committerIndrajith K L2022-03-05 05:44:05 +0530
commit37bf7eab28727f428cf456c61f698e0a3be55bb0 (patch)
treea7015077b87f334821887020d2f6f70f4a5f9f28 /main.lua
parent7683830ed25213c4e444c5587559fe803b480ea7 (diff)
downloadYEAD-37bf7eab28727f428cf456c61f698e0a3be55bb0.tar.gz
YEAD-37bf7eab28727f428cf456c61f698e0a3be55bb0.tar.bz2
YEAD-37bf7eab28727f428cf456c61f698e0a3be55bb0.zip
* Player/ Enemy Chase
* Pickable Entity * Enemies
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index 7f7c10d..d9411c2 100644
--- a/main.lua
+++ b/main.lua
@@ -1,8 +1,19 @@
local Gamestate = require("libs.hump.gamestate")
local LoveSplash = require("libs.o-ten-one")
require("scenes.menu_scene");
+require("scenes.level1_scene");
function love.load()
+ -- initGame()
+ bypassMenu()
+end
+
+function bypassMenu()
+ Gamestate.switch(level1)
+ Gamestate.registerEvents()
+end
+
+function initGame()
splash = LoveSplash({background={0, 0, 0}})
splash.onDone = onLoveSplashDone
end