8000 Gathered Audio Assets · rsnazario/capstone-js-phaser-rpg@0482539 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0482539

Browse files
committed
Gathered Audio Assets
1 parent fca70fa commit 0482539

File tree

5 files changed

+1
-8
lines changed

5 files changed

+1
-8
lines changed

dist/assets/audios/Battle.mp3

4.43 MB
Binary file not shown.

dist/assets/audios/Intro.ogg

1.86 MB
Binary file not shown.

dist/assets/audios/WorldMap.mp3

7.47 MB
Binary file not shown.

dist/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/battle.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ export default class BattleScene extends Phaser.Scene {
5757
}
5858

5959
nextTurn() {
60-
61-
console.log('warrior HP: ' + this.heroes[0].hp);
62-
console.log('mage hp: ' +this.heroes[1].hp);
63-
6460
if (this.checkEndBattle()) {
6561
this.endBattle();
6662
return;
@@ -124,21 +120,18 @@ export default class BattleScene extends Phaser.Scene {
124120
}
125121

126122
endBattle() {
127-
128123
if (this.warriorHP > 0 ) {
129124
this.warriorHP = this.heroes[0].hp + 12;
130125
}
131126
if (this.mageHP > 0) {
132127
this.mageHP = this.heroes[1].hp + 12;
133128
}
134-
135129
if (this.warriorHP > this.heroes[0].maxHP) {
136130
this.warriorHP = this.heroes[0].maxHP;
137131
}
138132
if (this.mageHP > this.heroes[1].maxHP) {
139133
this.mageHP = this.heroes[1].maxHP;
140134
}
141-
142135
this.heroes.length = 0;
143136
this.enemies.length = 0;
144137
for (var i = 0; i < this.units.length; i++) {

0 commit comments

Comments
 (0)
0