[Orxonox-commit 7258] r11873 - code/branches/3DPacman_FS18/src/modules/Pacman
dreherm at orxonox.net
dreherm at orxonox.net
Tue Apr 17 00:07:23 CEST 2018
Author: dreherm
Date: 2018-04-17 00:07:23 +0200 (Tue, 17 Apr 2018)
New Revision: 11873
Modified:
code/branches/3DPacman_FS18/src/modules/Pacman/Pacman.cc
code/branches/3DPacman_FS18/src/modules/Pacman/Pacman.h
Log:
Tes Game 9
Modified: code/branches/3DPacman_FS18/src/modules/Pacman/Pacman.cc
===================================================================
--- code/branches/3DPacman_FS18/src/modules/Pacman/Pacman.cc 2018-04-16 22:04:43 UTC (rev 11872)
+++ code/branches/3DPacman_FS18/src/modules/Pacman/Pacman.cc 2018-04-16 22:07:23 UTC (rev 11873)
@@ -46,7 +46,6 @@
lives = 3;
point = 0;
level = 1;
- Vector3 startposplayer = Vector3(0,10,245);
}
@@ -109,10 +108,10 @@
void Pacman::posreset(){
int i = 0;
for(PacmanGhost* nextghost : ObjectList<PacmanGhost>()){
- nextghost.resetGhost();
+ nextghost->resetGhost();
i++;
}
- player.setPosition(startposplayer);
+ player->setPosition(startposplayer);
}
void Pacman::takePoint(PacmanPointSphere* taken){
Modified: code/branches/3DPacman_FS18/src/modules/Pacman/Pacman.h
===================================================================
--- code/branches/3DPacman_FS18/src/modules/Pacman/Pacman.h 2018-04-16 22:04:43 UTC (rev 11872)
+++ code/branches/3DPacman_FS18/src/modules/Pacman/Pacman.h 2018-04-16 22:07:23 UTC (rev 11873)
@@ -96,6 +96,7 @@
PacmanGhost[]
Vector3 currentPosition;
bool bcolli = false;
+ Vector3 startposplayer = Vector3(0,10,245);
Timer endGameTimer;
More information about the Orxonox-commit
mailing list