User prompt
split the boon message into two text2s; the top one saying "Choose", and the bottom one slight smaller saying "Minor Boon"
User prompt
add a message above the boon selection buttons that says "Choose a minor boon"
Code edit (1 edits merged)
Please save this source code
User prompt
The BorderedText's set text function should loop through the textList and call setText on each of them with string as the parameter
Code edit (13 edits merged)
Please save this source code
User prompt
borderedtext should create 5 different text2 instances and add them to the textList, each taking string, and settings as their parameters. The instances have the following offsets: (-2,-2), (-2, 2), (2,2), (2,-2) and (0,0)
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: availableBoons is not defined' in this line: 'updateButton.addChild(availableBoons);' Line Number: 168
Code edit (1 edits merged)
Please save this source code
User prompt
display a red 0 in the center of the upgrade button called availableboons
User prompt
adjust the upgrade button's anchor to 1,0, and give it a 20 unit margin from the top and right
User prompt
display an update button in the top right of the screen
Code edit (4 edits merged)
Please save this source code
User prompt
replace all fonts with bold courier new
Code edit (1 edits merged)
Please save this source code
User prompt
prevent the hero flip its x-scale while isPaused
Code edit (1 edits merged)
Please save this source code
User prompt
adjust the progressbar scale based on the percentage of experience gathered towards the levelRequirement after collecting an experiencepickup
User prompt
adjust the progressbar scale based on the percentage of experience gathered towards the levelRequirement
Code edit (6 edits merged)
Please save this source code
User prompt
add a new progressbarborder asset before the progressbar
User prompt
rename the topCenterAsset to progress bar, including the update to the id and description, and update the anchor to 0, 0
User prompt
add an asset to the top center of the gui
Code edit (1 edits merged)
Please save this source code
Code edit (7 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -158,8 +158,15 @@
});
var updateButton = LK.gui.topRight.createAsset('updateButton', 'Update Button', 1, 0);
updateButton.x = -20;
updateButton.y = 20;
+ var availableBoons = new Text2('0', {
+ size: 50,
+ fill: '#ff0000',
+ font: 'bold monospace'
+ });
+ availableBoons.anchor.set(.5, .5);
+ updateButton.addChild(availableBoons);
updateButton.on('down', function () {});
var levelTxt = new Text2('L' + level + ' • XP:', {
size: 80,
fill: '#ffffff',
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