Initial prompt
Duck Race
User prompt
add the facekit plugin ↪💡 Consider importing and using the following plugins: @upit/facekit.v1
User prompt
there should be a list of ducks
User prompt
all ducks should be aligned vertically on the left side of the game
Code edit (1 edits merged)
Please save this source code
User prompt
remove the obstacles
Code edit (5 edits merged)
Please save this source code
User prompt
make the playerDuck instance move to the right when the player uses the microphone input ↪💡 Consider importing and using the following plugins: @upit/facekit.v1
User prompt
make a countdown, which starts at 3 at game start. Before that no duck should move
User prompt
when the countdown is 0, move all the other ducks to the right side, which are not the playerInstance
User prompt
make the speed of the opponent ducks variable during the whole movement. Basically they should go fast and then slow down and go fast ↪💡 Consider importing and using the following plugins: @upit/tween.v1
Code edit (1 edits merged)
Please save this source code
User prompt
address the TODO
User prompt
create a playerDuck graphic and assign it to the playerDuck instance
User prompt
make the playerDuck its own class
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'attachAsset')' in or related to this line: 'var playerDuckGraphics = self.attachAsset('playerDuck', {' Line Number: 43
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'attachAsset')' in or related to this line: 'var playerDuckGraphics = self.attachAsset('playerDuck', {' Line Number: 43
Code edit (3 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
User prompt
the playerDuck instance is not showb
Code edit (3 edits merged)
Please save this source code
User prompt
create a "finishLine" graphic and place it at the right side
Code edit (8 edits merged)
Please save this source code
User prompt
the opponent ducks are moving at the same speed. Make it that they slow down / speed up randomly
===================================================================
--- original.js
+++ change.js
@@ -41,8 +41,9 @@
if (countdown == 0) {
self.x += facekit.volume * self.speed;
}
};
+ return self;
});
/****
* Initialize Game