From 62ff5245c26c305e35a2903cc64a60cb20718e96 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Sun, 27 Feb 2022 01:15:31 +0530 Subject: Initial Commit * ECS - In-Progress * GameStates - Skeleton Implemented * Library Integrations - Completed * Levels - In-Progress --- main.lua | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 main.lua (limited to 'main.lua') diff --git a/main.lua b/main.lua new file mode 100644 index 0000000..7f7c10d --- /dev/null +++ b/main.lua @@ -0,0 +1,33 @@ +local Gamestate = require("libs.hump.gamestate") +local LoveSplash = require("libs.o-ten-one") +require("scenes.menu_scene"); + +function love.load() + splash = LoveSplash({background={0, 0, 0}}) + splash.onDone = onLoveSplashDone +end + +function onLoveSplashDone() + splash = nil + Gamestate.switch(menu) + Gamestate.registerEvents() +end + +function love.draw() + if splash then + splash:draw() + end +end + +function love.update(dt) + if splash then + splash:update(dt) + end +end + +function love.keyreleased(key, scancode) + -- Temporary + if scancode == 'escape' then + love.event.quit() + end +end \ No newline at end of file -- cgit v1.2.3