Changeset 11894
- Timestamp:
- Apr 20, 2018, 10:18:23 AM (7 years ago)
- Location:
- code/branches/3DPacman_FS18
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/data/levels/3DPacman.oxw
r11862 r11894 31 31 32 32 33 <PacmanGhost position=" 0,20,245">33 <PacmanGhost position="215,10,220" resetposition="215,10,220"> 34 34 <attached> 35 35 <Model position="0,0,0" mesh="PacmanGhostRed.mesh" scale="5" /> … … 37 37 </PacmanGhost> 38 38 39 <PacmanGhost position="215,10,220" resetposition="215,10,220"> 40 <attached> 41 <Model position="0,0,0" mesh="PacmanGhostBlue.mesh" scale="5" /> 42 </attached> 43 </PacmanGhost> 44 45 <PacmanGhost position="215,10,220" resetposition="215,10,220"> 46 <attached> 47 <Model position="0,0,0" mesh="PacmanGhostOrange.mesh" scale="5" /> 48 </attached> 49 </PacmanGhost> 50 51 <PacmanGhost position="215,10,220" resetposition="215,10,220"> 52 <attached> 53 <Model position="0,0,0" mesh="PacmanGhostPink.mesh" scale="5" /> 54 </attached> 55 </PacmanGhost> 56 57 <PacmanPointSphere position="0,10,0" resetposition="0,10,0"> 58 <attached> 59 <Model position="0,0,0" mesh="PacmanGhostRed.mesh" scale="5" /> 60 </attached> 61 </PacmanPointSphere> 39 62 40 63 <StaticEntity position="0,0,25" direction="0,0,0" collisionType=static mass=100000 friction=0.01 > … … 43 66 </attached> 44 67 <collisionShapes> 45 <BoxCollisionShape position="0,0,0" halfExtents="250,1,250" />46 <BoxCollisionShape position="0,200000,0" halfExtents="250,1,250" />47 68 48 69 <BoxCollisionShape position="250,10,0" halfExtents="1,15,250" /> … … 63 84 </StaticEntity> 64 85 65 66 <StaticEntity position="-10,10,-10" direction="0,0,0" collisionType=static mass=100000 friction=0.01 >67 <attached>68 <Model position="0,0,0" mesh="PacmanGhostBlue.mesh" scale="5" />69 </attached>70 <collisionShapes>71 <BoxCollisionShape position="0,0,0" halfExtents="0.5,0.5,0.5" />72 </collisionShapes>73 </StaticEntity>74 75 <StaticEntity position="10,10,-10" direction="0,0,0" collisionType=static mass=100000 friction=0.01 >76 <attached>77 <Model position="0,0,0" mesh="PacmanGhostOrange.mesh" scale="5" />78 </attached>79 <collisionShapes>80 <BoxCollisionShape position="0,0,0" halfExtents="0.5,0.5,0.5" />81 </collisionShapes>82 </StaticEntity>83 84 <StaticEntity position="-10,10,10" direction="0,0,0" collisionType=static mass=100000 friction=0.01 >85 <attached>86 <Model position="0,0,0" mesh="PacmanGhostPink.mesh" scale="5" />87 </attached>88 <collisionShapes>89 <BoxCollisionShape position="0,0,0" halfExtents="0.5,0.5,0.5" />90 </collisionShapes>91 </StaticEntity>92 93 86 <PortalEndPoint position="-240,10,0" id="1" distance="40" target="Pawn"/> 94 87 <PortalEndPoint position="240,10,0" id="2" distance="40" target="Pawn"/> -
code/branches/3DPacman_FS18/src/modules/Pacman/PacmanGelb.cc
r11859 r11894 46 46 void PacmanGelb::tick(float dt) 47 47 { 48 SUPER(PacmanGelb, tick, dt); 48 49 //bring player back to ground 49 50 actuelposition = this->getPosition(); 50 actuelposition.y = 0;51 actuelposition.y = 10; 51 52 this->setPosition(actuelposition); 52 53 // Camera54 Camera* camera = this->getCamera();55 if (camera != nullptr)56 {57 actuelorient = camera->getOrientation();58 actuelorient.y = 0;59 camera->setOrientation(actuelorient);60 }61 62 SUPER(PacmanGelb, tick, dt);63 53 } 64 54 } -
code/branches/3DPacman_FS18/src/modules/Pacman/PacmanGelb.h
r11862 r11894 51 51 virtual void tick(float dt); 52 52 53 //no rotation 54 virtual void rotateYaw(const Vector2& value) override{}; 55 virtual void rotateYaw(const Vector2& value) override{}; 56 53 57 private: 54 58 Vector3 actuelposition;
Note: See TracChangeset
for help on using the changeset viewer.