User prompt
stars should blink ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
give humans motion ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
make them snail and shell bigger by x2, humans should be bigger by x5. human appear separately and randomly and make them 3 different asset.
User prompt
make them more upper
User prompt
snail shell and humans, put them upper to ground.
User prompt
hiding in the shell last for 3 secs, no more
Code edit (1 edits merged)
Please save this source code
User prompt
Snail & Moonlight
Initial prompt
Create a 2D infinite side-scrolling mobile game called **“Snail & Moonlight”**. Concept: - The player controls a small snail that slowly crawls forward. - The camera follows the snail in a continuous rightward scroll. - The game is endless — the player survives as long as possible. Controls: - Tap and hold = the snail hides inside its shell (for protection). - Release = the snail comes out and keeps crawling. Main Gameplay: - The snail moves forward automatically. - Humans appear occasionally, walking or standing in the snail’s path. - If the snail is NOT hidden in its shell when it touches a human, the game ends. - If the snail is hidden, it is safe and the human passes over without harm. Dream Mechanic: - At random intervals, a soft beam of moonlight appears from the sky. - If the snail touches the moonlight (regardless of being hidden or not), the screen transitions into a special “dream mode”. Dream Mode: - Calm, floating environment with soft music and surreal visuals. - The snail floats automatically in a vertical scrolling dream world. - The player can collect glowing orbs for bonus points. - No enemies or threats — just a relaxing bonus section. - After 15 seconds, the snail returns to the normal nighttime road. Visual Style: - Nighttime setting: glowing grass, fireflies, stars. - Calm and minimal audio, with a soft change in mood when entering dreams. - Dream mode has pastel colors, bubbles, or floating objects. Game Loop: - Infinite scroll + random obstacles (humans) - Tap to hide mechanic - Periodic moonlight triggers alternate gameplay mode - High score based on distance and dream orb collection Requirements: - Mobile-friendly - Single-touch control only - Auto-movement and camera follow - Seamless transition between real world and dream world
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
}); /****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});
2048x100 pixel ground layer with grass. In-Game asset. 2d. High contrast. No shadows
white shiny little star 2d pixel art. In-Game asset. 2d. High contrast. No shadows
bad regular casual middle aged man full body 2d pixel art. In-Game asset. 2d. High contrast. No shadows
bad regular casual middle aged woman full body 2d pixel art. In-Game asset. 2d. High contrast. No shadows
bad regular casual kid full body 2d pixel art. In-Game asset. 2d. High contrast. No shadows
desperate depressive cute snail 2d pixel art. In-Game asset. 2d. High contrast. No shadows
dream orb 2d pixel art. In-Game asset. 2d. High contrast. No shadows
desperate depressive cute snail is hiding in shell 2d pixel art. In-Game asset. 2d. High contrast. No shadows
bad regular frown casual old woman full body 2d pixel art. In-Game asset. 2d. High contrast. No shadows
bad regular frown casual old man full body 2d pixel art. In-Game asset. 2d. High contrast. No shadows
bad regular frown casual girl kid blonde hair braided full body 2d pixel art. In-Game asset. 2d. High contrast. No shadows