Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Renamed screenGroup to screen in all scenes

  • Loading branch information...
commit 2d1dc125648b70b855fe5a318ad8a6ee30a4e1d2 1 parent 40e58f5
@radamanthus authored committed
View
5 about.lua
@@ -7,9 +7,10 @@ local radlib = require "scripts.lib.radlib"
---------------------------------------------------------------------------------
-- BEGINNING OF YOUR IMPLEMENTATION
---------------------------------------------------------------------------------
-function scene:createScene( event )
- local screenGroup = self.view
+local screen = nil
+function scene:createScene( event )
+ screen = self.view
end
function scene:enterScene( event )
View
5 help.lua
@@ -7,9 +7,10 @@ local radlib = require "scripts.lib.radlib"
---------------------------------------------------------------------------------
-- BEGINNING OF YOUR IMPLEMENTATION
---------------------------------------------------------------------------------
-function scene:createScene( event )
- local screenGroup = self.view
+local screen = nil
+function scene:createScene( event )
+ screen = self.view
end
function scene:enterScene( event )
View
6 loadmenu.lua
@@ -4,6 +4,8 @@ local scene = storyboard.newScene()
---------------------------------------------------------------------------------
-- BEGINNING OF YOUR IMPLEMENTATION
---------------------------------------------------------------------------------
+local screen = nil
+
function initializeGame()
require 'init_buttons'
@@ -11,12 +13,12 @@ function initializeGame()
end
function scene:createScene( event )
- local screenGroup = self.view
+ screen = self.view
local loadingImage = display.newImageRect( "images/splash_screen.png", 480, 320 )
loadingImage.x = display.contentWidth/2
loadingImage.y = display.contentHeight/2
- screenGroup:insert(loadingImage)
+ screen:insert(loadingImage)
local gotoMainMenu = function()
storyboard.gotoScene( "menu" )
View
12 menu.lua
@@ -7,8 +7,10 @@ local radlib = require "scripts.lib.radlib"
---------------------------------------------------------------------------------
-- BEGINNING OF YOUR IMPLEMENTATION
---------------------------------------------------------------------------------
+local screen = nil
+
function scene:createScene( event )
- local screenGroup = self.view
+ screen = self.view
local playButton = nil
local function onPlayPressed ( event )
@@ -25,7 +27,7 @@ function scene:createScene( event )
playButton.x = 160
playButton.y = 80
playButton.isActive = true
- screenGroup:insert(playButton)
+ screen:insert(playButton)
local settingsButton = nil
local function onSettingsPressed( event )
@@ -42,7 +44,7 @@ function scene:createScene( event )
settingsButton.x = 160
settingsButton.y = 130
settingsButton.isActive = true
- screenGroup:insert(settingsButton)
+ screen:insert(settingsButton)
local aboutButton = nil
local function onAboutPressed( event )
@@ -59,7 +61,7 @@ function scene:createScene( event )
aboutButton.x = 160
aboutButton.y = 180
aboutButton.isActive = true
- screenGroup:insert(aboutButton)
+ screen:insert(aboutButton)
local helpButton = nil
local function onHelpPressed( event )
@@ -76,7 +78,7 @@ function scene:createScene( event )
helpButton.x = 160
helpButton.y = 230
helpButton.isActive = true
- screenGroup:insert(helpButton)
+ screen:insert(helpButton)
end
function scene:enterScene( event )
View
4 play.lua
@@ -7,8 +7,10 @@ local radlib = require "scripts.lib.radlib"
---------------------------------------------------------------------------------
-- BEGINNING OF YOUR IMPLEMENTATION
---------------------------------------------------------------------------------
+local screen = nil
+
function scene:createScene( event )
- local screenGroup = self.view
+ screen = self.view
end
View
4 settings.lua
@@ -7,8 +7,10 @@ local radlib = require "scripts.lib.radlib"
---------------------------------------------------------------------------------
-- BEGINNING OF YOUR IMPLEMENTATION
---------------------------------------------------------------------------------
+local screen = nil
+
function scene:createScene( event )
- local screenGroup = self.view
+ screen = self.view
end
Please sign in to comment.
Something went wrong with that request. Please try again.