Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/federico-ciuffardi/gesturecontrolledcamera2d

A Camera2D node controlled through gestures. It's also an example of how to use the Godot Touch Input Manager.
https://github.com/federico-ciuffardi/gesturecontrolledcamera2d

camera2d gesture godot godot-touch-input-manager godot3

Last synced: 3 months ago
JSON representation

A Camera2D node controlled through gestures. It's also an example of how to use the Godot Touch Input Manager.

Awesome Lists containing this project

README

        

# GestureControlledCamera2D
A Camera2D node controlled through gestures. It's also an example of how to use the [Godot Touch Input Manager](https://github.com/Federico-Ciuffardi/Godot-Touch-Input-Manager).

## Demo
![Demo](https://media.giphy.com/media/Xzdynnlx4XAqndgVe0/giphy.gif)

## How to use
### 1 - Seting up [Godot Touch Input Manager](https://github.com/Federico-Ciuffardi/Godot-Touch-Input-Manager)
* Dowload the latest release from https://github.com/Federico-Ciuffardi/Godot-Touch-Input-Manager/releases
* Extract the downloaded *.zip* file somewhere in you project
* Locate the extracted `InputManager.gd`, and [Autoload](https://docs.godotengine.org/en/3.4/tutorials/scripting/singletons_autoload.html) it.

### 2 - Using GestureControlledCamera2D
* Dowload the latest release from https://github.com/Federico-Ciuffardi/GestureControlledCamera2D/releases
* Extract the downloaded *.zip* file somewhere in you project
* Add the extracted GestureControlledCamera2D node (GCC2D.tscn) to the scene and make sure to set `Current` to `On`
* Customize the [script variables](#script-variables) to your liking (optional)

Check out the [example](https://github.com/Federico-Ciuffardi/GestureControlledCamera2D/releases/download/v1.1.0/GestureControlledCamera2D-Example.zip)!

## Script variables

| Name | Description |
|------------------|-----------------------------------------------------|
| Max Zoom | The camera will not zoom in any further than this |
| Min Zoom | The browser will not zoom out any further than this |
| Zoom Gesture | The gesture that will control the camera zoom |
| Rotation gesture | The gesture that will control the camera rotation |
| Movement Gesture | The gesture that will control the camera movement |

## Versioning
Using [SemVer](http://semver.org/) for versioning. For the versions available, see the [releases](https://github.com/Federico-Ciuffardi/GestureControlledCamera2D/releases)

## Authors
* Federico Ciuffardi

Feel free to append yourself here if you've made contributions.

## Note
Thank you for checking out this repository, you can send all your questions and feedback to [email protected].

If you are up to contribute on some way please contact me :)