This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UWK; | |
public class WebGUI : MonoBehaviour | |
{ | |
// The position of the gui on the screen | |
public Vector2 Position; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Atomic TypeScript Definitions | |
declare module Atomic { | |
export enum InterpolationMode { | |
BEZIER_CURVE | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Atomic JSDoc Definitions | |
/** | |
* Atomic Game Engine | |
* @namespace | |
*/ | |
var Atomic = {} | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doShooting(timeStep) | |
{ | |
if (self.shootDelta > 0) { | |
self.shootDelta -= timeStep; | |
if (self.shootDelta < 0) | |
self.shootDelta = 0; | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Atomic TypeScript Definitions | |
declare module Atomic { | |
export enum FrustumPlane { | |
PLANE_NEAR, | |
PLANE_LEFT, | |
PLANE_RIGHT, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get the network subsystem | |
var network = Atomic.getNetwork(); | |
// non blocking http request runs on it's own thread | |
var request = network.makeHttpRequest("http://www.google.com"); | |
// listen in to engine update | |
network.subscribeToEvent("Update", function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="/Users/josh/Dev/atomic/AtomicGameEngine/Bin/Atomic.d.ts" /> | |
var scene:Atomic.Scene = new Atomic.Scene(); | |
scene.createComponent("Octree"); | |
var cameraNode = scene.createChild("Camera"); | |
cameraNode.position = [0.0, 0.0, -10.0]; | |
var graphics = Atomic.getGraphics(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CommonJS compatible components | |
"use strict"; | |
"atomic component"; | |
exports.component = function(self) { | |
var game = Atomic.game; | |
var node = self.node; | |
self.start = function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static const wchar_t kPipePrefix[] = L"\\\\.\\pipe\\"; | |
static const int kPipeBufferSz = 4 * 1024; | |
static LONG g_pipe_seq = 0; | |
bool checkIntegritySupport() | |
{ | |
OSVERSIONINFO osvi; | |
ZeroMemory(&osvi, sizeof(OSVERSIONINFO)); | |
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Atomic TypeScript Definitions | |
declare module Atomic { | |
// enum FrustumPlane | |
export type FrustumPlane = number; | |
export var PLANE_NEAR: FrustumPlane; | |
export var PLANE_LEFT: FrustumPlane; |
OlderNewer