-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lua
More file actions
18 lines (15 loc) · 776 Bytes
/
main.lua
File metadata and controls
18 lines (15 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-----------------------------------------------------------------------------------------
--
-- main.lua
--
-----------------------------------------------------------------------------------------
-- Memory Game
-- The composer object allows for the creation of scenes and switching between scenes
-- This composer will be declared in every .lua file
local composer = require("composer")
-- Hiding the Status Bar, Standard Corona coding practice
display.setStatusBar(display.HiddenStatusBar)
-- Only thing that needs to happen in the main function is to push into the menu scene,
-- Once inside the menu scene all graphics, functions, and event listeners are defined
-- and the application only switches between the menu scene and the game scene
composer.gotoScene("menu")