forked from Juhee-Park/somsomcafe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lua
More file actions
25 lines (19 loc) · 738 Bytes
/
Copy pathmain.lua
File metadata and controls
25 lines (19 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
-----------------------------------------------------------------------------------------
--
-- main.lua
--
-----------------------------------------------------------------------------------------
-- show default status bar (iOS)
display.setStatusBar( display.DefaultStatusBar )
-- include Corona's "widget" library
local widget = require "widget"
local composer = require "composer"
-- 배경 소리
local somsomcafebgm = audio.loadSound("sound/somsomcafebgm.mp3", { loops=-1 })
audio.play(somsomcafebgm, {channel=2})
audio.setVolume( 0.3, { channel=2 } )
-- event listeners for tab buttons:
local function onFirstView( event )
composer.gotoScene( "start" )
end
onFirstView() -- invoke first tab button's onPress event manually