mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
Update
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user