Changeset 11954
- Timestamp:
- May 8, 2018, 1:20:49 PM (7 years ago)
- Location:
- code/branches/3DPacman_FS18
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/New Material/meshes/OgreXMLConverter.log
r11896 r11954 1 11: 29:05: Creating resource group General2 11: 29:05: Creating resource group Internal3 11: 29:05: Creating resource group Autodetect4 11: 29:05: Registering ResourceManager for type Mesh5 11: 29:05: Registering ResourceManager for type Material6 11: 29:05: Registering ResourceManager for type Skeleton7 11: 29:08: XMLMeshSerializer reading mesh data from PacmanMap.mesh.xml...8 11: 29:11: Reading geometry...9 11: 29:15: Geometry done...10 11: 29:15: Reading submeshes...11 11: 29:15: Submeshes done.12 11: 29:15: Reading mesh names...13 11: 29:15: Mesh names done.14 11: 29:15: XMLMeshSerializer import successful.15 11: 29:15: Reorganising vertex buffers to automatic layout..16 11: 29:16: MeshSerializer writing mesh data to stream ...17 11: 29:16: File header written.18 11: 29:16: Writing mesh data...19 11: 29:16: Writing submesh...20 11: 29:16: Exporting submesh texture aliases...21 11: 29:16: Submesh texture aliases exported.22 11: 29:16: Submesh exported.23 11: 29:16: Exporting bounds information....24 11: 29:16: Bounds information exported.25 11: 29:16: Exporting submesh name table...26 11: 29:16: Submesh name table exported.27 11: 29:16: Exporting edge lists...28 11: 29:16: Edge lists exported29 11: 29:16: Mesh data exported.30 11: 29:16: MeshSerializer export successful.31 11: 29:16: Unregistering ResourceManager for type Skeleton32 11: 29:16: Unregistering ResourceManager for type Material33 11: 29:16: Unregistering ResourceManager for type Mesh1 11:54:27: Creating resource group General 2 11:54:27: Creating resource group Internal 3 11:54:27: Creating resource group Autodetect 4 11:54:27: Registering ResourceManager for type Mesh 5 11:54:27: Registering ResourceManager for type Material 6 11:54:27: Registering ResourceManager for type Skeleton 7 11:54:27: XMLMeshSerializer reading mesh data from PacmanPointAfraid.mesh.xml... 8 11:54:27: Reading geometry... 9 11:54:27: Geometry done... 10 11:54:27: Reading submeshes... 11 11:54:27: Submeshes done. 12 11:54:27: Reading mesh names... 13 11:54:27: Mesh names done. 14 11:54:27: XMLMeshSerializer import successful. 15 11:54:27: Reorganising vertex buffers to automatic layout.. 16 11:54:27: MeshSerializer writing mesh data to stream ... 17 11:54:27: File header written. 18 11:54:27: Writing mesh data... 19 11:54:27: Writing submesh... 20 11:54:27: Exporting submesh texture aliases... 21 11:54:27: Submesh texture aliases exported. 22 11:54:27: Submesh exported. 23 11:54:27: Exporting bounds information.... 24 11:54:27: Bounds information exported. 25 11:54:27: Exporting submesh name table... 26 11:54:27: Submesh name table exported. 27 11:54:27: Exporting edge lists... 28 11:54:27: Edge lists exported 29 11:54:27: Mesh data exported. 30 11:54:27: MeshSerializer export successful. 31 11:54:27: Unregistering ResourceManager for type Skeleton 32 11:54:27: Unregistering ResourceManager for type Material 33 11:54:27: Unregistering ResourceManager for type Mesh -
code/branches/3DPacman_FS18/data/levels/3DPacman.oxw
r11949 r11954 62 62 <PacmanGhost position="0,-20,0" > 63 63 <attached> 64 <Model position="0,0,0" mesh="Pacman GhostAfraid.mesh" scale="5" />64 <Model position="0,0,0" mesh="PacmanAfraidGhost.mesh" scale="5" /> 65 65 </attached> 66 66 </PacmanGhost> … … 68 68 <PacmanGhost position="0,-20,0" > 69 69 <attached> 70 <Model position="0,0,0" mesh="Pacman GhostAfraid.mesh" scale="5" />70 <Model position="0,0,0" mesh="PacmanAfraidGhost.mesh" scale="5" /> 71 71 </attached> 72 72 </PacmanGhost> … … 74 74 <PacmanGhost position="0,-20,0" > 75 75 <attached> 76 <Model position="0,0,0" mesh="Pacman GhostAfraid.mesh" scale="5" />76 <Model position="0,0,0" mesh="PacmanAfraidGhost.mesh" scale="5" /> 77 77 </attached> 78 78 </PacmanGhost> … … 80 80 <PacmanGhost position="0,-20,0" > 81 81 <attached> 82 <Model position="0,0,0" mesh="Pacman GhostAfraid.mesh" scale="5" />82 <Model position="0,0,0" mesh="PacmanAfraidGhost.mesh" scale="5" /> 83 83 </attached> 84 84 </PacmanGhost> … … 109 109 <PacmanPointAfraid position="215,10,195"> 110 110 <attached> 111 <Model position="0,0,0" mesh="PacmanPointAfraid.mesh" scale=" 5" />111 <Model position="0,0,0" mesh="PacmanPointAfraid.mesh" scale="10" /> 112 112 </attached> 113 113 </PacmanPointAfraid> -
code/branches/3DPacman_FS18/src/modules/pacman/Pacman.cc
r11953 r11954 66 66 SUPER(Pacman, tick, dt); 67 67 68 if(!timer){ 68 //orxout() << timer << endl; 69 //orxout() << afraid << endl; 70 71 72 if(afraid){ 69 73 timer = timer - dt; 70 74 if(timer<=0){ 71 afraid = false; 72 this->setNormal(); 75 setNormal(); 73 76 } 74 77 } … … 105 108 106 109 for(PacmanPointAfraid* next : ObjectList<PacmanPointAfraid>()){ 107 if( collis(next->getPosition(),currentPosition)){110 if(next->taken(currentPosition)){ 108 111 setAfraid(); 109 112 } … … 155 158 156 159 //Change normal Ghosts with afraid ones 157 if(afraid){158 160 ghosts[4]->changewith(ghosts[0]); 159 161 ghosts[5]->changewith(ghosts[1]); 160 162 ghosts[6]->changewith(ghosts[2]); 161 163 ghosts[7]->changewith(ghosts[3]); 162 }163 164 164 165 afraid = false; … … 198 199 { 199 200 Deathmatch::start(); 201 202 int i = 0; 203 for(PacmanGhost* nextghost : ObjectList<PacmanGhost>()){ 204 if(3<i){ 205 nextghost->setPosition(0,-20,0); 206 nextghost->dontmove = true; 207 }; 208 209 i++; 210 } 200 211 } 201 212 -
code/branches/3DPacman_FS18/src/modules/pacman/PacmanPointAfraid.cc
r11939 r11954 74 74 bool PacmanPointAfraid::taken(Vector3 playerpos) 75 75 { 76 if((abs(this->resetposition.x - playerpos.x)<0.1) && (abs(this->resetposition.z - playerpos.z)<0.1)){ 76 Vector3 resetposition = this->getPosition(); 77 78 if((abs(resetposition.x - playerpos.x)<1) && (abs(resetposition.z - playerpos.z)<1)){ 77 79 this->setPosition(Vector3(resetposition.x, -50, resetposition.z)); 78 80 return true;
Note: See TracChangeset
for help on using the changeset viewer.