mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
21 lines
250 B
C++
21 lines
250 B
C++
#pragma once
|
|
#include <KinematicBody2D.hpp>
|
|
|
|
class Entite :
|
|
public godot::KinematicBody2D
|
|
{
|
|
public:
|
|
int id;
|
|
|
|
int speed;
|
|
int gravity;
|
|
|
|
godot::Vector2 motion;
|
|
|
|
public:
|
|
void _init();
|
|
void _process(float delta);
|
|
void UpdateMotionFromInput();
|
|
};
|
|
|