User prompt
Fix Bug: 'TypeError: leftButton.containsPoint is not a function' in this line: 'if (leftButton.containsPoint(pos)) {' Line Number: 148
User prompt
everytime hero purplebullet makes contact with enemy, cosmiccredits = cosmiccredits + 5
User prompt
when the score increases by 1, add 5 to cosmic credits constantly
User prompt
when the score increases by 1, add 5 to cosmic credits
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'replace')' in this line: 'var cosmicCredits = Number(cosmicCreditsTxt.text.replace('Cosmic Credits: ', '')) + 5;' Line Number: 250
User prompt
everytime purplebullet makes contact with enemy, do current cosmic credits + 5
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'replace')' in this line: 'var cosmicCredits = Number(cosmicCreditsTxt.text.replace(/[^0-9]/g, '')) + 5;' Line Number: 242
User prompt
when a bullet makes contact with enemy, add 5 to cosmic credits
User prompt
below high score, add Cosmic Credits
User prompt
after an enemy has been killed, 5 cosmic credits should be added and constantly updates. However, it only updates for the first enemy kill
User prompt
5 cosmic credits per enemy killed
User prompt
the cosmic credits should update for every enemy killed. However, it only updates for one
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'setItem')' in this line: 'localStorage.setItem('cosmicCredits', cosmicCredits.toString());' Line Number: 242
User prompt
Fix Bug: 'TypeError: LK.setData is not a function' in this line: 'LK.setData('cosmicCredits', cosmicCredits);' Line Number: 242
User prompt
Fix Bug: 'TypeError: LK.setData is not a function' in this line: 'LK.setData('cosmicCredits', cosmicCredits);' Line Number: 242
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'getItem')' in this line: 'var cosmicCredits = Number(localStorage.getItem('cosmicCredits') || 0) + 5;' Line Number: 240
User prompt
Fix Bug: 'TypeError: LK.getData is not a function' in this line: 'var cosmicCredits = Number(LK.getData('cosmicCredits') || 0) + 5;' Line Number: 240
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'getItem')' in this line: 'var cosmicCredits = Number(localStorage.getItem('cosmicCredits') || 0) + 5;' Line Number: 240
User prompt
Fix Bug: 'TypeError: LK.getData is not a function' in this line: 'var cosmicCredits = Number(LK.getData('cosmicCredits') || 0) + 5;' Line Number: 240
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'getItem')' in this line: 'var cosmicCredits = Number(localStorage.getItem('cosmicCredits') || 0) + 5;' Line Number: 240
User prompt
Fix Bug: 'TypeError: LK.getData is not a function' in this line: 'var cosmicCredits = Number(LK.getData('cosmicCredits') || 0) + 5;' Line Number: 240
User prompt
Fix Bug: 'TypeError: LK.retrieveData is not a function' in this line: 'var cosmicCredits = Number(LK.retrieveData('cosmicCredits') || 0) + 5;' Line Number: 240
User prompt
Fix Bug: 'TypeError: LK.getData is not a function' in this line: 'var cosmicCredits = Number(LK.getData('cosmicCredits') || 0) + 5;' Line Number: 240
User prompt
below high score, make a new currency called "Cosmic Credits". 5 Cosmic Credits per enemy killed
User prompt
make it so you get 5 Cosmic Credits per enemy hit
===================================================================
--- original.js
+++ change.js
@@ -246,9 +246,9 @@
}
// Increment character's bullet limit
hero.bulletLimit++;
// Increment cosmic credits by 5
- var cosmicCredits = Number(cosmicCreditsTxt.text.replace('Cosmic Credits: ', '')) + 5;
+ var cosmicCredits = Number((cosmicCreditsTxt.text || '').replace('Cosmic Credits: ', '')) + 5;
cosmicCreditsTxt.setText('Cosmic Credits: ' + cosmicCredits);
}
bulletCountTxt.setText('Bullets: ' + hero.bulletLimit); // Update bullet count display
// Destroy enemy/bullet pack and bullet
android. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
letter X png. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
space background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
galaxy background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
galaxy background. High quality
space background.. High contrast