-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from codergautam/newevols
Newevols
- Loading branch information
Showing
24 changed files
with
236 additions
and
25 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const Evolution = require('./BasicEvolution'); | ||
const Types = require('../Types'); | ||
|
||
module.exports = class Knight extends Evolution { | ||
static type = Types.Evolution.Knight; | ||
static level = 8; | ||
static abilityDuration = 6; | ||
static abilityCooldown = 90; | ||
|
||
applyAbilityEffects() { | ||
this.player.sword.damage.multiplier *= 1.15; | ||
this.player.sword.knockback.multiplier['ability'] = 1.8; | ||
this.player.speed.multiplier *= 1.5; | ||
this.player.sword.swingDuration.multiplier['ability'] = 0.6; | ||
} | ||
|
||
update(dt) { | ||
super.update(dt); | ||
|
||
this.player.sword.damage.multiplier *= 1.1; | ||
// this.player.knockbackResistance.multiplier *= 1.05; | ||
this.player.speed.multiplier *= 1.05; | ||
this.player.health.max.multiplier *= 0.9; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
const Evolution = require('./BasicEvolution'); | ||
const Types = require('../Types'); | ||
|
||
module.exports = class Rook extends Evolution { | ||
static type = Types.Evolution.Rook; | ||
static level = 13; | ||
static previousEvol = Types.Evolution.Tank; | ||
static abilityDuration = 0.1; | ||
static abilityCooldown = 40; | ||
|
||
applyAbilityEffects() { | ||
const downInputs = this.player.inputs?.downInputs; | ||
|
||
let angle = Math.PI / 2; // dwn | ||
|
||
if(downInputs && downInputs.length > 0) { | ||
switch (downInputs[0]) { | ||
case 1: | ||
angle = -Math.PI / 2; | ||
break; | ||
case 2: | ||
angle = 0; | ||
break; | ||
case 3: | ||
angle = Math.PI / 2; | ||
break; | ||
case 4: | ||
angle = Math.PI; | ||
break; | ||
} | ||
} | ||
|
||
this.player.shape.x = this.player.shape.x + (10000000 * Math.cos(angle)); | ||
this.player.shape.y = this.player.shape.y + (10000000 * Math.sin(angle)); | ||
} | ||
|
||
update(dt) { | ||
this.player.modifiers.disableDiagonalMovement = true; | ||
|
||
this.player.shape.setScale(1.25); | ||
this.player.sword.damage.multiplier *= 1.2; | ||
this.player.sword.knockback.multiplier['ability'] = 1.25; | ||
this.player.knockbackResistance.multiplier *= 1.25; | ||
this.player.health.max.multiplier *= 1.25; | ||
this.player.health.regen.multiplier *= 1.25; | ||
this.player.health.regenWait.multiplier *= 1.15; | ||
super.update(dt); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
const Evolution = require('./BasicEvolution'); | ||
const Types = require('../Types'); | ||
|
||
module.exports = class Samurai extends Evolution { | ||
static type = Types.Evolution.Samurai; | ||
static level = 13; | ||
static previousEvol = Types.Evolution.Tank; | ||
static abilityDuration = 6; | ||
static abilityCooldown = 60; | ||
|
||
applyAbilityEffects() { | ||
this.player.sword.damage.multiplier *= 1.5; | ||
this.player.sword.knockback.multiplier['ability'] = 2.5; | ||
this.player.knockbackResistance.multiplier *= 1.5; | ||
this.player.health.regen.multiplier *= 8; | ||
this.player.speed.multiplier *= 1.25; | ||
|
||
|
||
this.player.health.regenWait.multiplier = 0; | ||
this.player.sword.swingDuration.multiplier['ability'] = 0.5; | ||
} | ||
|
||
update(dt) { | ||
super.update(dt); | ||
this.player.speed.multiplier *= 0.85; | ||
this.player.shape.setScale(1.05); | ||
this.player.sword.damage.multiplier *= 1.15; | ||
this.player.sword.knockback.multiplier['ability'] = 1.15; | ||
this.player.knockbackResistance.multiplier *= 1.15; | ||
this.player.health.max.multiplier *= 1.15; | ||
this.player.health.regen.multiplier *= 1.15; | ||
this.player.health.regenWait.multiplier *= 1; | ||
//TODO: Damagecooldown: 1.1 | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// const Evolution = require('./BasicEvolution'); | ||
// const Types = require('../Types'); | ||
|
||
// module.exports = class Stalker extends Evolution { | ||
// static type = Types.Evolution.Stalker; | ||
// static level = 3; | ||
// static previousEvol = Types.Evolution.Vampire; | ||
// static abilityDuration = 6; | ||
// static abilityCooldown = 90; | ||
|
||
// applyAbilityEffects() { | ||
// } | ||
|
||
// update(dt) { | ||
// super.update(dt); | ||
// } | ||
// } |
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
Oops, something went wrong.