User prompt
Make clicking on a cheater add 1 score point
User prompt
make the point system positive
User prompt
Make the health bar shaped as a security badge
User prompt
create a health bar of 3 tries before game over
User prompt
define that each time you click on a cheater, points increase by 1
User prompt
Fix Bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'isCheater')' in this line: 'self.isCheater = true;' Line Number: 8
Initial prompt
Whack 'a Cheater
===================================================================
--- original.js
+++ change.js
@@ -2,12 +2,12 @@
var self = Container.call(this);
self.tries = 3;
self.healthGraphics = [];
for (var i = 0; i < self.tries; i++) {
- var heart = self.createAsset('heart', 'Health Heart', 0, 0);
- heart.x = i * (heart.width + 10);
- self.healthGraphics.push(heart);
- self.addChild(heart);
+ var badge = self.createAsset('badge', 'Security Badge', 0, 0);
+ badge.x = i * (badge.width + 10);
+ self.healthGraphics.push(badge);
+ self.addChild(badge);
}
self.removeTry = function () {
if (self.tries > 0) {
self.tries--;
Typical cassino floor with green carpet and slot machines lined on the edges of the screen. It should fit the entirety of the screen. It is a topdown view. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A top down view of one blackjack betting table with one dealer per table. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Cassino security guard badge. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Top down image of an old lady carrying poker tokens. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Top down image of an old lady carrying poker tokens wearing sunglasses. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.