Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (3 edits merged)
Please save this source code
User prompt
log variables before the line if (!jumpAction && jumpStep >= PLAYER_JUMP_STEP_MIN || jumpStep >= PLAYER_JUMP_STEP_MAX)
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (5 edits merged)
Please save this source code
User prompt
add an asset for the background
Code edit (14 edits merged)
Please save this source code
User prompt
in Sun class, animate the alpha of each circle alternatively
User prompt
Please fix the bug: 'Uncaught ReferenceError: rotation0 is not defined' in or related to this line: 'parent.attachAsset(asset, {' Line Number: 119
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
add a starfield in the background
Code edit (1 edits merged)
Please save this source code
Remix started
Copy The Road Runner
===================================================================
--- original.js
+++ change.js
@@ -489,8 +489,9 @@
falling = true;
body.pushAnimation(animationJump, PLAYER_POSE_TRANSITION);
}
step += aerialSpeed;
+ console.log("falling", falling, "step:", step, "currentNode.step:", currentNode.step);
if (falling && step <= currentNode.step) {
step = currentNode.step;
falling = false;
aerialSpeed = 0;
@@ -673,10 +674,10 @@
var ROAD_SEGMENT_FADEOUT = 0.015;
var ROAD_FREE_RUN_COUNT = 5;
var ROAD_STEP_COUNT = 5;
var ROAD_STEP_DEFAULT = 10;
-var ROAD_STEP_HEIGHT_BASE = 720;
-var ROAD_STEP_HEIGHT_INCREMENT = 0;
+var ROAD_STEP_HEIGHT_BASE = 512;
+var ROAD_STEP_HEIGHT_INCREMENT = 20;
var ROAD_STEP_CHANCE_BASE = 0; //0.1;
var ROAD_STEP_CHANCE_INCREMENT = 0; //0.05;
var ROAD_GEN_PLANT_ASSETS = 3;
var ROAD_GEN_PLANT_MAX = 3;
@@ -688,11 +689,11 @@
// Player Constants
var PLAYER_SPACING = ROAD_SEGMENT_ANGLE / 8; // 1/8 of a segment
var PLAYER_POSE_TRANSITION = 0.1;
var PLAYER_GRAVITY = 0.02;
-var PLAYER_JUMP_STEP_MIN = 720; // 1.0;
-var PLAYER_JUMP_STEP_MAX = 1500; //2.0;
-var PLAYER_JUMP_STEP_INCREMENT = 15; //; 0.15;
+var PLAYER_JUMP_STEP_MIN = 1.0; // 720; // 1.0;
+var PLAYER_JUMP_STEP_MAX = 2.0; //1500; //2.0;
+var PLAYER_JUMP_STEP_INCREMENT = .15; //; 0.15;
var PLAYER_ANIMATION_SPEED_BASE = 0.02;
var PLAYER_SCALE_BASE = 1; //0.5;
var PLAYER_SPEED_BASE = MATH_2_PI / (GAME_TICKS * 10); // 10s to complete a revolution
var PLAYER_SPEED_FACTOR_BASE = 1.0;
white
circle sliced into many pieces, flat image. 2d, white background, shadowless.
pixel art of a tall, tree. game asset, 2d, white background, shadowless.
pixel art cloud. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
dark space.
flying lava bubble. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a bonus crystal ball with the recycle symbol. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
top view A green round start button empty in the center like a ring.