Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10127


Ignore:
Timestamp:
Nov 19, 2014, 2:10:51 PM (10 years ago)
Author:
sriedel
Message:

Level files added.

Location:
code/branches/surfaceraceHS14
Files:
3 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/surfaceraceHS14/data/levels/templates/spaceshipDodgeRace.oxt

    r10107 r10127  
    1 <Template name=spaceshipDodgeRace>
    2   <InvaderShip
     1<Template name=spaceshipdodgerace>
     2  <DodgeRaceShip
    33   hudtemplate            = spaceshiphud
    44   camerapositiontemplate = spaceshipescortcameras
     
    6262  include("../includes/invaderWeapon.oxi")
    6363?>
    64   </InvaderShip>
     64  </DodgeRaceShip>
    6565</Template>
    6666
    6767<Template name=spaceshipescortcameras defaults=0>
    68   <InvaderShip>
     68  <DodgeRaceShip>
    6969    <camerapositions>
    70  <!--       <CameraPosition position="0,15, 60" drag=true mouselook=true />
    71      <CameraPosition position="0,20, 90" drag=true mouselook=true /> -->
    72       <CameraPosition position="0,30,120" direction="0, 0, -1"  drag=false mouselook=true />
     70      <CameraPosition position="0,30,120" direction="0, 0, -1" drag=false mouselook=true />
    7371      <CameraPosition position="0,300,-100" direction="0, -1, 0" drag=false mouselook=true />
     72      <CameraPosition position="0,300,-100" direction="1, 0, 0" drag=false mouselook=true />
    7473    </camerapositions>
    75   </InvaderShip>
     74  </DodgeRaceShip>
    7675</Template>
    7776
  • code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRaceShip.cc

    r10124 r10127  
    9696        {
    9797            camera->setPosition(Vector3(-pos.z, -posforeward, 0));
    98             camera->setOrientation(Vector3::UNIT_Z, Degree(90));
     98            camera->setOrientation(Vector3::UNIT_Z, Degree(0));
    9999        }
    100100
     
    127127    void DodgeRaceShip::moveFrontBack(const Vector2& value)
    128128    {
    129         lastTimeLeft = 0;
    130         desiredVelocity.x = -value.x * speed;
     129        //lastTimeFront = 0;
     130        //desiredVelocity.y = value.y * speed * 42;
     131
    131132    }
    132133
    133134    void DodgeRaceShip::moveRightLeft(const Vector2& value)
    134135    {
    135         lastTimeFront = 0;
    136         desiredVelocity.y = value.y * speed * 42;
     136        lastTimeLeft = 0;
     137        desiredVelocity.x = -value.x * speed;
    137138    }
    138139    void DodgeRaceShip::boost(bool bBoost)
Note: See TracChangeset for help on using the changeset viewer.