diff --git a/src/gdexample.cpp b/src/gdexample.cpp deleted file mode 100644 index 2f6042e..0000000 --- a/src/gdexample.cpp +++ /dev/null @@ -1,28 +0,0 @@ - -#include "gdexample.h" -#include - -using namespace godot; - -void GDExample::_bind_methods() { - // ClassDB::bind_method(D_METHOD("_process", "delta"), &GDExample::_process); -} - -GDExample::GDExample() -{ - time_passed = 0.0; - -} - -GDExample::~GDExample() {} - -void GDExample::_process(float delta) -{ - time_passed += delta; - - auto new_position = Vector2( - 10.0 + (10.0 * sin(time_passed * 2.0)), - 10.0 + (10.0 * cos(time_passed * 1.5))); - - set_position(new_position); -} \ No newline at end of file diff --git a/src/gdexample.h b/src/gdexample.h deleted file mode 100644 index 63d3c50..0000000 --- a/src/gdexample.h +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef GDEXAMPLE_H -#define GDEXAMPLE_H - -#include - -namespace godot -{ - class GDExample : public Sprite2D - { - GDCLASS(GDExample, Sprite2D) - private: - double time_passed; - - protected: - static void _bind_methods(); - - public: - GDExample(); - ~GDExample(); - - void _process(float delta); - }; -} -#endif \ No newline at end of file