User prompt
add the same animation for game title in endscreen as the one when the hoomepage is first created
User prompt
show gametitle in end screen too
User prompt
create a flag when endscreen is up
User prompt
add a condition here to check if engame happened, if it has, do not increase playtime: playTimeInterval = LK.setInterval(function () { playTime += 1; storage.playTime = playTime; console.log('Time Played2:', playTime, 'seconds'); }, 1000);
Code edit (1 edits merged)
Please save this source code
User prompt
time played, should just print the time played once, and not update it
User prompt
add a condition on timer, to only increase every tick if endscreen is not up yet
User prompt
when endscreen is loaded, stop counting play time
User prompt
stop countint time when end screen appears
User prompt
timeplayed shouldbe stored in storage and loaded on game load βͺπ‘ Consider importing and using the following plugins: @upit/storage.v1
User prompt
engame shoudl have the same tint color as upgrade βͺπ‘ Consider importing and using the following plugins: @upit/tween.v1
User prompt
do not reset play tiem every time the game starts. it shoudl be stored in sessionn βͺπ‘ Consider importing and using the following plugins: @upit/storage.v1
User prompt
Please fix the bug: 'TypeError: clearInterval is not a function' in or related to this line: 'clearInterval(playTimeInterval);' Line Number: 337
User prompt
Please fix the bug: 'Uncaught TypeError: setInterval is not a function' in or related to this line: 'playTimeInterval = setInterval(function () {' Line Number: 1178
User prompt
play time counter should start when player touches start
User prompt
console log time played
Code edit (1 edits merged)
Please save this source code
User prompt
time played is not being stored or retrevide, I just dont see it on endscreen, it is always 0 βͺπ‘ Consider importing and using the following plugins: @upit/storage.v1
User prompt
time played is not loaded on game start
Code edit (2 edits merged)
Please save this source code
User prompt
move congratulations messsage on endscreen adn time player 200 piexle below
User prompt
remove game title from end screen
Code edit (1 edits merged)
Please save this source code
User prompt
container of game titlle in end screen should have the same tween as the one in the home screen βͺπ‘ Consider importing and using the following plugins: @upit/tween.v1
User prompt
game title in end screen text should be black
===================================================================
--- original.js
+++ change.js
@@ -280,8 +280,16 @@
var gameTitle = new GameTitle();
gameTitle.x = GAME_WIDTH / 2;
gameTitle.y = GAME_HEIGHT / 2 - 600;
game.addChild(gameTitle);
+ // Apply the same animation as the homepage
+ tween(gameTitle, {
+ y: GAME_HEIGHT / 2 - 500
+ }, {
+ duration: 1000,
+ easing: tween.bounceOut
+ });
+ animateTitleColor();
var congratsText = new Text2('Congratulations! You Broke BrickBreaker!', {
size: 100,
fill: 0xffffff
});