- Edited
Update [0.031023]
Summary
Hi all, I've been spending some time on UI work, logic adjustments, and a bit of modeling lately. While there's still much to learn and refine, the project is coming along. The codebase is getting quite extensive, making it a bit more difficult to keep track of everything. I'm considering adding more comments for clarity, although I usually rely on well-named methods, variables, and classes to keep things understandable.
What's New:
Building Hotkeys: Simplifying player interactions, you can now use hotkeys for selecting and building structures, eliminating the need for repeated button clicks.
New Building - Barracks: A humble addition to the game. The Barracks model follows a similar aesthetic to the Archery Range. It's designed to be efficient with a minimal vertex count and shares the same color palette texture as previous models.
Revamped Building Selection UI: The previous UI had sections for "Battle," "Resource," and "Economy," which felt cumbersome to navigate. The new UI layout places all these elements under one umbrella but categorizes them for easier navigation. Added a bit of smoothness to the transitions as well, thanks to Godot's Tweening capabilities.
Drag-and-Move Building:: A small but handy change—while dragging the map to explore, any "ghost" buildings you're holding won't be canceled. The building will only be placed once you stop moving the map.
Building Canceling: Added the ability to cancel "ghost" buildings using the "Escape" key, right-click, or "B" key to select a new building. A tiny feature that makes a big difference in gameplay fluidity.
Civilization Colors: All civilizations now share the same building models, but the building colors change depending on the chosen civilization. In the future, players will have the option to customize these colors. This change required a slight alteration in rendering, requiring two draw calls instead of one.
OtherChanges:
- Instant Placement: Now, buildings appear immediately on the selected tile.
- Build Rule: You must deselect a selected building to build another.
- File Format: Switched from .GLB to .OBJ for models.
- Resource Icon Positions: Slight improvements to resource icon placements on the screen.
- UI Hotkeys: Building hotkeys are now displayed in the UI.