From 2fdf16620ba5b3e888f70cee2bc1f6832814913d Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Mon, 21 Mar 2022 21:41:57 +0530 Subject: Player, Enemy Animations Collision Changes --- scenes/menu_scene.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'scenes/menu_scene.lua') diff --git a/scenes/menu_scene.lua b/scenes/menu_scene.lua index e90b805..5c30674 100644 --- a/scenes/menu_scene.lua +++ b/scenes/menu_scene.lua @@ -4,8 +4,6 @@ local Timer = require "libs.hump.timer" local Gamestate = require("libs.hump.gamestate") Moonshine = require("libs.moonshine") require("core.constants") --- scenes -require("scenes.level1_scene"); local titleFontSize1 = 35 local titleFontSize2 = 40 @@ -18,7 +16,7 @@ function menu:init() titleFont1 = love.graphics.newFont('assets/fonts/C800.ttf', titleFontSize1) titleFont2 = love.graphics.newFont('assets/fonts/Lazer84.ttf', titleFontSize2) startMsgFont = love.graphics.newFont('assets/fonts/C800.ttf', msgFontSize) - music = love.audio.newSource("assets/music/Stevia Sphere - Drum machine dreams.ogg", "stream") + music = love.audio.newSource("assets/music/title.ogg", "stream") titleText1 = love.graphics.newText(titleFont1, "Your Enemy is in Another") titleText2 = love.graphics.newText(titleFont2, "Dungeon") msgText = love.graphics.newText(startMsgFont, "Press X to START") @@ -87,6 +85,10 @@ function menu:keyreleased(key, scancode) end end +function love.touchpressed( id, x, y, dx, dy, pressure ) + Gamestate.switch(level1) +end + function generateStarfield() image = love.graphics.newImage("assets/images/particle.png") psystem = love.graphics.newParticleSystem(image, 2500) @@ -104,4 +106,4 @@ function generateStarfield() return psystem end -return menu \ No newline at end of file +return menu -- cgit v1.2.3