This tutorial shows how to use Replit Agent to build and play a simple browser-based game directly in your workspace.
Note: You need a Replit account to get started. Sign up at replit.com if you don't have one yet. This tutorial uses the Agent prompt workflow - if you see "Create Something New" on your dashboard, that's your starting point.
- Sign in to your account at replit.com and go to your main dashboard.
- Click + Create Something New to open the project creation screen or go directly to the prompt space.
- In the Agent prompt field, describe the game you want to build. For example: Build a hangman game where each mystery word is an office personality type - like "Team Leader," "Office Clown," "Silent Genius," or "The Organizer." Show a fun one-line description after each correct guess. Click the Arrow button to run.
- Replit Agent generates the game files and opens them in the editor. Wait for the build to complete.
- Click Run to launch the game. It opens in the Webview tab - play directly in your browser without leaving Replit.
- To update the game - add more clues, change names, or adjust the difficulty - describe the changes in the Agent tab, and the Agent will revise the project automatically.
- Give the game a test, publish it, and share it with your friends or colleagues.
.gif)
