mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
mouvement mobs complété
This commit is contained in:
@ -20,6 +20,7 @@ MobsCorpACorpIA::MobsCorpACorpIA()
|
||||
void MobsCorpACorpIA::_register_methods()
|
||||
{
|
||||
Godot::print("register Mobs...");
|
||||
register_method("_physics_process", &MobsCorpACorpIA::_physics_process);
|
||||
register_method("_process", &MobsCorpACorpIA::_process);
|
||||
register_method("_init", &MobsCorpACorpIA::_init);
|
||||
register_method("_ready", &MobsCorpACorpIA::_ready);
|
||||
@ -27,9 +28,14 @@ void MobsCorpACorpIA::_register_methods()
|
||||
|
||||
}
|
||||
|
||||
void MobsCorpACorpIA::_physics_process(float delta)
|
||||
{
|
||||
mouvement();
|
||||
m.velocity = move_and_slide(m.velocity);
|
||||
}
|
||||
|
||||
void MobsCorpACorpIA::_process(float delta)
|
||||
{
|
||||
m.velocity = move_and_slide(m.velocity);
|
||||
}
|
||||
|
||||
void MobsCorpACorpIA::_init()
|
||||
|
Reference in New Issue
Block a user