Skip to content

Commit

Permalink
updated scene transition sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Nepherhotep committed Jul 2, 2013
1 parent 8bac318 commit 1f7b7c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scene-transition/main.lua
Expand Up @@ -59,9 +59,8 @@ function MyApplication:onResume ()
print ( 'onResume' )
end

local app = MyApplication:new () :init ()
local app = MyApplication:new () :initWithScene ( mainScene )
terevaka.TKApplication:setSharedApp ( app ) -- <-- call this if you want to access later to your application as a global variable
app:initWithScene ( mainScene )

local pinkBox = mainScene.layer:findPropById ( 'pink_box' )
pinkBox.onTouch = function ( self, event )
Expand Down

0 comments on commit 1f7b7c3

Please sign in to comment.