First, start your application normally with:
loom run
then at the command console enter:
profilerEnable
package tec.example { | |
import System.Console; | |
public class BaseClass { | |
public var message:String = "Hello!"; | |
public var amount:Number = 10; | |
public function initialize(amt:Number, msg:String) |
;----------------------------------------- | |
; Mac keyboard to Windows Key Mappings | |
;========================================= | |
; -------------------------------------------------------------- | |
; NOTES | |
; -------------------------------------------------------------- | |
; ! = ALT | |
; <^>! = RIGHT ALT | |
; ^ = CTRL |
package | |
{ | |
import loom.Application; | |
import loom2d.display.StageScaleMode; | |
import loom2d.display.Image; | |
import loom2d.textures.Texture; | |
import loom2d.ui.SimpleLabel; | |
import loom2d.events.Touch; | |
import loom2d.events.TouchEvent; | |
import loom2d.events.TouchPhase; |
static int update(lua_State *L) | |
{ | |
static int gcBackOff = 0; | |
static int gcLastTime = 0; | |
// start of GC calculations | |
int startTime = platform_getMilliseconds(); | |
// the delta | |
int delta = startTime - gcLastTime; |
package | |
{ | |
import loom.platform.Timer; | |
import loom.gameframework.LoomGroup; | |
import loom.gameframework.TimeManager; | |
import loom.gameframework.ITicked; | |
import loom.Application; | |
import loom2d.events.Event; |
using UnityEngine; | |
using UWK; | |
public class WebGUI : MonoBehaviour | |
{ | |
// The position of the gui on the screen | |
public Vector2 Position; |
//Atomic TypeScript Definitions | |
declare module Atomic { | |
export enum InterpolationMode { | |
BEZIER_CURVE | |
} |
//Atomic JSDoc Definitions | |
/** | |
* Atomic Game Engine | |
* @namespace | |
*/ | |
var Atomic = {} | |
/** |
function doShooting(timeStep) | |
{ | |
if (self.shootDelta > 0) { | |
self.shootDelta -= timeStep; | |
if (self.shootDelta < 0) | |
self.shootDelta = 0; | |
return; | |
} |