User prompt
Please fix the bug: 'Uncaught ReferenceError: parallax is not defined' in or related to this line: 'activeMovingSpeechBubble = null, enemies = [], obstacles = [], parallax, score = 0, distanceTraveled = 0, distanceTraveledIncrement = 1 / 60, isGameOver = false, gameStarted = false;' Line Number: 926
User prompt
when an event is selected, show the text on screen
User prompt
when hero ground intersects with objevents, make sure that objgo, objjump, objrally and objaccelerate do not destroy themselves
User prompt
when hero ground intersects with objevents objgo, objjump, objrally and objaccelerate, does not destroy itself
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading '_move_migrated')' in or related to this line: 'if (typeof obstacles[i]._move_migrated === 'function') {' Line Number: 1133
User prompt
when hero intersects with objgo, objjump, objrally and objaccelerate, objevents does not destroy itself
User prompt
set ongoingevent to false when the game starts
User prompt
when heroground intersects with objevents, wait 1 real life second before destroying it
User prompt
when heroground intersects with objevents, wait 1.5 real life second before destroying it
User prompt
when an event is ongoing, objevents does not spawn
User prompt
when hero ground intersects with objevents, destroy obj events and select a random event
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading '_move_migrated')' in or related to this line: 'obstacles[i]._move_migrated();' Line Number: 1132
User prompt
its y position should not be random, it should be heroGround.y = game.height - heroGround.height / 2 - 50;
User prompt
objevents should spawn at the height of hero ground
User prompt
objevents should instantiate itself outside of the playspace on the right side and follow the parralax until it leaves the left side of the screen
User prompt
i want to create 3 different events one called Avoid one called Survive and one called Collect, one event is triggered at randomwhen hero ground intersects with objevents, the event selected is shown in text in the upper right corner of the screen at the same height as distance text
Code edit (5 edits merged)
Please save this source code
User prompt
remove **After Detachment:** ```JavaScript heroGround.y += 50;
Code edit (1 edits merged)
Please save this source code
User prompt
move distance a bit to the right
User prompt
reduce the thickness
User prompt
make it less bold
User prompt
Add a white outline to the distance text
User prompt
add a yellow outline
User prompt
do it
===================================================================
--- original.js
+++ change.js
@@ -1097,11 +1097,16 @@
if (typeof obstacles[i]._move_migrated === 'function') {
obstacles[i]._move_migrated();
}
if (obstacles[i] instanceof ObjEvents && heroGround.intersects(obstacles[i])) {
- obstacles[i].destroy();
- obstacles.splice(i, 1);
- handleCollisionWithObj();
+ var objEvent = obstacles[i];
+ LK.setTimeout(function () {
+ if (objEvent) {
+ objEvent.destroy();
+ obstacles.splice(i, 1);
+ handleCollisionWithObj();
+ }
+ }, 1500);
}
}
var particles = game.children.filter(function (child) {
return child instanceof Particle;
2d cyberpunk particle of a dash ability. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
blue jetfuel. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art speech bubble that says "?" neon color. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art speech bubble that says "Go" neon color. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art speech bubble that says "Ok" neon color.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a bubble a wing inside in neon color.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art bubble with 2 fast foward arrows neon color. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Gray Cyber neon lit logo of the word Rush. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
side profile of a flying car in the art style of a 16 bit neon cyberpunk game. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
retro cyberpunk datadisk in neon colors. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
retro cyberpunk pole flag in neon colors with the words 'events' on it.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
retro sign that says "Hold to Dash" in neon colors. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
retro sign that says "Tap to Move" in neon colors.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
retro sign that says "catch" with an flying drone symbol in neon colors.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
retro flying drone in neon colors.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
retro sign that says "Survive" with an face symbol in neon colors... Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
neon colored cyberpunk round electricity. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
SynthwaveMusic
Music
snd_letsgo
Sound effect
snd_announcer
Sound effect
snd_powerup
Sound effect
snd_dataacquire
Sound effect
snd_walkie
Sound effect
snd_nice
Sound effect
snd_carhonk
Sound effect
snd_enemy
Sound effect
snd_sphere
Sound effect
snd_windup
Sound effect
snd_spikey
Sound effect
snd_drone
Sound effect