mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
Modif mineur pour debug gestion jeu
This commit is contained in:
parent
06c34c881e
commit
0ea30f75ee
@ -8,6 +8,8 @@
|
|||||||
#include <Texture.hpp>
|
#include <Texture.hpp>
|
||||||
#include <AnimatedSprite.hpp>
|
#include <AnimatedSprite.hpp>
|
||||||
|
|
||||||
|
#include "MobsCorpACorpIA.h"
|
||||||
|
|
||||||
using namespace godot;
|
using namespace godot;
|
||||||
|
|
||||||
GestionJeu::GestionJeu()
|
GestionJeu::GestionJeu()
|
||||||
@ -57,9 +59,10 @@ void GestionJeu::create_scene()
|
|||||||
add_child(gPlayer);
|
add_child(gPlayer);
|
||||||
add_child(gTerrain);
|
add_child(gTerrain);
|
||||||
gMobs->AjoutMobC2C(10, 20, 5, 0, 1, 25);
|
gMobs->AjoutMobC2C(10, 20, 5, 0, 1, 25);
|
||||||
for (MobsIA m : gMobs->mobs)
|
for (MobsIA* m : gMobs->mobs)
|
||||||
{
|
{
|
||||||
add_child(&m);
|
Godot::print("Add child mob");
|
||||||
|
add_child(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user