User prompt
When the level increases, pause the game and show a popup. Inside the popup are a choice between three boon represented as buttons. These boons are uniquely randomized from the list of available boons (Luck, Scale, Range, Damage, Rearm).
User prompt
Fix Bug: 'TypeError: LK.resumeGame is not a function' in this line: 'LK.resumeGame();' Line Number: 11
User prompt
Fix Bug: 'TypeError: LK.pauseGame is not a function' in this line: 'LK.pauseGame();' Line Number: 307
User prompt
When the level increases, pause the game and show a popup. Inside the popup are a choice between three boon represented as buttons. These boons are uniquely randomized from the list of available boons.
User prompt
Rename the boon variables to include "Level" at the end
User prompt
create variables to track the following level, starting from 0: LuckBoon, ScaleBoon, RangeBoon, DamageBoon, RearmBoon
User prompt
create level variables for the following boons, starting from 0: LuckBoon, ScaleBoon, RangeBoon, DamageBoon, RearmBoon
User prompt
swap Level and countdown placements
User prompt
do not display the score
User prompt
display the level as text under the countdown text
User prompt
instead of decreasing the countdown every tick, perform the update on an interval of 60
User prompt
show a 5 minute countdown at the top center of the screen in minutes and seconds, without a label
User prompt
show the current game time in the top center of the screen
User prompt
game keeps track of the level (starting at 1) and level requirements (starting at 20). Whenever the experience is incremented, check if the experience >= level requirement, if so, increment the level by 1, reduce the experience by the level requirement, and increase the level requirement by 20%
User prompt
game should keep track of how much experience has been collected
User prompt
keep track of how much experience has been collected
User prompt
Reduce initial travelDistance from 400 to 200
User prompt
instead of destroying all experience pickups when collecting a crucifix pickup, activate them
User prompt
Reduce the experiencepickup speed from 30 to 20 and activation distance from 300 to 400
User prompt
The crucifixpickup also destroys all experiencepickups
User prompt
When creating a experiencepickup, pass through the hero reference as the first argument of the contructor
User prompt
Fix Bug: 'TypeError: hero is undefined' in this line: 'var dx = hero.x - self.x;' Line Number: 6
User prompt
Remove the collision detection from the experiencepickup object's move function
User prompt
Move the experiencepickup-hero collision detection into the experiencepickups array loop instead
User prompt
When creating an experiencepickup add it to the experiencepickups array
===================================================================
--- original.js
+++ change.js
@@ -110,15 +110,8 @@
var score = 0;
var experience = 0;
var level = 1;
var levelRequirement = 20;
- var scoreTxt = new Text2('Score: ' + score, {
- size: 120,
- fill: '#ffffff',
- font: 'bold monospace'
- });
- LK.gui.topCenter.addChild(scoreTxt);
- scoreTxt.x = 0;
var countdown = 300;
var countdownTxt = new Text2('', {
size: 120,
fill: '#ffffff',
@@ -239,9 +232,8 @@
self.addChild(bloodSplatter);
enemies[i].destroy();
enemies.splice(i, 1);
score++;
- scoreTxt.setText('Score: ' + score);
i--;
break;
}
}
pixel art cross with blue accents Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a white orb. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a white orb with a halo. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a pulsating white heart with a halo. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a dark goo projectile with red highlights. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art tall blue fireball. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of an evil fantasy sword facing downward. Minor red details. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
backgroundAmbient
Sound effect
heroHealed
Sound effect
pickupExperience
Sound effect
heroLeveled
Sound effect
weaponCrossImpact
Sound effect
heroImpact
Sound effect
enemyDeath
Sound effect
pickupWeapon
Sound effect
pickupCrucifix
Sound effect
weaponCrossLaunch
Sound effect
heroDeath
Sound effect
enemyRoar
Sound effect
clockChime
Sound effect