lavalevel

Main

May 18th, 2014
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.84 KB | None | 0 0
  1.  --
  2. -- Abstract: Fishies 2.5D sample app
  3. --
  4. -- Date: September 10, 2010
  5. --
  6. -- Version: 1.0
  7. --
  8. -- File name: main.lua
  9. --
  10. -- Author: Corona Labs
  11. --
  12. -- Demonstrates: graphics, orientation, object touch
  13. --
  14. -- File dependencies: none
  15. --
  16. -- Target devices: Simulator and devices
  17. --
  18. -- Limitations:
  19. --
  20. -- Update History:
  21. --
  22. -- Comments:
  23. --
  24. -- Sample code is MIT licensed, see http://www.coronalabs.com/links/code/license
  25. -- Copyright (C) 2010 Corona Labs Inc. All Rights Reserved.
  26. ---------------------------------------------------------------------------------------
  27. display.setStatusBar( display.HiddenStatusBar )
  28.  
  29. -- Seed randomizer
  30. -- require("loq_profiler").createProfiler()
  31. require ("loq_util")
  32. local seed = os.time();
  33. math.randomseed( seed )
  34.  widget = require("widget")
  35.  
  36. _halfW = display.contentWidth * 0.5
  37. _halfH = display.contentHeight * 0.5
  38.  
  39. _w = display.actualContentWidth
  40. _h = display.actualContentHeight
  41. print ("In here... actual _h=".. _h .. "actual _w=" .. _w)
  42.  
  43. _W = display.contentWidth -- Virtual width
  44. print ( "_W=" .. _W )
  45. _H = display.contentHeight -- Virtual height
  46. print ( "_H=" .. _H )
  47. _T = display.screenOriginY -- Top
  48. _L = display.screenOriginX -- Left
  49. _R = display.viewableContentWidth - _L -- Right
  50. _B = display.viewableContentHeight - _T -- Bottom
  51.  
  52. local options = {
  53.    service = "twitter",
  54.    message = "Check out these photos!",
  55.    listener = socialEventListener,
  56.    image = {
  57.       { filename = "pic.jpg", baseDir = system.ResourceDirectory },
  58.       { filename = "pic2.jpg", baseDir = system.ResourceDirectory }
  59.    },
  60.    url = "http://coronalabs.com"
  61. }
  62.  
  63. _platformVersion = ( system.getInfo( "platformVersion" ) )
  64.  
  65. print ("PLATFORM VERSION:" .. _platformVersion)
  66. print  ( system.getInfo( "platformName" ) )
  67.  
  68.  
  69.  
  70. local composer = require( "composer" )
  71. composer.gotoScene( "scene_intro" )
  72.  
  73. --]]
Advertisement
Add Comment
Please, Sign In to add comment