T
Publisher
thomas737
2D Strategy Camera
2D
Camera 2D Strategy Controls Zoom Input Smooth Limits
This custom Camera2D node is a simple and intuitive implementation of a strategy game camera with togglable mouse and keyboard controls. Translation camera limits and smooth exponential zooming at the cursor are both implemented. Note: Check the README.md on the GitHub repository for details about how to map your own keyboard inputs.
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
StrategyCamera
A simple and intuitive 2d strategy game camera implementation.
Features
- Togglable mouse & keyboard controls
- Smooth exponential zooming at cursor
- Customisable keyboard controls
- Translation screen limits (zoom limits are not implemented)
Notes
- The camera automatically scales its limits according to zoom and screen resolution. This may not be appropriate for some applications
- The following keyboard controls must be manually bound by the developer
- "cam_left", "cam_right", "cam_up", "cam_down"
- "cam_zoom_out", "cam_zoom_in"
- The following mouse controls must be manually bound by the developer
- "cam_drag"