Crafting a Hospital Game: From Vibe Coding to Real Learning

So it turns out that you can’t really vibe code Unity projects very well. Which is a good thing for me because it means I will have to actually learn instead of defaulting to the path of least resistance as always.
I’ve been thinking, wouldn’t it be neat to make a hospital game? That’d be cool right, and a first project being a hospital game is… quite ambitious.
But here we are!!
I found that the vibe code was good for the basics, we get our patient circle, they go to the doctor circle, they get their prescription they change yellow then they leave. Wonderful.
Beyond that, lots of difficulties, because even though CoPilot can see into your codebase it cannot see into your Unity editor and that makes it much more difficult.
For a while I was trying to get it to code out a dispatcher issue for a dispatch script which I (and it) were getting angry with only for me to realise that I’d never put the script as a GameObject in my scene… yeah.
But for getting the basics down and starting something - we got it, and luckily I have learned enough about C# that I know what it all does which is nice. So for now we have:
Our patient (green) goes to the doctor:
They receive their treatment and are discharged and leave (triangle is the exit).
And then we have a bunch of debug messages in order to show us the change of states etc.
Small beginnings…
Subscribe to my newsletter
Read articles from Alex directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
