No Game Engine Game Dev: Word Sleuth 063: Putting letter blocks on the Bookshelf

3 months ago
4

Streamed on 2024-10-09 (https://www.twitch.tv/thediscouragerofhesitancy)

Game Engines are for sissies!

Today I started putting the letter blocks on the bookshelf. Before that could happen the TexQuadBatch needed a small update. Up until now it was a static number of quads. However, as the letters are added and removed from a word, the number of tiles needs to change. This is similar to a number of other areas where we can change the size of our vertex/index counts, so the concept wasn't too difficult. There is definitely room for some generalization that will be addressed between games.

With the new TexQuadBatch it was time to create an object to contain the guess which I creatively called "Guess". It bundles together the Text and TexQuadBatch that are needed and takes care of a lot of the layout. Eventually I got the tiles lined up nicely on the Bookshelf. However, near the end of the stream a bug was revealed that I didn't have time to fix. It has something to do with setting the text of the Guess. That's where we'll have to pick up tomorrow.

Loading comments...