Tutorial β€” how to vibe code a game using Cursor based on my...

@donvito
Melvin Vivas@donvito
36 views Mar 10, 2025 ~3 min read
Advertisement
1
Tutorial β€” how to vibe code a game using Cursor

based on my experience building my game flyhi.netlify.app

here's how I did it, tips πŸ‘‡ 🧡
Media image
2
1/ Identify your game concept. For me, I wanted to "make a flight sim game"

You can also mention if want it in react, this is what I used
3
2/ Mention if you want a "2D or 3D game" so it'll use the right libraries for your game

For 3D games, I suggest ask to use the @threejs library since it is the best right now for web
4
3/ Once the intiial app is done -- this will be still a rough version

Look at what was generated and see what aspect it needs to be improve on

player mechanics β€” movement controls and interactions
obstacles β€” behavior and spawning patterns
environment β€” space background, lighting, and textures
game mechanics β€” scoring system
5
4/ Vibe code and iterate each feature until you are happy with it. Make sure one feature is finished before you move on to the next one

If cursor is stuck or you don't understand something that is happening, ask chatgpt for help

switch models and use what is effective, I use sonnet 3.5 and 3.7 interchangeably. if sonnet is stuck I use, gpt 4o
6
5/ Be specific with your prompts. For example

"add a controls guide in the top left of the screen showing the speed and altitude of the aircraft. make the color dark and have green text"
7
6/ Test your app while building to make sure nothing breaks while iterating. If you see something break, make sure you revert to checkpoints so it is easier to fix

If you are familiar with git, use it to track your changes

This will save you later if AI breaks something
8
7/ When I was building my game, I didnt like the generated aircraft so I asked chatgpt how I can improve it

It suggested to use 3D models which I can load into my game. I didn't know this so I did research in chatgpt itself
9
8/ Sketchfab is a great resource for 3D models, check it out . The easiest format I used was glb files

Just ask cursor to add them to your project
sketchfab.com
10
9/ Once you have 3D models loaded, it is easy to add more to your game. Just follow the same pattern

When adding models, mention location where you want to put the model

I experienced a model being placed below the surface level or above it, just prompt cursor if you can't see the model. you might need to ask cursor to lift or pull it down depending on where it placed it initially
11
10/ The key to making good progress is observing, testing then prompting changes

Everyone gets stuck sometimes but don't give up. Try to use other AI to help you overcome an issue
12
11/ Before you deploy your game, add Google analytics so you can monitor how many users you are using your game

Create a new property in Google analytics and ask Cursor to add it to your project
13
12/ Lastly, deploy your app. I suggest netlify or vercel, both will work well.

Just be mindful of costs if your game becomes really popular so make sure you set spending limits so you don't spend more than your budget
14
Check out the game I built using Cursor by just prompting

x.com/donvito/status…
15
That's a wrap! Hope you find this guide useful!

If you find this helpful, please repost

If you want more guides like this or simply see my progress with my game dev, follow me here in X @donvito
Actions
What You Can Do
  • Export as PDF or Markdown
  • Batch Export to Notion
  • Bookmark & Highlight
  • Screenshot Tweet
Create Free Account

Includes 7-day Premium trial

Advertisement