Changeset 9083 for code/branches/pCuts
- Timestamp:
- Apr 11, 2012, 6:35:15 PM (13 years ago)
- Location:
- code/branches/pCuts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pCuts/data/levels/tetris.oxw
r9082 r9083 12 12 ?> 13 13 14 <Template name=tetrisstonecameras defaults=0> 15 <TetrisStone> 16 <camerapositions> 17 <CameraPosition position="55,75,200" absolute=true /> 18 <CameraPosition position="0,50,160" drag=true mouselook=true /> 19 <CameraPosition position="0,50,0" pitch=-90 drag=true mouselook=true /> 20 </camerapositions> 21 </TetrisStone> 22 </Template> 23 24 <Template name=tetrisstone> 25 <TetrisStone camerapositiontemplate=tetrisstonecameras> 26 <attached> 27 <Model position="0,0,0" mesh="crate.mesh" scale=1 /> 28 </attached> 29 </TetrisStone> 30 </Template> 31 32 33 14 34 <Template name=tetrisbrickcameras defaults=0> 15 35 <TetrisBrick> … … 22 42 </Template> 23 43 24 <Template name=tetris stone>25 <Tetris Stone>44 <Template name=tetrisbrick> 45 <TetrisBrick camerapositiontemplate=tetrisbrickcameras> 26 46 <attached> 27 47 <Model position="0,0,0" mesh="crate.mesh" scale=1 /> 28 48 </attached> 29 </TetrisStone>30 </Template>31 32 <Template name=tetrisbrick>33 <TetrisBrick camerapositiontemplate=tetrisbrickcameras>34 49 </TetrisBrick> 35 50 </Template> -
code/branches/pCuts/src/modules/tetris/TetrisBrick.cc
r9082 r9083 53 53 RegisterObject(TetrisBrick); 54 54 55 this->shapeIndex_ = 6; //<! TODO: random number between 0 and 755 this->shapeIndex_ = 3; //<! TODO: random number between 0 and 7 56 56 this->stonesPerBrick_ = 4; //<! most tetris bricks is formed by 4 stones 57 57 this->delay_ = false; -
code/branches/pCuts/src/orxonox/worldentities/ControllableEntity.cc
r9016 r9083 177 177 { 178 178 if (this->cameraPositions_.size() <= 0) 179 return 0;179 {orxout()<< "camareapositions_size == 0"<<endl ; return 0;} 180 180 181 181 unsigned int counter = 0; … … 196 196 if(this->camera_ != NULL && this->cameraPositions_.size() > 0) 197 197 { 198 orxout()<< "Cameraposition is set."<<endl; 198 199 if(index >= this->cameraPositions_.size()) 199 200 index = 0;
Note: See TracChangeset
for help on using the changeset viewer.