Howdy,
Thinking of an idea I was happy with took a little but better late than never. The general idea is to use the mouse to drag a character around and go through a simple adventure game. In my mind it's kind of like a pop-up book which can be poked a bit. Below is a very rough example of it. Ideally I will have an editor done by the 31
st, but who knows.
While I was thinking of what to do I worked on stuff more universal stuff like text rendering, so I'll dive into that a little. In the past whenever I've had to render text I just used one font atlas jpg, but it ends up looking really bad. I decided to use freetype and have gotten to a fairly good place with it (as far as I can tell :/ ). Initially I drew every word one letter at a time which caused me to repeat a lot of work every frame. When moving to a cached system I got a kind of fun visual bug because I used triangle fans to draw each letter. Once the bug was fixed, I decided to just cache all the points and draw with triangles instead of fans. I didn't really look to much into the trade offs (outside of the memory cost of saving two more points per letter), but thinking about that is for later when I've used too much memory
Whoops:
Fixed:
Currently I'm working on getting buttons working. I have a GUI from a different project I did, but it was kind of messy and in a different language so hopefully I'm cleaning it up a bit when porting it over. Right now I have buttons mostly in place. I'll thinking I'll need sliders and text inputs, so adding them is something to do. Once the GUI code is in place I can start the 'actual' thing so that's exciting.
Clicking the 'Hello' button prints the number of times it has been clicked:
If anyone has any questions feel free to ask and I'll try my best to answer without rambling too too much. I can also link my repo if anyone is interested, but it is a little too messy for me to do it voluntarily.