
End result: PixelGames' menu and the Blocks game running on a phone.
Before you start
All you need is a Replit account, free to create. The goal is to complete one full loop:- Build it with Agent
- Test it as a mobile app
- Publish it, and share it
1. Tell Agent to build the app
Open Replit and start a new app. Describe what you want to build, then select Mobile app as the app type.
Agent setting up the mobile project and the console shell UI.
2. Confirm it works in preview
Replit simulates PixelGames as iOS or Android directly in the preview pane. This is the fastest way to check a change.1
The simulator starts automatically
Replit launches the simulation as soon as PixelGames is ready, no setup needed.
2
Switch platforms with the dropdown
Use the Simulate on… dropdown in the preview pane toolbar (next to the wrench and
refresh icons) to switch between iOS, Android, and Web.

The Simulate on... dropdown in the Replit preview pane.
Check that it actually works
Use PixelGames like a player would:- See the MENU screen with Blocks selectable and the other three games marked “SOON.”
- Open Blocks and play a few pieces with the D-pad and A/B buttons.
- Confirm the score, level, and lines in the HUD update as you play.
You’ve got PixelGames running
You went from a single prompt to a playable game, previewed right inside Replit.Troubleshooting
The preview pane stays blank
The preview pane stays blank
The first build takes a minute or two, so give it a moment before assuming it’s stuck.
If it’s still blank after that, check the console for an error and share it with Agent.
Changes aren't appearing in the preview
Changes aren't appearing in the preview
Press R in the console to reload PixelGames, then use the refresh icon in the preview
pane toolbar if it still looks stale.
Red error screen in the preview
Red error screen in the preview
This usually means a JavaScript error or a missing package. Read the message, it often
points to the exact file and line, then share it with Agent and ask for a fix.
App works on web but breaks on iOS or Android (or vice versa)
App works on web but breaks on iOS or Android (or vice versa)
Some packages behave differently across platforms, one that works on web might not
support native, or need different setup. Ask Agent “Does this package support native?”
before relying on it.
Build takes a long time
Build takes a long time
The first build is always slower since nothing is cached yet, later ones should be
quicker. If it stays slow, ask Agent to check for unnecessary packages in the project.
Module not found errors
Module not found errors
This means a package isn’t installed, or is installed but the cache is stale. Ask Agent to
install it or clear the cache, and double check the package name isn’t misspelled.
What’s next
Test it on your phone
Feel PixelGames as a real phone app: buttons under your thumb, haptics, the real screen
size.
Add login
Let players sign in and save progress.
Store images in your mobile app
Save profile photos to App Storage.
Send push notifications
Tell players when a new game ships.
Add payments
Charge players for content in PixelGames.