Ever dreamed of creating your own 3D multiplayer game, like a Minecraft experience, but thought it would be too complicated?
Great news! Making a multiplayer game is easier than you might think, especially with beginner-friendly tools like Rosebud AI and Supabase.
In this detailed, step-by-step tutorial, we'll walk through creating a multiplayer game from scratch using Rosebud AI, based on a real example from our livestream.
You can follow along with this guide or watch the full video below for a step-by-step walkthrough.
What You'll Need
- A Rosebud AI account (free)
- A Supabase account (free tier available)
Step 1: Start Your Rosebud Project
- Head to Rosebud AI and log in.
- Start a new project. For this example, we'll call it "Spice Collector."
Step 2: Set Up Supabase for Multiplayer
- In your Rosebud project, find and click the "Connect to Supabase" button.
- Rosebud will show instructions and SQL code snippets you'll need shortly.
Step 3: Creating Your Database in Supabase
- Visit Supabase and sign up/log in.
- Create a new project and an organization (just name it something simple like "My Organization").
- Name your new database clearly, for example, "spice-collector-db".
- Select the smallest database option (free), pick your closest region, and securely save your generated database password.
- Wait a couple of minutes while Supabase sets up your project.
Step 4: Configuring Your Database with SQL
- Back in Rosebud, copy the provided SQL snippet.
- Return to your Supabase dashboard, open the SQL Editor, paste the copied SQL code, and run it.
- If you see errors, copy them back into Rosebud—Rosie, our built-in AI assistant, will provide corrected SQL code for you.
Step 5: Integrate Supabase with Your Rosebud Game
- Rosebud provides another snippet of code specifically for integrating Supabase into your game.
- Replace placeholders in this code snippet with your Supabase project's URL and Anon Key (found under your Supabase project's "Data API" settings).
- Provide this modified code snippet back to Rosie in Rosebud, clearly stating: "I want to set up Supabase first."
- Rosie will integrate Supabase for you automatically.
Step 6: Finalizing Multiplayer Setup
- After integration, ask Rosie clearly, "Is my game ready, or do I need to make more changes?"
- Rosie will confirm if everything is synchronized correctly or suggest additional adjustments automatically.
Step 7: Testing Your Multiplayer Game
- Publish your game in Rosebud.
- Start the game by entering your name and creating a session (e.g., "Test World").
- Share the link provided by Rosebud with a friend.
- Your friend can join instantly—now you're both playing together!
Enhancing Your Multiplayer Game
In the livestream example, "Spice Collector" included fun features like:
- Picking up items ("spice")
- Player name tags
- Customizable characters (like Dune-inspired characters)
Rosebud lets you easily add these interactive elements with Rosie's guidance, making your game even more exciting.
Troubleshooting and Support
If you encounter issues:
- Double-check your Supabase URL and Anon Key.
- Ensure SQL steps run without errors (consult Rosie for troubleshooting).
And that's it! You've created a real-time multiplayer game quickly and easily.
The same steps apply whether you're creating a Minecraft-style sandbox or an entirely new gaming concept.
If you have any question, join the Rosebud AI Discord community for help, tips, or inspiration.