Changeset 9858 for code/branches/invaders
- Timestamp:
- Dec 2, 2013, 4:08:30 PM (11 years ago)
- Location:
- code/branches/invaders
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/invaders/data/levels/includes/invaderWeapon.oxi
r9744 r9858 14 14 </links> 15 15 <Weapon> 16 <InvaderWeapon mode=0 munitionpershot=0 delay=0.125 damage=9.3 material="Flares/point_lensflare" muzzleoffset=" 0.1, 1.6,-2" projectileMesh="LaserBeam .mesh" />16 <InvaderWeapon mode=0 munitionpershot=0 delay=0.125 damage=9.3 material="Flares/point_lensflare" muzzleoffset=" 0.1, 1.6,-2" projectileMesh="LaserBeam2.mesh" /> 17 17 <!--InvaderWeapon mode=0 munitionpershot=0 delay=0 damage=3.14159 material="Flares/point_lensflare" muzzleoffset="-1.6, 1.3,-2" projectileMesh="LaserBeam.mesh" /--> 18 18 </Weapon> 19 19 <Weapon> 20 <InvaderWeapon mode=0 munitionpershot=0 delay=0 damage=9.3 material="Flares/point_lensflare" muzzleoffset=" 1.6, 1.3, -2.0" projectileMesh="LaserBeam .mesh" />20 <InvaderWeapon mode=0 munitionpershot=0 delay=0 damage=9.3 material="Flares/point_lensflare" muzzleoffset=" 1.6, 1.3, -2.0" projectileMesh="LaserBeam2.mesh" /> 21 21 <!--InvaderWeapon mode=0 munitionpershot=0 delay=0.125 damage=3.14159 material="Flares/point_lensflare" muzzleoffset="-0.1, 1.6, -2.0" projectileMesh="LaserBeam.mesh" /--> 22 22 </Weapon> -
code/branches/invaders/src/modules/invader/Invader.cc
r9854 r9858 98 98 } 99 99 100 void Invader::costLife() 101 { 102 lives--; 103 multiplier = 0; 104 if (lives <= 0) end(); 105 }; 106 100 107 void Invader::comboControll() 101 108 { -
code/branches/invaders/src/modules/invader/Invader.h
r9854 r9858 68 68 int getMultiplier(){return this->multiplier;} 69 69 70 void costLife() {lives--; if (lives <= 0) end();};70 void costLife(); 71 71 void levelUp(){level++;} 72 72 void addPoints(int numPoints){point += numPoints * multiplier; b_combo = true;} -
code/branches/invaders/src/modules/invader/InvaderEnemy.cc
r9854 r9858 68 68 inline bool InvaderEnemy::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint) 69 69 { 70 setVelocity(Vector3(1000,0,0));70 // setVelocity(Vector3(1000,0,0)); 71 71 removeHealth(2000); 72 72 return false;
Note: See TracChangeset
for help on using the changeset viewer.