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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using SimplexNoise; | |
using System.Drawing; | |
namespace SimplexExample | |
{ |
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 compareNumbers(a, b) { | |
return a - b | |
} | |
function arrayDiffs(a, b) { | |
a.sort(compareNumbers) | |
b.sort(compareNumbers) | |
//console.log('A', a) | |
//console.log('B', b) |
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 GameComponent(gameObject, config) { | |
this.gameObject = gameObject | |
this.position = gameObject.position | |
this.initialize() | |
if (config) { | |
this.configure(config) | |
} |
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
# developer console | |
inputEle = null # the console's Prompt (an html input) | |
dispEle = null # the console's output (a div, span, etc) | |
submitAction = null # function to run on the input | |
enabled = false | |
exports.enable = () -> | |
# ensures html elements have been specified | |
# ensures that the console is not already active | |
if inputEle && dispEle && !enabled |
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
<script type="text/javascript"> | |
$(document).ready(function() { | |
// your twitch channel name | |
var twitchName = 'yourchannelname' | |
// an element on your page to put the widget into | |
var elementSelector = '#streaming' | |
// HTML to display while waiting for data |
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 Existence = require('../Existence') | |
describe('Existence', function() { | |
var existence = null | |
beforeEach(function() { | |
existence = new Existence() | |
}) | |
it('can add/getById entities', 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
var Projectile = require('../Projectile') | |
var Vector2 = require('../../../nengi/Vector2') | |
var Map = require('../../map/Map') | |
var WallType = require('../../map/WallType') | |
describe('Projectile', function() { | |
var projectile = null | |
var mockClient = null | |
var mockTarget = null | |
var mockWeapon = null |
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
<div id='streaming'></div> |
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 nengi = require('../../nengi') | |
var EDictionary = require('../../nengi/external/EDictionary') | |
var protocols = require('../protocols') | |
// Graphics code | |
var Squid = require('./entity/Squid') | |
var Fish = require('./entity/Fish') | |
var Shark = require('./entity/Shark') | |
var Ink = require('./effect/Ink') | |
var Blood = require('./effect/Blood') |
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 Client = require('../Client') | |
function GameScene() { | |
this.client = new Client() | |
} | |
GameScene.prototype.enterScene = function() { | |
console.log('GameScene entered') | |
this.client.connect() | |
} |
OlderNewer