Skip to content

Instantly share code, notes, and snippets.

@danielytics
Last active March 19, 2018 17:12
Show Gist options
  • Save danielytics/17f6bad3d711f293b9ea436c381c0479 to your computer and use it in GitHub Desktop.
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
#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