User prompt
Snake Evolution: Four Realms
Initial prompt
🐍 Game Title: Snake Evolution: Four Realms Create a multi-level snake game with mobile-friendly controls, engaging themes, and increasing difficulty. 🔧 Game Core Mechanics Step 1: Create the Snake Entity The snake moves in a given direction. Has position, speed, and changeDirection() method. It grows when it eats food. Step 2: Implement Mobile Swipe Controls Swipe up, down, left, right to control direction. For desktop: use arrow keys or WASD. Step 3: Add Food and Obstacles Food appears randomly. On eating food: Add +1 to score Add a new tail segment Random obstacles placed in the path. On collision: Game Over Step 4: Snake Body Growth Logic Snake consists of head and segments. Each segment follows the previous one. After eating food, push a new segment at the tail. Step 5: Collision Detection If snake collides with: Itself ➡️ Game Over Wall/Obstacle ➡️ Game Over Food ➡️ Grow + Score + Respawn food Step 6: Scoring System Display current score Show high score after game ends Optional: add coins or XP Step 7: Game Over & Restart Show Game Over screen with: Current score High score Restart button Step 8: Visual Effects & Audio Smooth movement Food blinks or glows Add SFX: Eat food, crash, power-up Background music with mute/unmute button 🎨 Level System (4 Themes) Add a Level Select screen with 4 unlockable levels. Each level has unique design, gameplay twists, and obstacles. 🟢 Level 1: Jungle Dash 🌴 Theme: Lush green jungle Obstacles: Vines, rocks, rolling logs Twist: Coconuts fall randomly Speed increases every 10 points Simple intro level ❄️ Level 2: Arctic Escape Theme: Snowy ice world Obstacles: Ice blocks, sliding penguins Twist: Slippery snake movement (drift effect) Bonus: Fish food gives +2 score Medium difficulty 🟠 Level 3: Desert Storm Theme: Desert with pyramids and ruins Obstacles: Sand tornadoes, quicksand spots Twist: Some food is a mirage (fake) Real food gives coins Higher difficulty 🔵 Level 4: Neon Tech Zone Theme: Cyber city with glowing lights Obstacles: Drones, laser gates Twist: Gates open/close in patterns Snake gets a starting shield Hardest level with enemies shooting projectiles
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 });
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});
Juicy or glossy ball, like a glowing apple or bouncing berry.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Two big eyes with tounge outside that is snake head with yellow and redcolors . Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows