--insert witty commentary here--
I got the HUD working, just like i said. It did take quite a bit of trial-and-error but it was one of the easier things to get working. In order to implement it, i had to implement image blending using the SRC-OVER method (i had just been doing full-on replace before). So now i can put images with partial translucency on top of each other and it will look just fine.
I also implemented font loading and rendering; i have a single function utilizing stb_truetype which i pass a UTF-8 string, and it gives me a bitmap that i can draw. The font you see there is the Ubuntu font; i'm probably going to use it as my primary font because it's pretty and it covers a decent portion of Unicode's Basic Multilingual Plane. I'm looking into using CODE2000 as my fallback just because by far it has the largest coverage of Unicode out there, and i want to put this game into as many languages as possible. The only problem with that is ... i don't know what license that font is under, and i don't know how to contact the author in order to check. This is something i will have to look into and solve before the game's release.
I also changed how you move around (it's intuitive instead of along the x/y/z axes) and changed some event loop things to make them betterer.
Next up: Making a snazzy main menu!
.png)
No comments:
Post a Comment