“SameGame” Mini-game Tutorial For Ren’py Games

April 30, 2022

You may have seen popular visual novel games here and there that has mini-games in them such as match-3 and wondered if you could make something similar. If you have, then you’ve come to the right place!

In this tutorial, I’ll show how you can make a mini-game called “SameGame” which is very similar to a match-3 game. The difference here is that you simply click on a group of matching icons/objects that are connected and that group will be removed. Any icons above then falls down to fill the gap.

Some variants of the game will have the top of the grid spawn new icons when a gap has formed, others will wait until there’s no more possible matches and then regenerate a new grid of icons. We’ll be implementing the latter in this tutorial.

To watch the tutorial series, visit the tutorial playlist on my channel: SameGame Mini-game Tutorial.

Screenshot of the finished game we’ll make with the tutorial.

The game is time-based, and the goal is to get as many points as you can by combining as many matches you can before the time runs out.

We’ll also implement a hint button that the player can press to get a hint to where a set of matches can be found on the grid. Clicking this button will make the matching groups of icons scale up and back down so you can see them clearly.

Hint button functionality. Here you can see the blue berries to the left being highlighted and enlarged.

I want to mention we’ll be using quite a lot of Python code in this tutorial. It is recommended that you have at least some basic knowledge in Python programming to follow along, however, you may still find it educational and interesting to watch even if you don’t. I do try my best to explain many things we’re coding so that you can understand better what’s happening.

Watch the tutorial series on my channel: SameGame Mini-game Tutorial.

Leave me a comment below and let me know what you think of the tutorial series! Commenting and giving feedback is always greatly appreciated and helps a lot.

    Leave a Reply