Last active
March 19, 2018 17:12
-
-
Save danielytics/17f6bad3d711f293b9ea436c381c0479 to your computer and use it in GitHub Desktop.
Code snippets for "Using C++ and GDNative in Godot 3" tutorial, Part 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <core/Godot.hpp> | |
#include <KinematicBody2D.hpp> | |
using namespace godot; | |
class Player : public GodotScript<KinematicBody2D> | |
{ | |
public: | |
GODOT_SUBCLASS(Player, KinematicBody2D) | |
public: | |
Player(); | |
~Player(); | |
void _init(); | |
void _physics_process(const float delta); | |
static void _register_methods(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment