Changeset 12336
- Timestamp:
- May 2, 2019, 4:32:19 PM (6 years ago)
- Location:
- code/branches/OrxoBlox_FS19
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/data/levels/orxoblox.oxw
r12329 r12336 16 16 include("templates/spaceshipAssff2.oxt") 17 17 include("templates/spaceshipPirate.oxt") 18 include("templates/spaceshipAsteroids2D.oxt")19 18 include("templates/spaceshipOrxoBlox.oxt") 20 19 include("templates/enemyInvader.oxt") … … 104 103 <!-- <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/> --> 105 104 <Light type=directional position="-100, 10000, -700" lookat="0.2, -1, 0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> 106 <SpawnPoint team=0 position="0,150,0" lookat="0,0,0" spawnclass= OrxoBloxShip pawndesign=spaceshipasteroids2d/>105 <SpawnPoint team=0 position="0,150,0" lookat="0,0,0" spawnclass= Asteroids2DShip /> 107 106 108 107 <!--<Model mesh="axes.mesh" scale=10 position="0,0,0" /> --> … … 111 110 <MovableEntity rotationrate=0 rotationaxis="0,0,1"> 112 111 <attached> 113 <OrxoBloxCenterpoint name=OrxoBloxcenter dimension="120,100" balltemplate=OrxoBloxball battemplate=OrxoBloxbat ballspeed=200 ballaccfactor=1.0 batspeed=130 batlength=0.25 StoneTemplate=OrxoBloxstone WallTemplate=OrxoBloxwall> 112 <OrxoBloxCenterpoint name=OrxoBloxcenter dimension="100,100" balltemplate=OrxoBloxball battemplate=OrxoBloxbat ballspeed=200 ballaccfactor=1.0 batspeed=130 batlength=0.25 StoneTemplate=OrxoBloxstone WallTemplate=OrxoBloxwall> 113 114 114 <attached> 115 115 <!-- Balken die das Spielfeld begrenzen. --> 116 <Model position="0,0,-50" mesh="cube.mesh" scale3D=" 60,1,1" />117 <Model position=" 60,0,0" mesh="cube.mesh" scale3D="1,1,50"/>118 <Model position="- 60,0,0" mesh="cube.mesh" scale3D="1,1,50"/>116 <Model position="0,0,-50" mesh="cube.mesh" scale3D="50,1,1" /> 117 <Model position="50,0,0" mesh="cube.mesh" scale3D="1,1,50"/> 118 <Model position="-50,0,0" mesh="cube.mesh" scale3D="1,1,50"/> 119 119 </attached> 120 120 </OrxoBloxCenterpoint> -
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc
r12335 r12336 143 143 // Attach the ball to the centerpoint and set the parameters as specified in the centerpoint, the ball is attached to. 144 144 this->center_->attach(this->ball_); 145 this->ball_->setPosition(0, 0, 50);145 this->ball_->setPosition(0, 0, 40); 146 146 this->ball_->setFieldDimension(this->center_->getFieldDimension()); 147 147 this->ball_->setSpeed(0); … … 202 202 } 203 203 } 204 204 205 205 206 OrxoBloxShip* OrxoBlox::getPlayer() -
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxBall.cc
r12331 r12336 143 143 velocity.z = -velocity.z; 144 144 // And its position is set as to not overstep the boundary it has just crossed. 145 if (position.z > this->fieldHeight_ / 2) 146 ChatManager::message("Ball hat das Feld verlassen.Jerome"); 147 if (position.z < -this->fieldHeight_ / 2) 145 if (position.z > this->fieldHeight_ / 2){ 146 ChatManager::message("Ball hat das Feld verlassen"); 147 //TODO: ball zerstoeren 148 } 149 if (position.z < -this->fieldHeight_ / 2){ 148 150 position.z = -this->fieldHeight_ / 2; 151 152 } 149 153 150 154 this->fireEvent();
Note: See TracChangeset
for help on using the changeset viewer.