Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10259


Ignore:
Timestamp:
Feb 6, 2015, 10:55:17 PM (10 years ago)
Author:
landauf
Message:

recorded merge of pickupsFS14 up to r10112 (which was already mostly merged in presentationFS14). updated files to the state of r10112

Location:
code/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/data/levels/jump.oxw

    r10216 r10259  
    2222
    2323<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>
    2525  </Model>
    2626</Template>
    2727
    2828<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>
    3030  </Model>
    3131</Template>
    3232
    3333<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>
    3535    <attached>
    3636      <Model position="0,0,0" mesh="JumpFigure.mesh" scale=1 pitch=90/>
     
    105105
    106106<Template name=jumpEnemy1Template>
    107   <JumpEnemy height=13 width=35>
     107  <JumpEnemy height=7 width=18>
    108108    <attached>
    109109      <Model mesh="JumpEnemy1.mesh" scale=1  pitch=90/>
     
    115115
    116116<Template name=jumpEnemy2Template>
    117   <JumpEnemy height=15 width=36>
     117  <JumpEnemy height=8 width=20>
    118118    <attached>
    119119      <Model mesh="JumpEnemy2.mesh" scale=1  pitch=90/>
    120       <MovableEntity position="-16, 0, 2" rotationaxis="0, 1, 0" rotationrate=500 >
     120      <MovableEntity position="-17, 0, 4" rotationaxis="0, 1, 0" rotationrate=500 >
    121121        <attached>
    122122          <Model mesh="JumpEnemy2Wing.mesh" scale=1 pitch=90/>
    123123        </attached>
    124124      </MovableEntity>     
    125       <MovableEntity position="16, 0, 2" rotationaxis="0, 1, 0" rotationrate=500 >
     125      <MovableEntity position="17, 0, 4" rotationaxis="0, 1, 0" rotationrate=500 >
    126126        <attached>
    127127          <Model mesh="JumpEnemy2Wing.mesh" scale=1 pitch=90/>
     
    134134
    135135<Template name=jumpEnemy3Template>
    136   <JumpEnemy height=18.5 width=14>
     136  <JumpEnemy height=8.2 width=11.2>
    137137    <attached>
    138138      <Model mesh="JumpEnemy3.mesh" scale=1  pitch=90/>
     
    145145
    146146<Template name=jumpEnemy4Template>
    147   <JumpEnemy height=12.5 width=36 rotationaxis="0, 0, 1" rotationrate=40 >
     147  <JumpEnemy height=7.5 width=21.5 rotationaxis="0, 0, 1" rotationrate=40 >
    148148    <attached>
    149149      <Model mesh="JumpEnemy4.mesh" scale=1  pitch=90/>
     
    242242            <Model position="0,0,-1000" mesh="JumpPlatform05.mesh" scale="1" />
    243243            <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" />
    245246            <Model position="0,0,-1000" mesh="JumpEnemy1.mesh" scale="1" />
    246247            <Model position="0,0,-1000" mesh="JumpEnemy2.mesh" scale="1" />
    247             <Model position="0,0,-1000" mesh="JumpEnemy2Wing.mesh" scale="1" />
    248248            <Model position="0,0,-1000" mesh="JumpEnemy3.mesh" scale="1" />
    249249            <Model position="0,0,-1000" mesh="JumpEnemy4.mesh" scale="1" />
    250250            <Model position="0,0,-1000" mesh="JumpSpring.mesh" scale="1" />
    251251            <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" />
    255252          </attached>
    256253        </JumpCenterpoint>
    257254      </attached>
    258255    </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
    259290  </Scene>
    260291</Level>
  • code/trunk/src/modules/jump/Jump.cc

    r10218 r10259  
    395395    JumpPlatformTimer* Jump::addPlatformTimer(float xPosition, float zPosition, float time, float variance)
    396396    {
    397         float additionalTime = (float)(rand()%100)/(100*variance) - variance/2;
     397        float additionalTime = (float)(rand()%100)/100.0*variance - variance/2.0;
    398398
    399399        JumpPlatformTimer* newPlatform = new JumpPlatformTimer(center_->getContext());
Note: See TracChangeset for help on using the changeset viewer.