User prompt
platforms should start from the bottom
Code edit (1 edits merged)
Please save this source code
User prompt
Color Bounce
Initial prompt
Build a complete, mobile-friendly rhythm-reaction game called **Color Bounce** with the following specifications: 🎮 Core Mechanics: 1. A ball automatically bounces downward onto colored platforms. 2. Each platform has one of 4 colors: red, blue, yellow and green. 3. The player must tap to **cycle the ball's color** in the order: red → blue → yellow → green → red... 4. When the ball lands on a platform: - ✅ If the color matches: it bounces again and the game continues. - ❌ If the color doesn't match: the game ends. 5. The ball falls faster as the game progresses — **increase tempo over time.** 🎯 Controls: - Single-tap input anywhere on screen = cycle ball color to next one. 🧠 Difficulty Progression: - Start with 4 colored platforms, slow tempo. - Every 10 bounces, increase fall speed slightly. - After 20 bounces, introduce *moving* platforms (horizontal slide). - After 40 bounces, introduce random gaps (platform missing). - Cap difficulty at 80 bounces for now. 🌈 Visual & Audio Feedback: - Each color has a **distinct glow and trail**. - Add a **particle burst** on successful bounce (small confetti or glow). - Add a **shake + screen flash** on failure. - Add SFX: - Bounce success = pitch-matched ping - Color switch = soft click - Fail = low thud + screen flash 🏆 Score & Game Flow: - Show **score as total successful bounces**. - At game over, show: - Final score - Best score - Retry button ✨ Cosmetic System: - Add **coin pickup items** that appear randomly on platforms (10% chance). - Player earns coins to unlock: - Ball skins (change ball appearance) - Trail styles (fire, smoke, sparkles) - Background themes (night, neon, pixel) - Add a basic **shop UI** with 6 total unlockable items (2 per category).
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 });
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});
blue ball. In-Game asset. 2d. High contrast. No shadows
green ball. In-Game asset. 2d. High contrast. No shadows
red ball. In-Game asset. 2d. High contrast. No shadows
yellow ball. In-Game asset. 2d. High contrast. No shadows
coin. In-Game asset. 2d. High contrast. No shadows
blue platform. In-Game asset. 2d. High contrast. No shadows
green platform. In-Game asset. 2d. High contrast. No shadows
red platform. In-Game asset. 2d. High contrast. No shadows
yellow platform. In-Game asset. 2d. High contrast. No shadows
Create a vertical-scrolling, futuristic game background for a rhythm-based mobile game. The style should be vibrant and glowing, with a deep gradient from dark purple to electric blue. Include subtle abstract shapes like floating geometric particles, soft energy lines, and a faint digital grid. The mood should feel like you're inside a pulsing rhythm tunnel or neon cyber tower. No text, no characters — just atmospheric depth and motion-friendly layers. Must loop seamlessly for vertical scrolling. Style: sleek, minimal, energetic.. In-Game asset. 2d. High contrast. No shadows