User prompt
Reduce size of intro scene
User prompt
Don't make it loop just stop at the bottom of image ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Make screen scroll slower and keep scrolling ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
When intro scene loads make it slowly scroll up ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
When intro scene loads make it slowly scroll down ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Move intro scene right
User prompt
Remove tap to start
User prompt
Move intro scene down 2000
User prompt
Make intro scene fill screen
User prompt
Make intro scene smaller
User prompt
Start game with intro scene
User prompt
Remove all code but leave assets
User prompt
Create an intro scene with intro asset
User prompt
Move backdrop down
User prompt
Make backdrop high definition
User prompt
Remove default towers
User prompt
Please fix the bug: 'Uncaught ReferenceError: hideUpgradeMenu is not defined' in or related to this line: 'hideUpgradeMenu(self);' Line Number: 4006
User prompt
Please fix the bug: 'ReferenceError: getTowerCost is not defined' in or related to this line: 'self.hasEnoughGold = gold >= getTowerCost(self.towerType);' Line Number: 3784
User prompt
Please fix the bug: 'TypeError: Cannot read properties of null (reading 'visible')' in or related to this line: 'if (towerPreview.visible) {' Line Number: 5224
User prompt
Please fix the bug: 'ReferenceError: updateUI is not defined' in or related to this line: 'updateUI();' Line Number: 5192
User prompt
Please fix the bug: 'TypeError: Cannot read properties of null (reading 'updateEnemy')' in or related to this line: 'if (grid.updateEnemy(enemy)) {' Line Number: 5176
User prompt
Please fix the bug: 'currentWave is not defined' in or related to this line: 'self.waveNumber = currentWave;' Line Number: 335
User prompt
Remove all code besides enemy and tower and backdrop associated code
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'height')' in or related to this line: 'healthBarOutline.y = healthBarBG.y = healthBar.y = -baseGraphics.height / 2 - 25;' Line Number: 1752
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'height')' in or related to this line: 'healthBarOutline.y = healthBarBG.y = healthBar.y = -baseGraphics.height / 2 - 25;' Line Number: 1752
/**** * Plugins ****/ var tween = LK.import("@upit/tween.v1"); /**** * Classes ****/ // Defense class var Defense = Container.expand(function () { var self = Container.call(this); var defenseGraphics = self.attachAsset('defense', { anchorX: 0.5, anchorY: 0.5 }); self.update = function () { // Defense logic goes here }; }); // Enemy class var Enemy = Container.expand(function () { var self = Container.call(this); var enemyGraphics = self.attachAsset('enemy', { anchorX: 0.5, anchorY: 0.5 }); self.update = function () { // Enemy logic goes here }; }); // Assets will be automatically created and loaded by the LK engine // Tower class var Tower = Container.expand(function () { var self = Container.call(this); var towerGraphics = self.attachAsset('tower', { anchorX: 0.5, anchorY: 0.5 }); self.update = function () { // Tower logic goes here }; }); /**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 //Init game with black background }); /**** * Game Code ****/ var gameState = 'playing'; var introContainer = new Container(); var titleImage = introContainer.attachAsset('Title', { anchorX: 0.5, anchorY: 0.5, scaleX: 0.4, scaleY: 0.4, x: 1524, y: 3000 }); game.addChild(introContainer); // Animate intro scene scrolling up slowly tween(introContainer, { y: -2000 }, { duration: 3000, easing: tween.easeOut }); // Start game automatically startGame(); function startGame() { // Game will start here console.log("Game started!"); }
===================================================================
--- original.js
+++ change.js
@@ -55,24 +55,21 @@
var introContainer = new Container();
var titleImage = introContainer.attachAsset('Title', {
anchorX: 0.5,
anchorY: 0.5,
- scaleX: 0.8,
- scaleY: 0.8,
+ scaleX: 0.4,
+ scaleY: 0.4,
x: 1524,
y: 3000
});
game.addChild(introContainer);
-// Animate intro scene scrolling up slowly and continuously
-function startScrollAnimation() {
- tween(introContainer, {
- y: -8000
- }, {
- duration: 10000,
- easing: tween.linear
- });
-}
-startScrollAnimation();
+// Animate intro scene scrolling up slowly
+tween(introContainer, {
+ y: -2000
+}, {
+ duration: 3000,
+ easing: tween.easeOut
+});
// Start game automatically
startGame();
function startGame() {
// Game will start here
White circle with two eyes, seen from above.. In-Game asset. 2d. High contrast. No shadows
White simple circular enemy seen from above, black outline. Black eyes, with a single shield in-font of it. Black and white only. Blue background.
White circle with black outline. Blue background.. In-Game asset. 2d. High contrast. No shadows
Fire hydrant. In-Game asset. 2d. High contrast. No shadows
Water spraying forward In-Game asset. 2d. High contrast. No shadows
Fart cloud. In-Game asset. 2d. High contrast. No shadows
Fan blades symmetrical. In-Game asset. 2d. High contrast. No shadows
Fireball. In-Game asset. 2d. High contrast. No shadows
Plasma ball. In-Game asset. 2d. High contrast. No shadows
Make picture transparent
Bug zapper on a pole. In-Game asset. 2d. High contrast. No shadows
Probe droid. In-Game asset. 2d. High contrast. No shadows
Space drone. In-Game asset. 2d. High contrast. No shadows
Remove propellers and make them symmetrical
Add more rows to gris
Make this picture with more night sky above the city skyline
Change text to say wave 1
Make button grey and say ??????
Make it say Wave 2
Make it say wave 3
Make it say wave 4
WiFi symbol. In-Game asset. 2d. High contrast. No shadows
explosion effect In-Game asset. 2d. High contrast. No shadows
Make it say wave 5
Remove laser beam
Make button hot pink and say 'Reflect $20'
Make button blue and change text to say 'Water $10' in a retro style font
Make button green and change test to say 'Gas $20'
Make button orange and change test to say 'Fire $40'
Make button very light blue and change test to say 'Air $30'
Make button gold and change text to say 'Electric $50'
Make button purple and change test to say 'Plasma $60'
Make button Teal and change test to say 'Slingshot $100'
Make button silver and change test to say 'WiFi $150'
Remove little kick so it's just a smooth oval shape
Make grid 6x8
Hand should be holding the gun by the Handle
Place laser cannon in both hands holding it like a shotgun
Make it stand still
Remove the words 5g
Make sure spelling in speech bubble is correct "We have found the earthlings weakness"
Fix the spelling of the word Planet
Slingshot. In-Game asset. 2d. High contrast. No shadows
Red button with a 'X' on it. In-Game asset. 2d. High contrast. No shadows
Green button with a tick on it
Fix the spelling of word saw
Canvasser
Sound effect
Alien1
Sound effect
Alien2
Sound effect
Alien3
Sound effect
Intro
Music
Probedroid
Sound effect
Probedroid2
Sound effect
Towerselect
Sound effect
Water
Sound effect
Explosion
Sound effect
Confirm
Sound effect
Fart
Sound effect
Electric
Sound effect
Fireball
Sound effect