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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
// Author Brad P. Taylor ([email protected]) license MIT | |
///<reference path="../../../../bower_components/phaser-official/build/phaser.d.ts"/> | |
///<reference path="./prefab.ts"/> | |
// TODO - support PIXI.Texture/BaseTexture/Atlas (if texture then use inner texture) | |
// TODO - error checking ? possibly correct bad snap requests (not multiple) | |
module bpt { | |
export class Scale9 extends Phaser.Group { |
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
/* global window */ | |
function StageResizer (stageElement, options) { | |
options = options || {}; | |
this._element = stageElement; | |
this._stageWidth = options.stageWidth || stageElement.offsetWidth || 1; | |
this._stageHeight = options.stageWidth || stageElement.offsetWidth || 1; | |
this._snapToEdge = options.snapToEdge || true; |
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
document.createElement = function ( | |
createElement, // the native one | |
createResponse // the function "in charge" | |
) { | |
return function (nodeName) { | |
var result, src; | |
// if we are creating a script | |
if (/^script$/i.test(nodeName)) { | |
// result will be a place holder | |
result = createElement.call( |
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> | |
<meta charset="UTF-8"> | |
<title>Open App</title> | |
<!-- | |
URL Params: | |
customSchemeURL: Your custom scheme app |