#pragma once #include #include #include namespace godot { class GestionPlayer : public KinematicBody2D { // Godot structure private: GODOT_CLASS(GestionPlayer, KinematicBody2D) public: static void _register_methods(); void _init(); void _process(float delta); GestionPlayer(); ~GestionPlayer(); // Gameplay variables public: const int speed = 100; const int gravity = 90; const int power_jump = -2500; bool on_ground = false; bool right; bool left; bool jump; private: Vector2 velocity; Vector2 FLOOR; // Gameplay methods public: void UpdateMotionFromInput(); private: }; }