User prompt
create objects "a", "b", "c", "d". "e," "f," "s," "l," "j," "k."
User prompt
the first time the apple hits the player, it does not display "F", fix it
User prompt
the first time the apple hits the player, it does not display (x), fix it
User prompt
display the "(x)" symbol in the upper right corner of the screen the second time a red apple hits the player
User prompt
display the "(x)" symbol in the upper right corner of the screen the second time a red apple hits the player
User prompt
Fix Bug: 'TypeError: game.getChildByName is not a function' in this line: 'if (player.hitByRedApple && !game.getChildByName('redF')) {' Line Number: 127
User prompt
display a red "F" symbol in the upper right corner of the screen the first time a red apple hits the player
User prompt
display the "F" symbol in the upper right corner of the screen the first time a red apple hits the player
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'expand')' in this line: 'var RedApple = Apple.expand(function () {' Line Number: 5
User prompt
add and show in the text box each character of the formula "f(x)dx = F(b) - F(a)" each time a red apple hits the player. the text in the text box is red. update the text box whenever you add characters to it.
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'length')' in this line: 'var nextChar = formula[currentText.length];' Line Number: 35
User prompt
add and show in the text box each character of the formula "f(x)dx = F(b) - F(a)" each time a red apple hits the player. the text in the text box is red. update the text box whenever you add characters to it.
User prompt
the text in the text box is red. update the text box whenever you add characters to it.
User prompt
add each sign of this formula "f(x)dx = F(b) - F(a)" to the text box sequentially each time the red apple hits the player
User prompt
make a text box in the upper right corner
User prompt
make a text box in the upper right corner.
User prompt
lower the grass
User prompt
lower the grass even lower
User prompt
lower the grass even lower.
User prompt
lower the grass even lower
User prompt
lower the grass even lower
User prompt
but not completely
User prompt
the grass should extend beyond the bottom edge of the screen
User prompt
the grass should extend beyond the bottom edge of the screen
User prompt
put the grass in front of the character at the bottom of the frame, make the grass 200 high.
===================================================================
--- original.js
+++ change.js
@@ -1,10 +1,10 @@
/****
* Classes
****/
// RedApple class
-var RedApple = Apple.expand(function () {
- var self = Apple.call(this);
+var RedApple = Container.expand(function () {
+ var self = Container.call(this);
var appleGraphics = self.createAsset('redApple', 'Falling red apple', 0.5, 0.5);
self.onCatch = function (textBox) {
var formula = 'f(x)dx = F(b) - F(a)';
var currentText = textBox.children[0].text;
grass
the fields of Britain, cartoon style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
green apple. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
red apple. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
eureka moment, cartoon style, light, no people. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
heart. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
stars flying on an ellipse, cartoon style, side view , no people. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white "=" on a green apple.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a white "F" on a red apple.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
the "G" sign on the red apple. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white " (M" on a red apple. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a white sign with a small "m" on a red apple.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white " /" on a green apple. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a white "R" on a red apple.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
green
a white " 2" on a red apple.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.