Previous week I mentioned road implementation. I started with rendering and got stuck a bit while handling texture atlases (search for
GL_TEXTURE_2D_ARRAY if you’re interested, I even may write an article about it). Roads are half-done then. I moved to easier stuff and made menu state and settings (in code so far). UI renders textures now; it took me quite a lot of time since I missed there is a function for loading images and wrote everything by hand at first 🙂 Use G to turn off the grid. This week I pushed 21 commits (total 91).
- Main menu state
- Game settings framework
- Handling command-line options
- Rendering icons
- Toggling grid, new grid pattern
- Road rendering (WIP)
- Some minor fixes
Esc - pause state ~, 1-3 - change time speed Ctrl + 1-9 - set new buildings height Q, E - rotate view G - toggle grid N - toggle normals Left click and drag - place building Right click and drag - move view Mouse scroll - zoom
--fullscreen - run in fullscreen mode --width=XXX - set inital window width --height=XXX - set inital window height
I will continue with roads rendering, maybe placing them if time allows. I want to make roads of different size, so there will be some hittesting work to do. I have textures to finish from this week.