Jump to content

Roguelike attack


the-kid
 Share

Recommended Posts

    Player.prototype.createMeleeWeapon = function () {    
        var weapon = game.add.weapon(30, 'weapon');
        weapon.trackSprite(this);
        weapon.bulletKillType = Phaser.Weapon.KILL_DISTANCE;
        weapon.bulletKillDistance = 200;
        weapon.bullets.attackDamage = this.stats.attackDamage;
        weapon.fireRate = 1000;
       return weapon;
    }

Here is the code that I have right now.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...