How to Make a Mobile Game With AI for Free (No Engine, No Code)
A step-by-step guide to making a mobile game with AI for free: pick a game that works, write a first prompt, playtest, tune the feel and share it.

You can make a mobile game with AI for free: describe the game to an AI coding agent, play what it builds and ask for changes until it feels right. With FreeMilk, the whole loop happens on your iPhone. The agent writes a native Swift game, remote Macs build it, and you play it in a live simulator streamed to your phone. You don't need a game engine, a computer or any code. Small games built around one clear mechanic work best.
What you'll need.
- An iPhone with FreeMilk. It's free: ads pay for a daily allowance of coding models.
- An idea you can describe in one sentence. More on that below.
- Optional: an Apple Developer Program membership, $99 a year, when you want to share your game through TestFlight or publish it on the App Store.
1. Pick a game AI can build well.
AI agents are best at small, focused games with simple rules:
- Arcade games: one-touch flyers, endless runners, dodgers and brick breakers.
- Casual puzzles: match-three, sliding tiles, and word or number puzzles.
- Idle and clicker games: tap to earn, buy upgrades, watch the numbers grow.
- Simple physics games: stacking, flinging and bouncing.
Online multiplayer, big open worlds and games that need lots of custom art and animation are much harder to build with any tool. Start small. A finished little game teaches you more than half of a big one.
2. Write the core loop in one sentence.
Every good small game has a core loop you can say in one breath: the player does one thing, to reach a goal, while something gets in the way. For example:

- "Tap to flap a paper plane through gaps in the clouds, scoring a point for each gap."
- "Swap neighboring tiles to make rows of three before the moves run out."
- "Tap the oven to bake cookies, then spend them on helpers that bake for you."
If you can't say it in a sentence yet, keep trimming until you can. That sentence becomes the heart of your first prompt.
3. Ask for the smallest playable version.
Ask for the core loop, a score and a way to restart, and nothing else. Leave out sound, art, menus and power-ups for now. When something's wrong, a small game makes it easy to see what.
First promptMake a native iPhone game in Swift with SpriteKit. The player taps anywhere to flap a paper plane upward, and gravity pulls it down. Clouds drift in from the right with a gap between them. Each gap the plane passes scores a point, and touching a cloud ends the run. Show the score at the top, and a game over screen with the score and a Play Again button. Portrait only. Simple shapes and colors are fine for now, and no sound yet.

SpriteKit is Apple's built-in framework for 2D games, so there's nothing to install. Prefer a game that runs in a web browser? Ask for an HTML5 canvas game instead, and FreeMilk's JavaScript environment will run it.
4. Play it, then give specific feedback.
Play the game in the streamed simulator. When something feels wrong, describe exactly what you did, what happened and where on the screen it happened:
- Vague: "The controls feel bad."
- Specific: "When I tap twice quickly, the plane only jumps once. Every tap should give the same boost."
Ask for one change at a time and play again after each one. It's the fastest way to know what fixed what.
5. Tune the feel.
Most of what makes a game feel good is numbers: gravity, jump strength, speed, gap size and how often obstacles appear. Ask the agent to gather them in one place, and you can tune the game by asking for a number to change instead of describing a feeling. Then add "juice", the small reactions that make every action feel satisfying.
Tuning promptMove every gameplay number (gravity, flap strength, scroll speed, gap size and how often clouds appear) into one GameTuning struct, with a short comment explaining each. Then make the game feel better: lower the gravity by about 20%, add a small squash and stretch when the plane flaps, a short screen shake and a strong haptic when it crashes, and a light haptic for each point.
6. Give players a reason to come back.
A run that ends is only fun if you want another one. Add one or two of these:
- A best score, saved on the device and shown on the start and game over screens.
- A difficulty curve that starts gently and tightens slowly, so new players learn and good players are challenged.
- Unlockables, like new colors or characters at score milestones.
- A daily challenge with the same layout for everyone that day.
7. Play it on a real iPhone, then share it.
Haptics don't play in the simulator, and the timing of real touches is where an arcade game lives or dies, so play your game on a real iPhone before you share it widely. TestFlight lets you install a build on your own iPhone and invite testers with a link, and the App Store makes your game public. Both need the Apple Developer Program and a build uploaded to App Store Connect. Your Swift project exports as a complete Xcode project for the upload, and our App Store checklist walks through every step.
Prompting tips for games.
- Describe the controls exactly: tap, hold, swipe or tilt, and what each one does.
- Say what ends a run and how the score works.
- Ask for shapes first and art later, once the game is fun with placeholder graphics.
- Report bugs as steps: what you did, what you expected and what happened instead.
- Add one feature at a time, and play after each.
Frequently asked questions.
Can I make a mobile game with AI for free?
Yes. FreeMilk is free: ads pay for a daily allowance of coding models, and you describe the game, play it in a live simulator and ask for changes, all on your iPhone. Publishing on the App Store needs Apple's $99-a-year Developer Program membership.
Do I need to know how to code to make a game with AI?
No. You describe what you want and react to what you play. Knowing a little about how games work helps you give sharper feedback, but it isn't required.
What kind of games can AI make?
Small 2D games with one clear mechanic work best: arcade games, casual puzzles, idle games and simple physics games. Large 3D or online multiplayer games are much harder to build with any tool, AI or not.
Do I need a game engine like Unity?
No. FreeMilk writes games in Swift with Apple's built-in frameworks, such as SpriteKit for 2D games, or as web games in JavaScript. There's no engine to install or learn.

