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
// Generated on 2013-09-17 using generator-webapp 0.4.2 | |
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
module.exports = function (grunt) { |
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
// limit max unit per wave to 50 | |
// begin by creating the cheapest units, when it reach 50 units and you still have hardness to spend | |
// then remove the first in the array and build a harder one. When all of the units are of one type it migrates | |
// to the other level. | |
var toSpawn = []; | |
var l = 0; | |
var max = 50; | |
var currentLevel = 0; | |
while(remainingHardness > 0){ | |
if(l < max){ |
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 BuildTemplate = ' \ | |
<h2 class="small-caps">build</h2> \ | |
'; | |
var BuildV = BaseV.extend({ | |
className: 'btn-group-vertical', | |
initialize: function(o){ | |
this.__player = o.player; |
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 Signal = function(){} | |
Signal.prototype = { | |
init: function(){ | |
this.listeners = []; | |
this.looping = false; | |
this.length = 0; | |
}, | |
add: function(method, applyOn){ |
NewerOlder