Changeset 131 for pycodeshooter/trunk/shooter
- Timestamp:
- 05/04/12 18:14:13 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pycodeshooter/trunk/shooter/system.js
r130 r131 141 141 for (var k = 0; k < trooper.barrages.length; k++) { 142 142 trooper.barrages[k].way += item.attrs.quantity; 143 if (trooper.barrages[k].way >= 10) 144 trooper.barrages[k].way = 10; 143 if (trooper.barrages[k].way >= 5) 144 trooper.barrages[k].way = 5; 145 } 146 break; 147 case "wide": 148 playSound("se_item_wide"); 149 for (var k = 0; k < trooper.barrages.length; k++) { 150 trooper.barrages[k].size += item.attrs.quantity; 151 if (trooper.barrages[k].size >= 12) 152 trooper.barrages[k].size = 12; 145 153 } 146 154 break; … … 430 438 // nothing 431 439 } 432 else if (itemRand < 7 5) {440 else if (itemRand < 70) { 433 441 itemAttr = {"color": "#AAF", "symbol": "S", "type": "score", "quantity": enemy.maxLife * 200}; 434 442 } 443 else if (itemRand < 85) { 444 itemAttr = {"color": "#FAA", "symbol": "P", "type": "shot", "quantity": 1}; 445 } 435 446 else if (itemRand < 95) { 436 itemAttr = {"color": "# FAA", "symbol": "P", "type": "shot", "quantity": 1};447 itemAttr = {"color": "#A5F", "symbol": "W", "type": "wide", "quantity": 1}; 437 448 } 438 449 else if (itemRand < 98) { … … 621 632 [new LinerBarrage(YExtendBullet, 622 633 playerData.shotsize, 623 "rgba(64,64,128,0. 7)",634 "rgba(64,64,128,0.4)", 624 635 null, 625 636 playerData.shotinterval, … … 629 640 new LinerBarrage(LinerBullet, 630 641 playerData.shotsize, 631 "rgba(64,64,128,0. 7)",642 "rgba(64,64,128,0.4)", 632 643 null, 633 644 playerData.shotinterval, … … 655 666 new LinerBarrage(YExtendBullet, 656 667 playerData.shotsize, 657 "rgba(64,64,128,0. 7)",668 "rgba(64,64,128,0.4)", 658 669 null, 659 670 playerData.shotinterval, … … 663 674 new LinerBarrage(LinerBullet, 664 675 playerData.shotsize, 665 "rgba(64,64,128,0. 7)",676 "rgba(64,64,128,0.4)", 666 677 null, 667 678 playerData.shotinterval,
Note: See TracChangeset
for help on using the changeset viewer.