Skip to content

Instantly share code, notes, and snippets.

-- Callback function to handle the upload events that are generated.
-- There will be several events: one to indicate the start and end of the
-- process and several to indicate the progress (depends on the file size).
-- Always test for your error conditions!
local function uploadListener( event )
if ( event.isError ) then
print( "Network Error." )
-- This is likely a time out or server being down. In other words,
local myText = display.newText( "Hello World", 200, 200, native.systemFont, 16 )
local function fireLasers()
local blaster = display.newImageRect("laserbeam.png", 8,24)
blaster.x = ship.x
blaster.y = ship.y
transition.to(blaster, {time=1000, y = 0 })
end
local needToFire = false
local function handleEnterFrame( event )
settings = {
plugins =
{
["facebook"] =
{
publisherId = "com.coronalabs"
},
},
}
iphone =
{
plist =
{
CFBundleIconFile = "Icon.png",
CFBundleIconFiles =
{
... -- see above
},
UILaunchImages = {
iphone =
{
plist =
{
CFBundleIconFile = "Icon.png",
CFBundleIconFiles =
{
"Icon.png",
"[email protected]",
"Icon-60.png",