User prompt
remove the counter at the top
User prompt
remove the counter at the top and replace it with point counter
User prompt
give the player points when they dodge obstacles. 10 points every time an obstacles is dodged
User prompt
make the range that obstacles turns into green circle 1.5x larger
User prompt
adjust the obstacle and car hitboxes according to the new assets
User prompt
make it so that obstacles can't turn into green circles even if you are near them if they are behind the car
User prompt
make it so that the obstacles turn back from green circle to their original form when you avoid them
User prompt
increase the range at which obstacles turn into green circles when you are near them
User prompt
make sure only the obstacles that you are in the same lane with change into green circles, not other lanes
User prompt
make the obstacles turn back into their original asset after you dodge them
User prompt
it doesn't work
User prompt
make it so that you can control the car with left and right arrow keys
User prompt
increase the range more but not too much
User prompt
the obstacles don't turn into green circles when you get close to them, increase the range a little
User prompt
make sure only the obstacles that you are in the same lane with change into green circles, not other lanes
User prompt
it doesn't work
User prompt
make it so that when you are really close to the obstacles they turn into green circles ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
make all the lanes size even
Code edit (1 edits merged)
Please save this source code
User prompt
Highway Runner
Initial prompt
create a game where there is a yellow square (representing a car) and a wide road, make the road asset move down as you are playing to give the illusion of the car moving. make it so there are 4 lanes, each divided with white lines. as you are driving there will be obstacles randomly at lanes and you must make the square (representing a car) switch lanes horizontally to avoid the obstacles, make sure the obstacles move with the road so there is space for new obstacles.
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 });
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});