AI Project:
Ball in Basket Project
Jan 10, 2024
AI
A physics-based game where you draw the solution
No controls. No aiming.
Just draw a path, and let gravity do the rest.
Guide the ball into the basket using nothing but a line.
How it came together
The idea was simple:
What if solving the level is just drawing it?
So instead of building controls, I focused on physics.
A few of the iterations
Started with just a ball and gravity → validate basic motion
Added line drawing → convert user input into physical surfaces
Used segmented lines to simulate realistic collisions
Introduced a basket with collision + scoring detection
Added a subtle guide path → helps users understand intent
Tuned friction and bounce to make movement feel natural
Added states → draw → release → watch
Big challenges
Turning a drawing into physics
A line isn’t enough — it had to become multiple physical segments.
Getting collisions to feel smooth (not jagged) took iteration.
Making it feel predictable
Physics can feel random if not tuned well.
Small changes in friction, bounce, and gravity made a huge difference.
Layering visuals correctly
The basket, ball, and drawn path all needed proper depth.
Even the rim had to render in front/behind the ball to feel right.
Teaching without instructions
Instead of heavy UI, I used:
a faint guide path
minimal labels
simple “draw → release → watch” flow
The interaction explains itself.
What makes it interesting
Every solution is different.
You’re not playing the game, you’re designing the outcome.
Try it
→ Draw a path from ball to basket
→ Release and watch it play out
→ Reset and try a completely different solution
Explore other AI projects
Ball in Basket Project




