Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module (..., package.seeall)
- function new()
- local _H = display.contentHeight
- local _W = display.contentWidth
- local menuGroup = display.newGroup()
- local background = display.newImage("graphics/mainMenuBackground.png")
- background.x = _W/2
- background.y = _H/2
- local clefs = display.newImage("graphics/clefs.PNG")
- clefs.x = _W/2
- clefs.y = _H/4
- clefs.scene = "clefs"
- clefs.alpha = 0.8
- local stave = display.newImage("graphics/stave.PNG")
- stave.x = _W/2
- stave.y = _H/2.5
- stave.scene = "stave"
- stave.alpha = 0.8
- local notes = display.newImage("graphics/notes.PNG")
- notes.x = _W/2
- notes.y = _H/1.8
- notes.scene = "notes"
- notes.alpha = 0.8
- local timeSignatures = display.newImage("graphics/timeSignatures.PNG")
- timeSignatures.x = _W/2
- timeSignatures.y = _H*0.7
- timeSignatures.scene = "timeSignatures"
- timeSignatures.alpha = 0.8
- local howToWrite = display.newImage("graphics/howToWrite.PNG")
- howToWrite.x = _W/2
- howToWrite.y = _H*0.85
- howToWrite.scene = "howToWrite"
- howToWrite.alpha = 0.8
- menuGroup:insert(background)
- menuGroup:insert(stave)
- menuGroup:insert(clefs)
- menuGroup:insert(notes)
- menuGroup:insert(timeSignatures)
- menuGroup:insert(howToWrite)
- stave:addEventListener("touch", changeScene)
- clefs:addEventListener("touch", changeScene)
- notes:addEventListener("touch", changeScene)
- timeSignatures:addEventListener("touch", changeScene)
- howToWrite:addEventListener("touch", changeScene)
- return menuGroup
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement