This application does not collect any personal information.
Internet access is only used to retrieve ads from the web.
import RainbowText from 'objects/RainbowText'; | |
import Star from 'objects/Star'; | |
import Player from 'objects/Player'; | |
import Level1 from 'objects/Level1'; | |
class GameState extends Phaser.State { | |
preload() { | |
this.game.load.image('sky', 'assets/sky.png'); | |
this.game.load.image('ground', 'assets/platform.png'); |
<html> | |
<head> | |
<title>Battle!</title> | |
<link rel="stylesheet" type="text/css" href="style.css"/> | |
<script> | |
//TEMPLATE! | |
//------------------------------------------------------ | |
//Function: | |
//Purpose: | |
//Input: |
let wrapper = ` | |
function tpl(scope) { | |
var T = function() { | |
Object.assign(this, scope); | |
this.get = () => \` | |
<%=contents%> | |
\`; | |
}; |
import RainbowText from 'objects/RainbowText'; | |
class GameState extends Phaser.State { | |
preload() { | |
this.game.load.image('sky', 'assets/sky.png'); | |
this.game.load.image('ground', 'assets/platform.png'); | |
this.game.load.image('star', 'assets/star.png'); | |
this.game.load.spritesheet('dude', 'assets/dude.png', 32, 48); | |
} |
var buggyAndroid = parseInt((/android (\d+)/.exec(window.navigator.userAgent.toLowerCase()) || [])[1], 10) < 4; | |
if (!history.pushState || buggyAndroid) { | |
if (window.location.hash) { | |
if(window.location.pathname !== '/') window.location.replace('/#!' + window.location.hash.substr(2)); //Hash and a path, just keep the hash (redirect) | |
} else { | |
window.location.replace('/#!' + window.location.pathname); //No hash, take path | |
} | |
} | |
//And then in app.config: |
// starfield.js | |
ig.module( | |
'game.starfield' | |
) | |
.requires( | |
'impact.system', | |
'impact.background-map' | |
) | |
.defines(function() { | |
var colors = ['#fff', '#555', '#f8ceda']; |
/* | |
Pig Latin interpreter | |
by Ben Buckman, July 20 2012 | |
Rules: | |
- All words beginning with a consonant have their first letter moved to the end of word followed by 'ay'. | |
Example: Hello -> Ellohay | |
- All words beginning with a vowel have their first letter moved to the end moved to the word followed by 'hay'. | |
Example: Another -> Notherahay |
'use strict'; | |
class Node { | |
constructor(data) { | |
this.prev = this.next = null; | |
this.data = data; | |
} | |
} | |
class List { |