Changeset 12003
- Timestamp:
- May 24, 2018, 4:22:49 PM (7 years ago)
- Location:
- code/branches/3DPacman_FS18
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/data/levels/templates/PacmanGelb.oxt
r11931 r12003 44 44 <attached> 45 45 <Model position="0,0,0" yaw=180 pitch=0 roll=0 scale=5 mesh="PacmanGelb.mesh" /> 46 <!--Model mesh="cube.mesh" mass=10 position="0,0,3" scale3D="10,4,8" />47 <Model mesh="cube.mesh" mass=10 position="12.6,-2,3" scale3D="2.8,2.8,11" />48 <Model mesh="cube.mesh" mass=10 position="-12.6,-2,3" scale3D="2.8,2.8,11" />49 <Model mesh="cube.mesh" mass=10 position="0,0,-12" scale3D="4,4,7" /-->50 46 </attached> 51 47 <collisionShapes> 52 <BoxCollisionShape position="0 ,0 , 0" halfExtents="1, 1,1" />48 <BoxCollisionShape position="0 ,0 , 0" halfExtents="1,50,1" /> 53 49 </collisionShapes> 54 50 55 <?lua56 include("../includes/weaponSettingsEscort.oxi")57 ?>58 51 </PacmanGelb> 59 52 </Template> … … 62 55 <PacmanGelb> 63 56 <camerapositions> 64 <CameraPosition position="0,7, 5" drag=true mouselook=true />57 <CameraPosition position="0,7, 10" drag=true mouselook=true /> 65 58 </camerapositions> 66 59 </PacmanGelb> … … 71 64 boostfactor = 1.0 72 65 73 speedfront = 6074 speedback = 2066 speedfront = 80 67 speedback = 40 75 68 speedleftright = 1 76 69 speedupdown = 1 77 70 78 defEngineSndNormal = "sounds/Engine_low.ogg" 79 defEngineSndBoost = "sounds/Engine_high.ogg" 80 81 accelerationfront = 500 71 accelerationfront = 100 82 72 accelerationbrake = 5 83 accelerationback = 50073 accelerationback = 100 84 74 accelerationleftright = 5 85 75 accelerationupdown = 5 86 76 > 87 <EffectContainer condition="idle">88 <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>89 />90 <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 12, -2, 14" colour="0.2, 0.5, 0.65, 1.0" width=150 length=15 lifetime=2 elements=1 trailmaterial="Trail/backlighttrail" turnontime=2 turnofftime=1 material="Flares/ThrusterFlare1" />91 <Backlight mainstate=activity active=false scale=0.33 name=bltest position="-12, -2, 14" colour="0.2, 0.5, 0.65, 1.0" width=15 length=15 lifetime=2 elements=1 trailmaterial="Trail/backlighttrail" turnontime=2 turnofftime=1 material="Flares/ThrusterFlare1" />92 </EffectContainer>93 <EffectContainer condition="not idle">94 <FadingBillboard mainstate=activity active=false scale=0.09 position="12, -2, 13" colour="0.2, 1.0, 0.65, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />95 <FadingBillboard mainstate=activity active=false scale=0.09 position="-12, -2, 13" colour="0.2, 1.0, 0.65, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />96 </EffectContainer>97 <EffectContainer condition="normal or brake">98 99 </EffectContainer>100 <EffectContainer condition="normal or boost">101 <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 12, -2, 14" colour="0.2, 1.0, 0.65, 1.0" width=5 length=1500 lifetime=2 elements=1 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />102 <Backlight mainstate=activity active=false scale=0.33 name=bltest position="-12, -2, 14" colour="0.2, 1.0, 0.65, 1.0" width=15 length=1500 lifetime=2 elements=1 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />103 </EffectContainer>104 77 105 78 </MultiStateEngine> -
code/branches/3DPacman_FS18/src/modules/pacman/Pacman.cc
r11992 r12003 121 121 122 122 //Check for collision with PointSpheres and PacmanPointAfraid 123 i = 0;124 123 for(PacmanPointSphere* nextsphere : ObjectList<PacmanPointSphere>()){ 125 if(collis(nextsphere->getPosition(),currentPosition))126 takePoint(nextsphere);124 if(nextsphere->taken(currentPosition)) 125 takePoint(nextsphere); 127 126 } 128 127 … … 208 207 return; 209 208 } 210 //Set PointSphere under map211 Vector3 postaken = taken->getPosition();212 postaken.y = -50;213 taken->setPosition(postaken);214 209 } 215 210 -
code/branches/3DPacman_FS18/src/modules/pacman/PacmanPointSphere.cc
r11992 r12003 76 76 { 77 77 resetposition = this->getPosition(); 78 if((abs(this->resetposition.x - playerpos.x)<5) && (abs(this->resetposition. z - playerpos.z)<5)){78 if((abs(this->resetposition.x - playerpos.x)<5) && (abs(this->resetposition.y - playerpos.y)<5) && (abs(this->resetposition.z - playerpos.z)<5)){ 79 79 this->setPosition(Vector3(resetposition.x, -50, resetposition.z)); 80 80 return true; 81 81 } 82 83 82 return false; 84 83 }
Note: See TracChangeset
for help on using the changeset viewer.