mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
Appel de setup scene + mise de Gestion Collison comme ptr
This commit is contained in:
parent
b5728a5076
commit
5f157245db
@ -16,6 +16,7 @@ GestionJeu::GestionJeu()
|
||||
gTerrain = GestionTerrain::_new();
|
||||
|
||||
gMobs = new GestionMobs();
|
||||
gCollision = new GestionCollision(gMobs, gPlayer, gTerrain);
|
||||
}
|
||||
|
||||
GestionJeu::~GestionJeu()
|
||||
@ -62,7 +63,7 @@ void GestionJeu::create_scene()
|
||||
void GestionJeu::setup_scene()
|
||||
{
|
||||
gPlayer->setPosition(15, 150);
|
||||
gTerrain->AjoutSolSolide(1, 1, 10, 300);
|
||||
gTerrain->GenerationCarte();
|
||||
}
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@ public:
|
||||
GestionPlayer* gPlayer;
|
||||
GestionMobs* gMobs;
|
||||
GestionTerrain* gTerrain;
|
||||
GestionCollision gCollision;
|
||||
GestionCollision* gCollision;
|
||||
GestionItem gItem;
|
||||
GestionIdentifiant gId;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user