User prompt
Please fix the bug: 'TypeError: tween.to is not a function. (In 'tween.to(plusText, { y: plusText.y - 100, alpha: 0, duration: 1000, onComplete: function onComplete() { __$(236); plusText.destroy(); } })', 'tween.to' is undefined)' in or related to this line: 'tween.to(plusText, {' Line Number: 432
User prompt
Please fix the bug: 'TypeError: tween.to is not a function. (In 'tween.to(self.scale, { x: 1.2, y: 1.2, duration: 500, repeat: -1, yoyo: true })', 'tween.to' is undefined)' in or related to this line: 'tween.to(self.scale, {' Line Number: 177 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Please fix the bug: 'storage.get is not a function. (In 'storage.get("highScore", 0)', 'storage.get' is undefined)' in or related to this line: 'var highScore = storage.get("highScore", 0);' Line Number: 206 ↪💡 Consider importing and using the following plugins: @upit/storage.v1
User prompt
Please fix the bug: 'storage.getNumber is not a function. (In 'storage.getNumber("highScore", 0)', 'storage.getNumber' is undefined)' in or related to this line: 'var highScore = storage.getNumber("highScore", 0);' Line Number: 206
User prompt
Please fix the bug: 'storage.get is not a function. (In 'storage.get("highScore", 0)', 'storage.get' is undefined)' in or related to this line: 'var highScore = storage.get("highScore", 0);' Line Number: 206 ↪💡 Consider importing and using the following plugins: @upit/storage.v1
User prompt
Please fix the bug: 'storage.getNumber is not a function. (In 'storage.getNumber("highScore", 0)', 'storage.getNumber' is undefined)' in or related to this line: 'var highScore = storage.getNumber("highScore", 0);' Line Number: 206 ↪💡 Consider importing and using the following plugins: @upit/storage.v1
User prompt
Hook up the assets to the game
User prompt
Add assets
User prompt
Flappy Penguin
User prompt
Please continue polishing my design document.
Initial prompt
Pvz
/**** * Plugins ****/ var tween = LK.import("@upit/tween.v1"); var storage = LK.import("@upit/storage.v1"); /**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 });
===================================================================
--- original.js
+++ change.js
@@ -1,6 +1,12 @@
-/****
+/****
+* Plugins
+****/
+var tween = LK.import("@upit/tween.v1");
+var storage = LK.import("@upit/storage.v1");
+
+/****
* Initialize Game
-****/
+****/
var game = new LK.Game({
backgroundColor: 0x000000
});
\ No newline at end of file