Changeset 98 for pycodeshooter
- Timestamp:
- 01/22/11 21:12:25 (14 years ago)
- Location:
- pycodeshooter/trunk/shooter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pycodeshooter/trunk/shooter/system.js
r97 r98 297 297 playerData.speed, 298 298 playerData.numbombs, 299 ["rgba(255,0,0,0.3)", "rgba(0,0,255,0.3)"], 299 300 [new LinerBarrage(YExtendBullet, 300 301 playerData.shotsize, … … 381 382 Math.log(bossData.agility + 0.1) * 3, 382 383 0, 384 ["rgba(255,0,0,0.3)", "rgba(0,0,255,0.3)"], 383 385 brrgs 384 386 ); -
pycodeshooter/trunk/shooter/trooper.js
r97 r98 68 68 69 69 var Trooper = function(name, actList, size, hitSize, color, hitColor, 70 x, y, w, h, life, speed, numBombs, barrages) { 71 72 this.bullets = new Array(); 73 this.bomb = null; 74 this.name = name; 75 this.actList = actList; 76 this.size = size; 77 this.hitSize = hitSize; 78 this.color = color; 79 this.hitColor = hitColor; 80 this.x = x; 81 this.y = y; 82 this.w = w; 83 this.h = h; 84 this.life = life; 85 this.speed = speed; 86 this.numBombs = numBombs; 87 this.barrages = barrages; 70 x, y, w, h, life, speed, numBombs, bombColors, barrages) { 71 72 this.bullets = new Array(); 73 this.bomb = null; 74 this.name = name; 75 this.actList = actList; 76 this.size = size; 77 this.hitSize = hitSize; 78 this.color = color; 79 this.hitColor = hitColor; 80 this.x = x; 81 this.y = y; 82 this.w = w; 83 this.h = h; 84 this.life = life; 85 this.speed = speed; 86 this.numBombs = numBombs; 87 this.bombColors = bombColors; 88 this.barrages = barrages; 88 89 89 90 this.move = function(x, y) { … … 206 207 this.addBomb = function() { 207 208 if (!this.bomb && this.numBombs > 0) { 208 this.bomb = new Bomb(this.x, this.y, this.w, this.h, this.size * 2, 10,209 ["rgba(255,0,0,0.3)", "rgba(0,0,255,0.3)"]);209 this.bomb = new Bomb(this.x, this.y, this.w, this.h, 210 this.size * 2, 10, this.bombColors); 210 211 this.numBombs--; 211 212 }
Note: See TracChangeset
for help on using the changeset viewer.