MiniPlatformGame/addons/Gamepad/Gamepad.gd
Martin Dimitrov 8689a4732a Initial commit
In this commit I add a human character, a traveler that can move around
a tiny world made of a single screen so far. :)

Materials used so far:
 * 'HeartBeast' video lesons: https://goo.gl/3DtqPn
 * The very informative and rich documentation of Godot itself!

For the Gamepad I used wonderful addon by fiaful:
https://github.com/fiaful/Gamepad

The beautiful arts are from "Open Pixel Project":
https://openpixelproject.itch.io
2018-10-26 16:20:12 +03:00

17 lines
793 B
GDScript

tool
extends EditorPlugin
func _enter_tree():
# 120 - 80 - 70 (colora)
add_custom_type("GamepadContainer", "Control", preload("GamepadContainer.gd"), preload("icons/container.png"))
add_custom_type("GamepadArea", "Control", preload("GamepadArea.gd"), preload("icons/area.png"))
add_custom_type("GamepadStick", "Control", preload("GamepadStick.gd"), preload("icons/stick.png"))
add_custom_type("GamepadPaddle", "Control", preload("GamepadPaddle.gd"), preload("icons/paddle.png"))
add_custom_type("GamepadButton", "Control", preload("GamepadButton.gd"), preload("icons/button.png"))
func _exit_tree():
remove_custom_type("GamepadContainer")
remove_custom_type("GamepadArea")
remove_custom_type("GamepadStick")
remove_custom_type("GamepadPaddle")
remove_custom_type("GamepadButton")