Changeset 10259
- Timestamp:
- Feb 6, 2015, 10:55:17 PM (10 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pickupsFS14 (added) merged: 10000,10005,10017,10022,10032,10040-10041,10050-10051,10074,10111-10112
- Property svn:mergeinfo changed
-
code/trunk/data/levels/jump.oxw
r10216 r10259 22 22 23 23 <Template name=figureLeftHand defaults=0> 24 <Model position="4.0,0.0,5.0" mesh="JumpFigureLeftHand.mesh" scale=1 >24 <Model position="4.0,0.0,5.0" mesh="JumpFigureLeftHand.mesh" scale=1 pitch=90> 25 25 </Model> 26 26 </Template> 27 27 28 28 <Template name=figureRightHand defaults=0> 29 <Model position="-4.0,0.0,5.0" mesh="JumpFigureRightHand.mesh" scale=1 >29 <Model position="-4.0,0.0,5.0" mesh="JumpFigureRightHand.mesh" scale=1 pitch=90> 30 30 </Model> 31 31 </Template> 32 32 33 33 <Template name=jumpFigureTemplate> 34 <JumpFigure camerapositiontemplate=jumpfigurecameras mouseFactor="100.0" modelLefthand=figureLeftHand modelRighthand=figureRightHand rocketPos= 8.0 propellerPos=8.0 bootsPos=-5.2 jumpSpeed=250.0 handMinAngle=-20 handMaxAngle=75 handSpeed=250 rocketSpeed=250.0 propellerSpeed=150.0>34 <JumpFigure camerapositiontemplate=jumpfigurecameras mouseFactor="100.0" modelLefthand=figureLeftHand modelRighthand=figureRightHand rocketPos=10.0 propellerPos=10.0 bootsPos=-5.2 jumpSpeed=250.0 handMinAngle=-20 handMaxAngle=75 handSpeed=250 rocketSpeed=250.0 propellerSpeed=150.0> 35 35 <attached> 36 36 <Model position="0,0,0" mesh="JumpFigure.mesh" scale=1 pitch=90/> … … 105 105 106 106 <Template name=jumpEnemy1Template> 107 <JumpEnemy height= 13 width=35>107 <JumpEnemy height=7 width=18> 108 108 <attached> 109 109 <Model mesh="JumpEnemy1.mesh" scale=1 pitch=90/> … … 115 115 116 116 <Template name=jumpEnemy2Template> 117 <JumpEnemy height= 15 width=36>117 <JumpEnemy height=8 width=20> 118 118 <attached> 119 119 <Model mesh="JumpEnemy2.mesh" scale=1 pitch=90/> 120 <MovableEntity position="-1 6, 0, 2" rotationaxis="0, 1, 0" rotationrate=500 >120 <MovableEntity position="-17, 0, 4" rotationaxis="0, 1, 0" rotationrate=500 > 121 121 <attached> 122 122 <Model mesh="JumpEnemy2Wing.mesh" scale=1 pitch=90/> 123 123 </attached> 124 124 </MovableEntity> 125 <MovableEntity position="1 6, 0, 2" rotationaxis="0, 1, 0" rotationrate=500 >125 <MovableEntity position="17, 0, 4" rotationaxis="0, 1, 0" rotationrate=500 > 126 126 <attached> 127 127 <Model mesh="JumpEnemy2Wing.mesh" scale=1 pitch=90/> … … 134 134 135 135 <Template name=jumpEnemy3Template> 136 <JumpEnemy height= 18.5 width=14>136 <JumpEnemy height=8.2 width=11.2> 137 137 <attached> 138 138 <Model mesh="JumpEnemy3.mesh" scale=1 pitch=90/> … … 145 145 146 146 <Template name=jumpEnemy4Template> 147 <JumpEnemy height= 12.5 width=36rotationaxis="0, 0, 1" rotationrate=40 >147 <JumpEnemy height=7.5 width=21.5 rotationaxis="0, 0, 1" rotationrate=40 > 148 148 <attached> 149 149 <Model mesh="JumpEnemy4.mesh" scale=1 pitch=90/> … … 242 242 <Model position="0,0,-1000" mesh="JumpPlatform05.mesh" scale="1" /> 243 243 <Model position="0,0,-1000" mesh="JumpPlatform06.mesh" scale="1" /> 244 <Model position="0,0,-1000" mesh="JumpProjectile.mesh" scale="1" /> 244 <Model position="0,0,-1000" mesh="JumpProjectile.mesh" scale="1" /> 245 <Model position="0,0,-1000" mesh="JumpFigure.mesh" scale="1" /> 245 246 <Model position="0,0,-1000" mesh="JumpEnemy1.mesh" scale="1" /> 246 247 <Model position="0,0,-1000" mesh="JumpEnemy2.mesh" scale="1" /> 247 <Model position="0,0,-1000" mesh="JumpEnemy2Wing.mesh" scale="1" />248 248 <Model position="0,0,-1000" mesh="JumpEnemy3.mesh" scale="1" /> 249 249 <Model position="0,0,-1000" mesh="JumpEnemy4.mesh" scale="1" /> 250 250 <Model position="0,0,-1000" mesh="JumpSpring.mesh" scale="1" /> 251 251 <Model position="0,0,-1000" mesh="JumpRocket.mesh" scale="1" /> 252 <Model position="0,0,-1000" mesh="JumpPropeller.mesh" scale="1" />253 <Model position="0,0,-1000" mesh="JumpShield.mesh" scale="1" />254 <Model position="0,0,-1000" mesh="JumpBoots.mesh" scale="1" />255 252 </attached> 256 253 </JumpCenterpoint> 257 254 </attached> 258 255 </MovableEntity> 256 257 <EventDispatcher> 258 <targets> 259 <EventTarget target=scoreeffect_right /> 260 <EventTarget target=scoreeffect_center /> 261 </targets> 262 <events> 263 <spawn> 264 <EventFilter> 265 <names> 266 <EventName name=right /> 267 </names> 268 <EventListener event=jumpcenter /> 269 </EventFilter> 270 </spawn> 271 </events> 272 </EventDispatcher> 273 <EventDispatcher> 274 <targets> 275 <EventTarget target=scoreeffect_left /> 276 <EventTarget target=scoreeffect_center /> 277 </targets> 278 <events> 279 <spawn> 280 <EventFilter> 281 <names> 282 <EventName name=left /> 283 </names> 284 <EventListener event=jumpcenter /> 285 </EventFilter> 286 </spawn> 287 </events> 288 </EventDispatcher> 289 259 290 </Scene> 260 291 </Level> -
code/trunk/src/modules/jump/Jump.cc
r10218 r10259 395 395 JumpPlatformTimer* Jump::addPlatformTimer(float xPosition, float zPosition, float time, float variance) 396 396 { 397 float additionalTime = (float)(rand()%100)/ (100*variance) - variance/2;397 float additionalTime = (float)(rand()%100)/100.0*variance - variance/2.0; 398 398 399 399 JumpPlatformTimer* newPlatform = new JumpPlatformTimer(center_->getContext());
Note: See TracChangeset
for help on using the changeset viewer.