You are browsing as a guest. Sign up (or log in) to start making projects!

3h 8m 21s logged

Day 2 - GUI and the first algorithm

Hey there! This is the second devlog of my project. I wanted to make it yesterday but I was busy, lol.

Yayyy GUI!

Anyway, I started implementing a reallyyy rough (I mean really rough) draft of the GUI of the software!
Of course, since I’m using the Raylib library, for the GUI I’m using the Raygui library! It was a bit hard to understand at first because of all the types of GUI available, but thanks to the tools offered by raysan5 (aka the creator of Raylib), I managed to find what I needed!

(Raysan5 is the real goat, y’all should definitely check him out and all of his work. Especially the raylib library if you want to code a game in the most spartan and raw way possible! Trust me, it’s a real piece of art this library.)

Of course, once I’m satisfied of how the code is and after implementing all the features I had in mind, I’ll improve the GUI.
That’s mainly because I want to focus first on cleaning the code, optimize it, add the algoritms I want and every feature that I had in mind. Only by then I’ll work on the GUI again, as of now, the positions of the controls on screen are random cause I still need to test them after all!

First algorithm!

After talking about the GUI, let’s talk about algoritms!The first one I implemented it’s the bubble sort! Quite easy to implement and it works well! Next time, I’ll try to add something else but I doubt cause I still need to do some things first, then I’ll work on adding as many algoritms as possible.

I’m going crazy.

Of course, when the software starts sorting, I’d like to add some kind of delay to see the rectangles swap places… I though it was easy.. Well.. It isn’t. I spent 1h 30mins just to try and this damn delay and it still doesn’t work. It’s a pain. I hate this. But I should be close to get it right.. Or at least that’s what I hope..
And of course, I shall use no AI to help me in this task and suffer through it. I need to learn on how to overtake this difficulties, so NO Ai and just raw searching on Google, checking out other people’s codes to see if I can apply something to my case, check examples by raylib and the docs, reddit’s posts and anything else that is available, except AI.

Anyway, thanks for everything and see you in another devlog!

(Yes I know, the screenshot is still useless but once I add this damn delay I’ll try and a quick timelapse of the software working)

0
2

Comments 0

No comments yet. Be the first!