Skip to content

Instantly share code, notes, and snippets.

iphone =
{
plist =
{
CFBundleIconFile = "Icon.png",
CFBundleIconFiles =
{
... -- see above
},
UILaunchImages = {
iphone =
{
plist =
{
CFBundleIconFile = "Icon.png",
CFBundleIconFiles =
{
"Icon.png",
"Icon@2x.png",
"Icon-60.png",
settings = {
plugins =
{
["facebook"] =
{
publisherId = "com.coronalabs"
},
},
}
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 )
local myText = display.newText( "Hello World", 200, 200, native.systemFont, 16 )
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
string username = string.Empty;
var boxedUsername = e.Properties.Get("username") as CoronaLabs.Corona.WinRT.CoronaBoxedString;
if (boxedUsername != null)
{
username = boxedUsername.ToString();
}
private void OnCoronaRuntimeLoaded(
object sender, CoronaLabs.Corona.WinRT.CoronaRuntimeEventArgs e)
{
// Keep a reference to the Corona runtime environment.
// It's needed so that your login window's results can be dispatched to Corona.
fCoronaRuntimeEnvironment = e.CoronaRuntimeEnvironment;
fCoronaRuntimeEnvironment.AddEventListener("requestingLogin", OnRequestingLogin);
}
fCoronaPanel.Runtime.Loaded += OnCoronaRuntimeLoaded;
fCoronaPanel.Runtime.Terminating += OnCoronaRuntimeExiting;
--
-- Abstract: Hello World sample app.
--
-- Version: 1.2
--
-- Sample code is MIT licensed
-- Copyright (C) 2014 Corona Labs Inc. All Rights Reserved.
--
-- Supports Graphics 2.0
------------------------------------------------------------