I’m going to make a point and click adventure game with a friend. I’m responsible for the coding. Can anyone with experience with this sort of genre give me any advice on coding practices, essential coding concepts to investigate, design practices, or any general resources, advice, or good tutorials? I’m mostly worried about scalability and avoiding spaghetti code.
I have been learning coding for about a year, and specifically using Unity since July-August.
If you have the budget, and if your focus is on making the game rather than practicing programming, I recommend Adventure Creator. It’s a very good framework for point and click adventure games. If this is your first game, you and your friend will still have quite a lot to learn, even with Adventure Creator.
Hi! This isn’t the first game I’ve made. I’ve done the 2D Unity course on Gamedev, and I’ve also spent the 2-3 months making a videogame solo, which I’ve finished. I would prefer to learn to code properly rather than spend money, but thanks for your advice!
In that case, design lots of small, independent modules. This will help promote good programming concepts such as loose coupling. For example, your pointer module shouldn’t contain code that directly manipulates the internal data of your inventory module, and vice versa.
Also, generally composition over inheritance.
And make your MVP first. That’s the smallest version that constitutes something that’s playable while omitting every other feature that you can get away with at first.
The thing is, I remember a Unity “official” tutorial series or Unite session teaching exactly this, a point and click adventure. But I can’t find it for some reason, I’m probably using the wrong keywords.
If you want to hunt for it: it was a short demo game, a little bit futuristic-esque, I know there was a marketplace, a bird, coin, buying coffee for a bouncer, I think, and getting into a building. Something like this. If I find the tutorial I’ll link here.
Unity took it down. But there’s a github link to the assets used in the Adventure Game Tutorial on Adventure Creator’s “Recreating Unity’s Adventure Game” page: Recreating Unity's adventure game | Adventure Creator