Match And Merge
- 8 Devlogs
- 11 Total hours
Match And Merge is a game made for the raylib 6.x gamejam. The game helps you test your colour knowledge by making you match a square's colour with the background.
Match And Merge is a game made for the raylib 6.x gamejam. The game helps you test your colour knowledge by making you match a square's colour with the background.
Devlog # 8
I finished the game yesterday and worked a little on the readme and itch.io page because i just recently found out that a readme isnt supposed to only have the most important things but also a kind of summary of the project, like what it does and stuff if im not mistaken. Well, yeah, so i worked on that yesterday and now im done :)
here’s a pic of the best readme i’ve written so far:
Devlog # 7
I added some new colours to the colours array so now there are total 10 colours. I also made a simple start page and added different texts to the score page which you get depending on your score.
perfect score: “Perfect Score, huh?”
“Looks like someone knows their colours”
over 75%: “Not bad”
over 50%: “I mean, you got more than 50%”
over 0%: “At least you know something”
0%: “How?”
I also added a batch file to the folder to be able to compile the game to wasm (web assembly) because thats one of the requirements of the gamejam (well i actually added it like 2 days ago i think but forgot to document). I had to install “the emscripten toolchain” then i copied the compile commands from a github page and then tried to set the paths for the compiled raylib files but didnt really get it so I had to ask AI for help there, and it turned out that i almost had it :)
Devlog # 6
Made a progress bar and added a skip button so the player can skip a colour if they are unable to get it and merge it. I also added some new colours and an end screen where you can see your score out of the total. and btw you get 0 points for the colour you skip.
As of now im currently working on a start page.
Devlog # 5
I made a button class so you can go to the next one because at first it was sending you to the next colour instantly, so i had to fix some sort of trigger.
Right now, I am also working on a score system where i have 3 different “merges” you could say:
Perfect Merge - you get full points (10)
Partial Merge - you get half the points (5)
Minimal Merge - you get a quarter of the points (2.5)
So yeah, that was pretty much it. And if youre interested and want to know more you can always check out my github (to look at the code)
Devlog # 4
As you can see I have fixed the code so the square gets drawn with the colours inputted by the user
The next step will be to fix the win conditions so the player can progress
Devlog # 3
i made a class for the textboxes.
The textboxes are selectable and as you can see in the picture the selectod one gets displayed in light grey rather than white.
I also added a button so the player can choose whether if they want to type the rgb value with decimal numbers (base 10) or hexadecimals (base 16).
Devlog # 2
Hi again!
It took me a little time but after some googling and a youtube video I finally fixed a function which converts hexadecimal numbers to decimal numbers.
I also noticed that i didn’t write much about how this colour guessing game will work in the last devlog so i’ll do that here:
This will be a game in which the player will input rgb values and try to get the exact same colour as the background or similar.
Now you might be wondering why this?
The reason to why i chose colours was because of the theme of this gamejam, which is hex + merge. It took me an hour or 2 before colours crossed my mind because they can be written with hexadecimals as well, at first i thought about something with hexagons but i didn’t think i would be able to finish something like that so i started to work on this instead. In this game you will try to match your colour with the background by typing the rgb’s with hexadecimals or normal numbers (for accessibility) and then once you get it write the square merges with the background and you get a new colour.
And a shoutout to the guy who wrote on discord that the simplest interpretation of hex is probably hexadecimals. If not for him i wouldve most likely worked on something bigger which i wouldnt have had time to finish
Below is a picture of the function which converts hexadecimal numbers:
Devlog # 1
Hi!
In this project i will be making a simple colour guessing game with raylib in c++ for the raylib 6.x gamejam.
Why?
because i just started working with c++ and raylib, so i thought making a game in 5ish days might help me learn
So far i only have a screen with a square on it