diff --git a/project/addons/discord-rpc-gd/bin/libgd-discordrpc.linux.template_debug.x86_64.so b/project/addons/discord-rpc-gd/bin/libgd-discordrpc.linux.template_debug.x86_64.so index 3872d93..3b1c970 100755 Binary files a/project/addons/discord-rpc-gd/bin/libgd-discordrpc.linux.template_debug.x86_64.so and b/project/addons/discord-rpc-gd/bin/libgd-discordrpc.linux.template_debug.x86_64.so differ diff --git a/src/main.cpp b/src/main.cpp index f1d277e..efc4457 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,6 @@ #include "main.h" #include +#include using namespace godot; @@ -15,10 +16,10 @@ DiscordRPC::~DiscordRPC() { // add your cleanup here } +void DiscordRPC::_ready() { + UtilityFunctions::print("Hello mom"); +} + void DiscordRPC::_process(float delta) { - time_passed += delta; - - Vector2 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/main.h b/src/main.h index f38fba4..98eeecb 100644 --- a/src/main.h +++ b/src/main.h @@ -1,12 +1,13 @@ #ifndef DISCORDRPC_H #define DISCORDRPC_H -#include + +#include namespace godot { -class DiscordRPC : public Sprite2D { - GDCLASS(DiscordRPC, Sprite2D) +class DiscordRPC : public Node { + GDCLASS(DiscordRPC, Node) private: float time_passed; @@ -18,9 +19,10 @@ public: DiscordRPC(); ~DiscordRPC(); + void _ready(); void _process(float delta); }; - } + #endif \ No newline at end of file