unknown-horizons / godot-port

Unknown Horizons Godot Engine Port
https://www.unknown-horizons.org
GNU General Public License v2.0
663 stars 83 forks source link

Minimap #103

Closed Soroosh-Sharif closed 1 year ago

Soroosh-Sharif commented 1 year ago

Hello, I wanted to share some work I did on the minimap before continuing. Here's an overview of the minimap:

-- Minimap ------- TerrainLayer ------- WarehouseLayer ------- ShipLayer

Minimap is responsible for converting any point on the world to a point on the map. It also initialize layers. Each layer is responsible for drawing a particular data. Layers work independent from each other.

Visually it's almost done. Next step will be implementing actions and adding more layers.

By the way, I placed all minimap related code under:

res://Assets/Player/Minimap/

This place made more sense to me but let me know it you want it some place else.