We're going to create the frontend of our game by introducing the game title, Play button, and Options button that will transition throughout different scenes in the application with ease.
mainmenu.luaand import Storyboard and UI modules, the
storyboard.newScene()function, and the variables for timer and audio.
local storyboard = require( "storyboard" ) local scene = storyboard.newScene() local ui = require("ui") local btnAnim local btnSound = audio.loadSound( "btnSound.wav" )
createScene()event. Add in the line,
storyboard.removeScene( "maingame" )and
storyboard.removeScene( "options" ), which will remove the
"maingame" and "options"scene. Removing
"maingame"will occur ...