tried to rename some stuff

This commit is contained in:
2023-03-12 18:46:42 +01:00
parent 0bf9e55190
commit aa816fc5f8
6 changed files with 24 additions and 24 deletions

24
src/main.cpp Normal file
View File

@@ -0,0 +1,24 @@
#include "main.h"
#include <godot_cpp/core/class_db.hpp>
using namespace godot;
void DiscordRPC::_bind_methods() {
}
DiscordRPC::DiscordRPC() {
// initialize any variables here
time_passed = 0.0;
}
DiscordRPC::~DiscordRPC() {
// add your cleanup here
}
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);
}