This file contains hidden or 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
| <html> | |
| <head> | |
| <title>Battle!</title> | |
| <link rel="stylesheet" type="text/css" href="style.css"/> | |
| <script> | |
| //TEMPLATE! | |
| //------------------------------------------------------ | |
| //Function: | |
| //Purpose: | |
| //Input: |
This file contains hidden or 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
| let wrapper = ` | |
| function tpl(scope) { | |
| var T = function() { | |
| Object.assign(this, scope); | |
| this.get = () => \` | |
| <%=contents%> | |
| \`; | |
| }; |
This file contains hidden or 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
| 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'); |
This file contains hidden or 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
| 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); | |
| } |
This file contains hidden or 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
| 'use strict'; | |
| class Node { | |
| constructor(data) { | |
| this.prev = this.next = null; | |
| this.data = data; | |
| } | |
| } | |
| class List { |
This file contains hidden or 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
| angular | |
| .module('ces.component', []) | |
| .factory('Component', [ | |
| function() { | |
| 'use strict'; | |
| function Component(name, props) { | |
| this.name = name; | |
| this.__properties = {}; |
This file contains hidden or 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>Graph Paper</title> | |
| <script type="text/javascript"> | |
| /* Declare global variables */ | |
| var spacing = 18; | |
| var canvas; | |
| var ctx; | |
| var line; |
This file contains hidden or 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
| wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u31-b13/jdk-8u31-linux-x64.tar.gz |
This file contains hidden or 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 cube = EntityBuilder.build('Cubey-Doobey-Doo', { | |
| position: [0, 3, 0], | |
| components: { | |
| model: { | |
| //default | |
| }, | |
| script: { | |
| scripts: [ | |
| 'assets/scripts/test.js' | |
| ] |
This file contains hidden or 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
| ig.module('plugins.controller') | |
| .requires('impact.system', 'impact.input') | |
| .defines(function () { | |
| // TODO: support 4 controllers | |
| var controller = new GameController.Controller(0); | |
| // extra keys for gamepad buttons (starting at -20 to support plusplus) | |
| ig.KEY.GAMEPAD_A = -20; | |
| ig.KEY.GAMEPAD_B = -21; | |
| ig.KEY.GAMEPAD_X = -22; |
NewerOlder