User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'replace')' in or related to this line: 'var currentBudget = parseInt(budgetText.text.replace('$', ''));' Line Number: 214
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'replace')' in or related to this line: 'var currentBudget = parseInt(budgetText.text.replace('$', ''));' Line Number: 213
User prompt
Please fix the bug: 'ReferenceError: budgetText is not defined' in or related to this line: 'var currentBudget = parseInt(budgetText.text.replace('$', ''));' Line Number: 213
User prompt
When store item is purchased, deduct price tag from your budget of $20.
User prompt
when you buy item remove price tag money from $20 budget
User prompt
Click Kneeboard twice to buy a item.
User prompt
Click kneeboard text to buy item
User prompt
Click enable text twice to buy item
User prompt
Change KneeboardPriceTagText to say Buy Now when clicked twice.
User prompt
Make kneeboard price text disappear when you click on background screen
User prompt
Please fix the bug: 'ReferenceError: obj is not defined' in or related to this line: 'if (!kneeboard.containsPoint(obj.event.global)) {' Line Number: 214
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'global')' in or related to this line: 'if (!kneeboard.containsPoint(event.data.global)) {' Line Number: 214
User prompt
Make price text disappear when click away from screen
User prompt
Make kneeboard text much bigger.
User prompt
Make kneeboard text bigger. Much bigger.
User prompt
Make neighbored text bigger.
User prompt
When Kneeboard is clicked, show a text box with a black background that says Kneeboard $15.
User prompt
Add a background to the kneeboard price
User prompt
When Kneeboard is clicked, show a text box that says Kneeboard $15.
User prompt
Make price tags smaller.
User prompt
Give the price tag a white background
User prompt
bigger.
User prompt
Make the price tag hot pink.
User prompt
Make the price tag bigger.
User prompt
Make the price tag pink.
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 }); /**** * Game Code ****/ // Create a title page var titlePage = game.addChild(new Container()); titlePage.addChild(LK.getAsset('titlescreen', { anchorX: 0.5, anchorY: 0.5, x: 1024, y: 1366 })); // Create a start button var startButton = titlePage.addChild(LK.getAsset('categoryButton', { anchorX: 0.5, anchorY: 0.5, x: 1024, y: 1666, scaleX: 1.5, scaleY: 1.5 })); // Add text to the start button var startButtonText = new Text2('Start', { size: 50, fill: 0xFFFFFF }); startButtonText.anchor.set(0.5, 0.5); startButton.addChild(startButtonText); startButton.interactive = true; startButton.on('down', function () { // Remove the title page when the start button is clicked titlePage.destroy(); // Add the thrift background when the start button is clicked game.addChild(LK.getAsset('thriftBackground', { anchorX: 0.5, anchorY: 0.5, x: 1024, y: 1366 })); // Add big-ass coat to the game screen var bigAssCoat = game.addChild(LK.getAsset('bigAssCoat', { anchorX: 0.5, anchorY: 0.5, x: 1524, y: 2040 })); // Add Dookie Brown leather jacket to the game screen var dookieBrownLeatherJacket = game.addChild(LK.getAsset('dookieBrownLeatherJacket', { anchorX: 0.5, anchorY: 0.5, x: 2004, y: 2040 })); // Add Grandad's coat to the game screen var grandadsCoat = game.addChild(LK.getAsset('granddadsClothes', { anchorX: 0.5, anchorY: 0.5, x: 1769, y: 2020 })); // Add pink leopard mink to the game screen var pinkLeopardMink = game.addChild(LK.getAsset('pinkLeopardMink', { anchorX: 0.5, anchorY: 0.5, x: 300, y: 2100 })); // Add plaid button-up shirt to the game screen var plaidButtonUpShirt = game.addChild(LK.getAsset('plaidButtonUpShirt', { anchorX: 0.5, anchorY: 0.5, x: 550, y: 1620 })); // Add Lord Jumpsuit to the game screen var lordJumpsuit = game.addChild(LK.getAsset('velourJumpsuit', { anchorX: 0.5, anchorY: 0.5, x: 100, y: 2120 })); // Add built-in onesie with socks to the game screen var builtInOnesieWithSocks = game.addChild(LK.getAsset('builtInOnesieWithSocks', { anchorX: 0.5, anchorY: 0.5, x: 820, y: 1600 })); // Add zebra pajamas to the game screen var zebraPajamas = game.addChild(LK.getAsset('flannelZebraPyjamas', { anchorX: 0.5, anchorY: 0.5, x: 750, y: 2020 })); // Add fox skin to the game screen var foxSkin = game.addChild(LK.getAsset('furFoxSkin', { anchorX: 0.5, anchorY: 0.5, x: 970, y: 2000 })); // Add skeet blanket to the game screen var skeetBlanket = game.addChild(LK.getAsset('skeetBlanket', { anchorX: 0.5, anchorY: 0.5, x: 1200, y: 2000 })); // Add house slippers to the game screen var houseSlippers = game.addChild(LK.getAsset('houseSlippers', { anchorX: 0.5, anchorY: 0.5, x: 1700, y: 1320 })); // Add wolf skin hat to the game screen var wolfSkinHat = game.addChild(LK.getAsset('wolfSkinHat', { anchorX: 0.5, anchorY: 0.5, x: 520, y: 1290 })); // Add Gator Shoe to the game screen var gatorShoes = game.addChild(LK.getAsset('gatorShoes', { anchorX: 0.5, anchorY: 0.5, x: 1800, y: 1430 })); // Add velcro sneakers to the game screen var velcroSneakers = game.addChild(LK.getAsset('velcroSneakers', { anchorX: 0.5, anchorY: 0.5, x: 1900, y: 1310 })); // Add telescope to the game screen var telescope = game.addChild(LK.getAsset('telescope', { anchorX: 0.5, anchorY: 0.5, x: 900, y: 1030 })); // Add kneeboard to the game screen var kneeboard = game.addChild(LK.getAsset('kneeBoard', { anchorX: 0.5, anchorY: 0.5, x: 1500, y: 2200 })); // Add price tag to kneeboard var kneeboardPriceTagBackground = LK.getAsset('itemBackground', { anchorX: 0.5, anchorY: 0.5, x: kneeboard.x, y: kneeboard.y + 100 }); game.addChild(kneeboardPriceTagBackground); var kneeboardPriceTag = new Text2('$15', { size: 100, // Increased size of the price tag fill: 0xFF69B4 }); kneeboardPriceTag.anchor.set(0.5, 0.5); kneeboardPriceTag.x = kneeboard.x; kneeboardPriceTag.y = kneeboard.y + 100; // Position the price tag below the kneeboard game.addChild(kneeboardPriceTag); // Add broken keyboard to the game screen var brokenKeyboard = game.addChild(LK.getAsset('brokenKeyboard', { anchorX: 0.5, anchorY: 0.5, x: 1770, y: 970 })); // Add instruction box with black background to the middle of the screen var instructionBox = game.addChild(LK.getAsset('instructionBox', { anchorX: 0.5, anchorY: 0.5, x: 1024, y: 1366, scaleX: 1.5, scaleY: 1.5 })); // Add text to the instruction box var instructionText = new Text2('Welcome to Poppin\' Tags: A Thrift Shop Adventure.', { size: 50, fill: 0xFFFFFF }); instructionText.anchor.set(0.5, 0.5); instructionText.zIndex = 2; // Increase zIndex to place text in front of instruction box instructionBox.addChild(instructionText); instructionBox.interactive = true; var clickCount = 0; instructionBox.on('down', function () { clickCount++; if (clickCount === 1) { instructionText.setText('You have $20 in your pocket and are huntin\' for a come-up.'); } else if (clickCount === 2) { instructionText.setText('Try and buy all items on your shopping list \n as cheap as you can. This is gonna be AWESOME!!!'); } else if (clickCount === 3) { instructionBox.destroy(); // Create a shopping cart with $20 in budget var shoppingCart = game.addChild(LK.getAsset('moneyContainer', { anchorX: 0.5, anchorY: 0.5, x: 200, y: 300, scaleX: 1.5, scaleY: 1.5 })); var budgetText = new Text2('$20', { size: 50, fill: 0xFFFFFF }); budgetText.anchor.set(0.5, 0.5); budgetText.zIndex = 2; // Increase zIndex to place text in front of shopping cart shoppingCart.addChild(budgetText); } }); });
===================================================================
--- original.js
+++ change.js
@@ -155,11 +155,18 @@
x: 1500,
y: 2200
}));
// Add price tag to kneeboard
+ var kneeboardPriceTagBackground = LK.getAsset('itemBackground', {
+ anchorX: 0.5,
+ anchorY: 0.5,
+ x: kneeboard.x,
+ y: kneeboard.y + 100
+ });
+ game.addChild(kneeboardPriceTagBackground);
var kneeboardPriceTag = new Text2('$15', {
size: 100,
- // Increased size of the price tag
+ // Increased size of the price tag
fill: 0xFF69B4
});
kneeboardPriceTag.anchor.set(0.5, 0.5);
kneeboardPriceTag.x = kneeboard.x;
onesie with socks. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
big coat. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
brown leather jacket. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
flannel zebra pyjamas. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
fur fox skin. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Pink leopard mink coat. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Wolf skin hat. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Velour jumpsuit. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Telescope. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Dirty blanket. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Velcro sneakers. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Plaid button up shirt. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
music keyboard. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Shopping list that says Big ass coat, Broken keyboard, skeet blanket, pink leopard mink, built-in onesie with the socks. In-Game asset. 2d. High contrast. No shadows
Price tag that says big ass coat $4.00. In-Game asset. 2d. High contrast. No shadows
Price tag that says Kneeboard $4.00. In-Game asset. 2d. High contrast. No shadows
police tag that says Broken Keyboard for $2. In-Game asset. 2d. High contrast. No shadows
Price tag that says Telescope $3.00. In-Game asset. 2d. High contrast. No shadows
price tag that's says Dookie Brown Leather Jacket $3.50. In-Game asset. 2d. High contrast. No shadows
price tag that says pink leopard mink $5. In-Game asset. 2d. High contrast. No shadows
price tag that says plaid button up shirt $2. In-Game asset. 2d. High contrast. No shadows
Price tag that says Gator shoes $3.00. In-Game asset. 2d. High contrast. No shadows
price tag that says fox skin $4.50. In-Game asset. 2d. High contrast. No shadows
Price tag that says Velcro sneakers $2.00. In-Game asset. 2d. High contrast. No shadows
price tag that says house slippers $1.50. In-Game asset. 2d. High contrast. No shadows
Price tag that says velour jumpsuit $3.00. In-Game asset. 2d. High contrast. No shadows
price tag that says wolf skin hat $2. In-Game asset. 2d. High contrast. No shadows
Price tag that says skeet blanket $2.00. In-Game asset. 2d. High contrast. No shadows
Price tag that says Zebra Pyjamas $2.50. In-Game asset. 2d. High contrast. No shadows
Green Discount price tag that says Big ass coat $2.40. In-Game asset. 2d. High contrast. No shadows
green price tag that says discount Dookie Brown Leather Jacket $2.80. In-Game asset. 2d. High contrast. No shadows
Green price tag that says discount kneeboard $3.20. In-Game asset. 2d. High contrast. No shadows
green price tag that says discount plaid button up shirt $1.60. In-Game asset. 2d. High contrast. No shadows
green price tag that says discount zebra pajamas $2. In-Game asset. 2d. High contrast. No shadows
Green pricetag that says discount Telescope $2.40. In-Game asset. 2d. High contrast. No shadows
green price tag that says discount velour jumpsuit $2.40. In-Game asset. 2d. High contrast. No shadows
Green pricetag that says discount Velcro sneakers $1.60. In-Game asset. 2d. High contrast. No shadows
green price tag that says discount house slippers $1.20. In-Game asset. 2d. High contrast. No shadows
green price tag that says discount wolf skin hat $1.60. In-Game asset. 2d. High contrast. No shadows
Green pricetag that says discount gator shoes $2.40. In-Game asset. 2d. High contrast. No shadows
Green pricetag that says discount built in onesie with socks $1.60. In-Game asset. 2d. High contrast. No shadows
Price tag that says built-in onesie with socks $2.00. In-Game asset. 2d. High contrast. No shadows
green price tag that says discount pink leopard mink 99 cents! In-Game asset. 2d. High contrast. No shadows
green price tag that says discount fox skin $2 In-Game asset. 2d. High contrast. No shadows
green price tag that says discount skeet blanket $0.50 In-Game asset. 2d. High contrast. No shadows
Green price tag that says discount broken keyboard $1 In-Game asset. 2d. High contrast. No shadows
Make picture transparent
Make picture transparent
Make picture transparent
Make picture transparent
Make picture transparent
Add number 5 to painted area
Sign that says play the notes in right order to start the game. In-Game asset. 2d. High contrast. No shadows
portrait banner, high definition, for a game titled "Poppin' Tags: A Thrift Shop Trubute"
How to play button. In-Game asset. 2d. High contrast. No shadows
1
Sound effect
2
Sound effect
3
Sound effect
4
Sound effect
5
Sound effect
6
Sound effect
7
Sound effect
8
Sound effect
Item1
Sound effect
Instrumental
Music
instrumentalMusic
Music
Heymacklemore
Sound effect
Cash
Sound effect
Leopardmink
Sound effect
Gatorshoes
Sound effect
Houseslippers
Sound effect
Dookiebrown
Sound effect
Velcros
Sound effect
Grandmascoat
Sound effect
Bigasscoat
Sound effect
Kneeboard
Sound effect
Brokenkeyboard
Sound effect
Skeetblanket
Sound effect
Foxfur
Sound effect
Builtinonesie
Sound effect
Plaidshirt
Sound effect
Telescope
Sound effect
Velourjumpsuit
Sound effect
Wolfhat
Sound effect
Zebrajamies
Sound effect
Poptags
Sound effect
Probsshoulda
Sound effect