Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --
- -- Abstract: Fishies 2.5D sample app
- --
- -- Date: September 10, 2010
- --
- -- Version: 1.0
- --
- -- File name: main.lua
- --
- -- Author: Corona Labs
- --
- -- Demonstrates: graphics, orientation, object touch
- --
- -- File dependencies: none
- --
- -- Target devices: Simulator and devices
- --
- -- Limitations:
- --
- -- Update History:
- --
- -- Comments:
- --
- -- Sample code is MIT licensed, see http://www.coronalabs.com/links/code/license
- -- Copyright (C) 2010 Corona Labs Inc. All Rights Reserved.
- ---------------------------------------------------------------------------------------
- display.setStatusBar( display.HiddenStatusBar )
- -- Seed randomizer
- -- require("loq_profiler").createProfiler()
- require ("loq_util")
- local seed = os.time();
- math.randomseed( seed )
- widget = require("widget")
- _halfW = display.contentWidth * 0.5
- _halfH = display.contentHeight * 0.5
- _w = display.actualContentWidth
- _h = display.actualContentHeight
- print ("In here... actual _h=".. _h .. "actual _w=" .. _w)
- _W = display.contentWidth -- Virtual width
- print ( "_W=" .. _W )
- _H = display.contentHeight -- Virtual height
- print ( "_H=" .. _H )
- _T = display.screenOriginY -- Top
- _L = display.screenOriginX -- Left
- _R = display.viewableContentWidth - _L -- Right
- _B = display.viewableContentHeight - _T -- Bottom
- local options = {
- service = "twitter",
- message = "Check out these photos!",
- listener = socialEventListener,
- image = {
- { filename = "pic.jpg", baseDir = system.ResourceDirectory },
- { filename = "pic2.jpg", baseDir = system.ResourceDirectory }
- },
- url = "http://coronalabs.com"
- }
- _platformVersion = ( system.getInfo( "platformVersion" ) )
- print ("PLATFORM VERSION:" .. _platformVersion)
- print ( system.getInfo( "platformName" ) )
- local composer = require( "composer" )
- composer.gotoScene( "scene_intro" )
- --]]
Advertisement
Add Comment
Please, Sign In to add comment