C7-Game / Prototype

An early-stage, open-source 4X strategy game
https://c7-game.github.io/
MIT License
33 stars 9 forks source link

#172 - City Scene #384

Closed QuintillusCFC closed 1 year ago

QuintillusCFC commented 1 year ago

Closes #172

These changes break our city-drawing code into its own scene, and also break out the city label into its own scene.

Along the way I added a couple small optimizations, such as only redrawing the label background (which involves a lot of operations) if the label background has changed.

I also added in making it so only the capital has the capital star, and logging of turn times.

WildWeazel commented 1 year ago

can this go in now or wait (ha) for Godot 4?

QuintillusCFC commented 1 year ago

It can go in now, and may require some changes for Godot 4, particularly in the files in the C7/Map folder which are Godot Node2Ds.

I'll go ahead and merge it since Paul has approved it, with that note.