Changeset 10127
- Timestamp:
- Nov 19, 2014, 2:10:51 PM (10 years ago)
- 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=spaceship DodgeRace>2 < InvaderShip1 <Template name=spaceshipdodgerace> 2 <DodgeRaceShip 3 3 hudtemplate = spaceshiphud 4 4 camerapositiontemplate = spaceshipescortcameras … … 62 62 include("../includes/invaderWeapon.oxi") 63 63 ?> 64 </ InvaderShip>64 </DodgeRaceShip> 65 65 </Template> 66 66 67 67 <Template name=spaceshipescortcameras defaults=0> 68 < InvaderShip>68 <DodgeRaceShip> 69 69 <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 /> 73 71 <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 /> 74 73 </camerapositions> 75 </ InvaderShip>74 </DodgeRaceShip> 76 75 </Template> 77 76 -
code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRaceShip.cc
r10124 r10127 96 96 { 97 97 camera->setPosition(Vector3(-pos.z, -posforeward, 0)); 98 camera->setOrientation(Vector3::UNIT_Z, Degree( 90));98 camera->setOrientation(Vector3::UNIT_Z, Degree(0)); 99 99 } 100 100 … … 127 127 void DodgeRaceShip::moveFrontBack(const Vector2& value) 128 128 { 129 lastTimeLeft = 0; 130 desiredVelocity.x = -value.x * speed; 129 //lastTimeFront = 0; 130 //desiredVelocity.y = value.y * speed * 42; 131 131 132 } 132 133 133 134 void DodgeRaceShip::moveRightLeft(const Vector2& value) 134 135 { 135 lastTimeFront = 0;136 desiredVelocity.y = value.y * speed * 42;136 lastTimeLeft = 0; 137 desiredVelocity.x = -value.x * speed; 137 138 } 138 139 void DodgeRaceShip::boost(bool bBoost)
Note: See TracChangeset
for help on using the changeset viewer.