User prompt
make sure the cheater is always at least 0.5 away from the screen's perimeters
User prompt
Make score and countdown switch locations on screen
User prompt
Game also finishes when countdown reaches 0
User prompt
move the countdown to the top right corner
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'addChild')' in this line: 'LK.gui.bottomCenter.addChild(countdownTxt);' Line Number: 106
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'addChild')' in this line: 'LK.gui.bottomCenter.addChild(countdownTxt);' Line Number: 106
User prompt
exibit countdown
User prompt
set a count down of 5 seconds that renews every time the cheater is clicked on
User prompt
add 1 extra betting table for every 15 points
User prompt
make sure the cheater never spawns at the same spot of the badge
User prompt
add 5 more gamblers for every 10 points
User prompt
increase the speed of gamblers
User prompt
change the location of the betting tables every 5 seconds
User prompt
add 5 extra genuine gamblers
===================================================================
--- original.js
+++ change.js
@@ -106,8 +106,17 @@
fill: "#ffffff"
});
scoreTxt.anchor.set(.5, 0);
LK.gui.topCenter.addChild(scoreTxt);
+ self.addBettingTable = function () {
+ if (score % 15 === 0 && score !== 0) {
+ var table = casinoFloor.createAsset('bettingTable', 'Betting Table', 0.5, 0.5);
+ table.x = Math.random() * (2048 - table.width) + table.width / 2;
+ table.y = Math.random() * (2732 - table.height) + table.height / 2;
+ casinoFloor.bettingTables.push(table);
+ casinoFloor.addChild(table);
+ }
+ };
for (var i = 0; i < 15; i++) {
var gambler = new Gambler();
gambler.x = Math.random() * 2048;
gambler.y = Math.random() * 2732;
@@ -128,8 +137,9 @@
cheaters.push(cheater);
cheater.on('down', function () {
score += 1;
scoreTxt.setText(score);
+ self.addBettingTable();
if (score % 10 === 0) {
self.addGamblers();
}
respawnCheater(this);
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.