User prompt
took me to level 1
User prompt
Do this with this logic until level 100 and as it gets harder the obstacles will move horizontally or vertically.
User prompt
make restart button purple with different font
User prompt
obstacle difficulty increases proportionally to level
User prompt
add more levels
User prompt
go back to previous version
User prompt
Make 100 levels and change the ball and target positions in each level
User prompt
use background music in assets and make it infinite
User prompt
use bounce sound in assets for every bounce
User prompt
add restart button
User prompt
make ball more smooth and fast
Code edit (1 edits merged)
Please save this source code
User prompt
Bounce Quest: Precision Puzzle
Initial prompt
Overview This is a 2D physics-based puzzle game designed for mobile platforms. The core mechanic revolves around a limited-bounce ball that the player must launch toward a reward zone, navigating through and around obstacles while minimizing the number of bounces. Core Gameplay Mechanics Player Input: The player drags and releases the ball to determine its launch direction and power. This simulates a slingshot-style interaction common in mobile games. Ball Behavior: The ball bounces off walls and obstacles, obeying basic 2D reflection physics. Each bounce reduces the allowed bounce count. Once the bounce limit is reached, the ball stops and the level is failed unless the goal has already been reached. Bounce Limit: The ball has a maximum number of allowed bounces, which decreases as levels progress to increase difficulty. Bounce limits are enforced per level and reset with each new attempt. Goal Zones: Each level contains a square-shaped “reward zone”. The player must get the ball to enter this zone to successfully complete the level. These reward zones are surrounded by obstacles, making the path to them more complex. Obstacles: Static, rectangular blocks that deflect the ball upon collision. Strategically placed to require careful planning and skillful launching. Level Design: Increasing complexity across levels: more obstacles, tighter angles, fewer allowed bounces. Emphasis on puzzle-solving and precision. Objectives The main objective is to reach the reward zone using the minimum number of bounces. Players are rewarded for efficiency: fewer bounces, higher scores. Platform and Controls Target Platform: Mobile (iOS, Android) Controls: Touch and drag input to control the ball's launch direction and power. UI Elements: Bounce counter Reset button Level progression Optional hint system Visual & Audio Design (Optional for AI Planning) Minimalistic and clean graphics for clarity. Use of color-coded zones: e.g., red for obstacles, green for reward zone. Sound effects for bounces, launches, and successful goals. Summary for AI Implementation Implement a 2D physics simulation using a game engine such as Unity or Godot. Model the ball with collision logic and bounce counting. Design levels with obstacle layouts and target zones. Create UI and input handling for mobile touch gestures. Add progression logic: increasing difficulty, scoring system, bounce constraints.
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 });
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});