Advertisement
alestane

inline initialization

Aug 7th, 2013
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. local storyboard = require('storyboard')
  2.  
  3. local FPS_Counter = display.newText(display.fps, 10, 10, native.systemFont, 30)
  4.  
  5. print('Screen: ' .. display.actualContentWidth .. ', ' .. display.actualContentHeight .. ', Device: ' .. system.getInfo('model'))
  6.  
  7.  
  8. function enterFrameListener(event)
  9.     FPS_Counter.text = display.fps
  10. end
  11.  
  12.  
  13. display.setStatusBar(display.HiddenStatusBar)
  14. storyboard.purgeOnSceneChange = true
  15. Runtime:addEventListener('enterFrame', enterFrameListener)
  16.  
  17. storyboard.gotoScene('.\\gui\\mainMenu')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement