User prompt
As you gain more distance, the game should get faster, more difficult, and more items should fall. Also, when the quiz appears, the game must pause and reduce the number of questions frequent for 5 seconds. Also, record the distance traveled on the screen. And mention about it in the end i mean show score and distance crews obviosly statistics.
User prompt
Add more falling obstacles, such as pirates, waves, and stones. The scoreboard should display integers. Pause the game when the quiz screen opens. Also, add a section on the screen that counts coins. This will make the game much faster. Don't ask the same questions over and over again. So, add more questions.
User prompt
make it game harder, fix score tab, when the quiz appears pause the game and show which penalty or power up applied
User prompt
ship went away fix it also fix quiz mechanic
Code edit (1 edits merged)
Please save this source code
User prompt
Maritime Quiz Navigator
Initial prompt
Create an endless 2D maritime-themed game. create a menu before starting the game. The player controls a ship that automatically moves forward and can steer left or right to avoid obstacles like rocks, waves, or pirates. At certain intervals, a quiz screen should appear with a maritime-related question. You can mention Incoterms and other similar concepts in the questions. Simply having maritime-related topics, such as ship sections and components, maritime-related organizations, etc., is sufficient. When the quiz appears, count down from 10. Make the questions four-choice. And there is only 1 correct answer for gaining power-up all of the other answers wrong and causes penalty If the player answers correctly, they gain a power-up power ups: Shield (invincible for 5s) Double Coins (double coins for 10s) Extra Life – Extra 1 life even its full Clear Path – Remove all obstacles on screen instantly. Smaller ship - for 5 seconds. If the player answers incorrectly, they receive a penalty Penalty Ideas Extra Obstacles – Spawn more obstacles for 8 seconds. Lose score Lose coin Health loss (-1 heart) Sticky Controls – Delay in response for 5 seconds. Score Freeze – No points for 5 seconds. Bigger Ship – for 4 seconds. Add some crew members for collecting so it can increase score, scores will calculate as distance + crew members times 100. show a bar for collected crew members on the top While the crew recruitments feature is only for scoring, it also adds coins to the game. Display the score at the end of the game. The game should include a leveling system: as the player levels up, the ship design upgrades and the background evolves (day, night, storm, open sea). The game should feel casual, easy to play, but addictive. Please generate the initial prototype logic, placeholders for assets, and a basic scoring system. Game Flow Ship moves forward automatically at increasing speed as player progresses through levels Player steers left/right using touch controls to avoid randomly generated obstacles (rocks, waves, pirates) Quiz questions appear every 15-20 seconds, pausing the action temporarily Correct quiz answers grant random power-ups Incorrect answers impose penalties Three-heart health system - lose hearts by hitting obstacles or wrong quiz answers. However, the lives gained from correct answers can exceed the 3 heart limit. Leveling system triggered by distance milestones: Level 1 (wooden boat, day), Level 2 (merchant ship, sunset), Level 3 (warship, night), Level 4 (modern vessel, storm) Score increases continuously based on distance traveled plus bonus points for correct quiz answers Game ends when all hearts are lost, displaying final score and level reached
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
}); /****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});