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
Phaser.Plugin.CocoonJSOuyaGamepad.prototype.moved = function(pad, axisId) { | |
var movedAmount = 0; | |
var magitudeLeft = 0; | |
var magitudeRight = 0; | |
if (_gamepads[pad]) { | |
magitudeLeft = Math.sqrt((_gamepads[pad].axes[0] * _gamepads[pad].axes[0]) + | |
(_gamepads[pad].axes[1] * _gamepads[pad].axes[1])); | |
magitudeRight = Math.sqrt((_gamepads[pad].axes[2] * _gamepads[pad].axes[2]) + | |
(_gamepads[pad].axes[3] * _gamepads[pad].axes[3])); | |
if (axisId === "AXIS_0" && _gamepads[pad].axes[0] <= 1) { |
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
:: Start | |
Your story will display this passage first. Edit it by double clicking it. | |
[[Passage]] | |
:: Passage | |
[[PassageName]] | |
More text not affected any changes. |
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
/* @license | |
* pixi.js - v1.5.1 | |
* Copyright (c) 2012-2014, Mat Groves | |
* http://goodboydigital.com/ | |
* | |
* pixi.js is licensed under the MIT License. | |
* http://www.opensource.org/licenses/mit-license.php | |
* | |
* http://stackoverflow.com/users/34441/ellisbben | |
* great solution to the problem! |
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
/* | |
* http://stackoverflow.com/posts/13730758/revisions | |
* | |
* @method determineFontHeightInPixels | |
* @param fontStyle {String} | |
* @private | |
*/ | |
PIXI.Text.prototype.determineFontHeightInPixels = function(fontStyle) | |
{ | |
var result = PIXI.Text.heightCache[fontStyle]; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Device Ready Example</title> | |
<script type="text/javascript" charset="utf-8" src="cordova.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
// Wait for device API libraries to load | |
// |
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
var isNode = (typeof process !== "undefined" && typeof require !== "undefined"); | |
var isNodeWebkit = false; | |
//Is this Node.js? | |
if(isNode) { | |
//If so, test for Node-Webkit | |
try { | |
isNodeWebkit = (typeof require('nw.gui') !== "undefined"); | |
} catch(e) { | |
isNodeWebkit = false; |
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
package | |
{ | |
/** | |
* ... | |
* @author Dan Cox | |
*/ | |
import org.flixel.system.FlxPreloader; | |
public class Preloader extends FlxPreloader |
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
package | |
{ | |
/** | |
* ... | |
* @author Dan Cox | |
*/ | |
import org.flixel.*; | |
public class PlayState extends FlxState |
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
package | |
{ | |
/** | |
* ... | |
* @author Dan Cox | |
*/ | |
import org.flixel.*; | |
[SWF(width="640",height="480",backgroundColor="#000000")] | |
[Frame(factoryClass="Preloader")] |
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
package | |
{ | |
/** | |
* ... | |
* @author Dan Cox | |
*/ | |
import org.flixel.*; | |
public class PlayState extends FlxState |
OlderNewer