Making a 2D-grid game using arrays within a week time, together with a classmate.
This was the first time working together with somebody while using the priciples of "Pair Programming".
Not only had I never used 2D-arrays before, but also hadn't made a single real game yet.
We had to quickly choose a game that both of us were comfortable with.
After some ideas, this seemed like the best option.
The game is quick, fun and might be doable within the time limit.
I vividly remember this game as one of the first mobile games I've ever played.
The gameplay is really simple: you have to click in a circle and keep dragging the mouse around to create a path to the circle of the corresponding color.
Clicking in the circle again will reset the path of that color.
You have to use every space on the grid to complete the puzzle.
When the game starts, after the player selected a level, a grid will be made with all the different dots in place. These places are hardcoded.
When the player clicks on a dot, we check if the mouse is moved while the left mouse button still pressed down.
If they moved to an adjacent space and it is empty; we fill it with a stroke.
If that space is a dot, we check if the colors are matching.
There is an array that tracks the value of each cell. When a cell has either a stroke or a dot, the value is 1; otherwise the value will be 0.
There is another array that has the size of the amount of colors which contains booleans.
When the dots are connected the value of that color is changed to true.
If all the values are 1 and all dots are connected, the level will be deemed completed.
A countdown will start and the player will be sent back to the level select screen where a green checkmark will appear on the level they just completed.
The code is made using a framework that we got from school, which uses SDL and is mostly written in C++.
You can check the code on GitHub here.
So for the first game I've ever made, this ain't too bad.
It was a lot of fun working together with a classmate and suprisingly really helpful.
We didn't really have any problems at all while making this game.
The total worktime was around 4 hours.
Big thanks to my classmate Hanne Soubry, she was a great partner during this project.
You can play the game yourself by downloading it with the download button below.
There are 25 different levels included, so feel free to play all of them!
Keep in mind, do not touch anything and just run the .exe titled "Flow", deleting anything or moving something might break the game.