Zoom to minimap
Today I implemented a simple system that activates a large icon on top of all ships when you are sufficiently zoomed out. This mean that once you zoom past a certain level, an overlay activates which lets you see where all the ships are and what faction they are in.
The first part of this is a script attached the Godot Camera2D object, shown below. This script uses a Tween node to smoothly zoom the camera such that the rate of zoom accelerates as you zoom further out.
Once you are zoomed out to "minimap_zoom" level, a signal is sent to the players ship that tells it to activate the minimap. The script on the players ship then uses Godot's Group feature to turns on the minimap icons for all of the ships on the server.
I may check this camera object into the Godot asset library if there is any interest.
Get Dark Nebulae Online
Dark Nebulae Online
A multiplayer top-down strategic space combat game.
Status | In development |
Publisher | |
Author | alshady |
Genre | Strategy |
Tags | 2D, Godot, Multiplayer, Real time strategy, Space, Space Sim, Top down shooter |
Languages | English |
More posts
- Godot texture interaction tipsAug 27, 2018
- Why Godot game engine is awesome - Part 1Jul 22, 2018
- Dark Nebulae 2.3.0 Alpha ReleaseJun 03, 2018
- Community forum, new ships, new audio systemApr 20, 2018
- Dark Nebulae Online Alpha Update and TrailerApr 15, 2018
- Massive improvements to networking and UIApr 01, 2018
- Dark Nebulae 1.3 - UI ExplorationMar 18, 2018
- Dark Nebulae 1.2 UpdateMar 10, 2018
- Dark Nebulae Alpha Has Begun!Mar 04, 2018
Leave a comment
Log in with itch.io to leave a comment.