This commit is contained in:
Amaury
2020-03-31 08:17:14 +02:00
parent 15bfb3f6a9
commit 735839c506
8 changed files with 231 additions and 116 deletions

View File

@ -4,16 +4,15 @@
#include <Godot.hpp>
#include <KinematicBody2D.hpp>
class Player :
public Mobs
class Player
{
// Godot structure
private:
GODOT_CLASS(Player, KinematicBody2D)
public:
void static _register_methods();
void _process(float delta);
const int speed = 100;
const int gravity = 90;
const int power_jump = -2500;
godot::Vector2 velocity;
public:
Player();