User prompt
her coin 10 puan kazandırsın ve her karakter her coin aldığında puanı toplanarak artsın. sağ üst köşede puanı yazsın.
Code edit (1 edits merged)
Please save this source code
User prompt
Math Runner Academy
Initial prompt
Create a 3-lane endless runner game similar to Subway Surfers. The main character is a 10-year-old boy viewed from behind, running forward in a colorful school-themed environment. The player controls the character using left and right arrow keys on the keyboard to switch between the three lanes. On the path, there are obstacles like backpacks, desks, and fences that must be avoided by switching lanes. There are also collectible gamepad-shaped icons scattered along the way that work like coins and give points when collected. If the player hits an obstacle, the game immediately pauses and displays a multiplication question (e.g., “7 x 8 = ?”) with three answer options. The player must choose the correct answer within 9 seconds. If the answer is correct, the character continues running and the score multiplier increases (1.1x, 1.2x, 1.3x, etc.). If the answer is incorrect or time runs out, the multiplier resets to 1.0 and the character receives a short penalty like slowing down or stumbling. The game should feature child-friendly cartoon-style graphics, smooth animations, and fun background music. Over time, the running speed should gradually increase to make the game more challenging. The main objective is to collect as many points as possible by dodging obstacles, collecting gamepad coins, and solving multiplication questions correctly.
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 });
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});