- Timestamp:
- Apr 26, 2018, 3:50:24 PM (7 years ago)
- Location:
- code/branches/Hover_FS18
- Files:
-
- 4 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Hover_FS18/data/levels/Hover.oxw
r11892 r11909 1 1 <LevelInfo 2 name = "Hover level"2 name = "Hover" 3 3 description = "Level for Minigame Hover" 4 4 tags = "minigame" … … 18 18 ?> 19 19 20 /*<?lua21 MAZE_NUM_CELLS = 1022 MAZE_CELL_SIZE = 10023 MAZE_CELL_HEIGHT = 3024 MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE25 ?>*/26 27 20 <Level 28 21 plugins = hover … … 40 33 > 41 34 35 <StaticEntity position="0, 0, 0" collisionType = "none"> 36 <attached> 37 <Model mesh="hover_level.mesh" scale="200"/> 38 </attached> 39 <collisionShapes> 40 <BoxCollisionShape position="-822.0, 2372.286, 190.15" halfExtents="100.0, 0.0, 100.0" /> 41 <BoxCollisionShape position="-1472.0, 1190.204, 2450.828" halfExtents="139.999, 0.0, 140.0" /> 42 </collisionShapes> 43 </StaticEntity> 42 44 <StaticEntity position="0,0,0" collisionType="static"> 43 < attached>44 /*<HoverOrigin45 <!-- <attached> 46 <HoverOrigin 45 47 numCells="<?lua print(MAZE_NUM_CELLS)?>" 46 48 cellSize="<?lua print(MAZE_CELL_SIZE)?>" 47 49 cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>" 48 /> */50 /> 49 51 50 </attached> 52 </attached> --> 51 53 <collisionShapes> 52 54 53 55 54 <BoxCollisionShape position="-5.10, -5.61264, 12.86143" halfExtents="8, 0.4, 1" /> 55 <BoxCollisionShape position="2.50, 1.98736, 12.86143" halfExtents="0.4, 8, 1" /> 56 <BoxCollisionShape position="-12.72, 1.98736, 12.86143" halfExtents="0.38, 8, 1" /> 57 <BoxCollisionShape position="-5.50, 9.98736, 12.86143" halfExtents="7.6, 0, 1" /> 58 <BoxCollisionShape position="0.15, 7.22736, 12.86143" halfExtents="0.2166, 2, 1" /> 59 <BoxCollisionShape position="-2.57, 6.93236, 12.86143" halfExtents="2.5, 0.255, 1" /> 60 <BoxCollisionShape position="0.65, 5.52736, 12.86143" halfExtents="0.7166, 0.3, 1" /> 61 <BoxCollisionShape position="-3.77, 3.95236, 12.86143" halfExtents="0.3, 1.275, 1" /> 62 <BoxCollisionShape position="-7.84, 6.05056, 12.86143" halfExtents="4.5, 0.2888, 1" /> 63 <BoxCollisionShape position="-5.72, 7.36936, 12.86143" halfExtents="2.375, 1.03, 1" /> 64 <BoxCollisionShape position="-9.28, 4.27176, 12.86143" halfExtents="0.34, 1.51, 1" /> 65 <BoxCollisionShape position="-10.20, -3.21264, 12.86143" halfExtents="0.356665, 2, 1" /> 66 <BoxCollisionShape position="0.10, -2.73979, 12.86143" halfExtents="2, 0.30685, 1" /> 67 <BoxCollisionShape position="-1.60, -3.23979, 12.86143" halfExtents="0.3, 0.80685, 1" /> 68 <BoxCollisionShape position="0.99, -0.93294, 12.86143" halfExtents="0.255, 1.5, 1" /> 69 <BoxCollisionShape position="0.10, 3.13485, 12.86143" halfExtents="2, 0.32066, 1" /> 70 <BoxCollisionShape position="-0.86, 0.81419, 12.86143" halfExtents="0.24, 2, 1" /> 71 <BoxCollisionShape position="-3.19, -3.21264, 12.86143" halfExtents="0.23495, 2, 1" /> 72 <BoxCollisionShape position="-6.24, 0.11736, 12.86143" halfExtents="0.3125, 2.5, 1" /> 73 <BoxCollisionShape position="-4.87, -0.34754, 12.86143" halfExtents="3.559405, 2.6651, 1" /> 74 <BoxCollisionShape position="-8.10, -0.69764, 12.86143" halfExtents="0.328125, 2.315, 1" /> 75 <BoxCollisionShape position="-9.60, 1.31736, 12.86143" halfExtents="1.828125, 0.3, 1" /> 76 <BoxCollisionShape position="11.55, 4.36787, 6.92041" halfExtents="0.532, 11.2, 1" /> 77 <BoxCollisionShape position="0.88, 15.00787, 6.92041" halfExtents="11.199995, 0.56, 1" /> 78 <BoxCollisionShape position="-9.76, 4.36787, 6.92041" halfExtents="0.5600005, 11.2, 1" /> 79 <BoxCollisionShape position="0.88, -6.30013, 6.92041" halfExtents="11.1999955, 0.532, 1" /> 80 <BoxCollisionShape position="4.17, 2.37345, 6.92041" halfExtents="4.45, 0.75, 1" /> 81 <BoxCollisionShape position="8.17, 0.62345, 6.92041" halfExtents="0.450005, 2.5, 1" /> 82 <BoxCollisionShape position="8.02, -2.30614, 6.92041" halfExtents="2.999995, 0.42959, 1" /> 83 <BoxCollisionShape position="2.32, -4.77813, 6.92041" halfExtents="0.606475, 0.99, 1" /> 84 <BoxCollisionShape position="7.52, 5.918365, 6.92041" halfExtents="3.499995, 0.448925, 1" /> 85 <BoxCollisionShape position="4.41, 7.918365, 6.92041" halfExtents="0.39375, 2.448925, 1" /> 86 <BoxCollisionShape position="7.69, 9.36729, 6.92041" halfExtents="0.525005, 3, 1" /> 87 <BoxCollisionShape position="8.96, 10.49214, 6.92041" halfExtents="0.73963, 0.33091, 1" /> 88 <BoxCollisionShape position="2.35, 11.94787, 6.92041" halfExtents="0.296195, 2.5, 1" /> 89 <BoxCollisionShape position="-0.44, 12.47837, 6.92041" halfExtents="2.5, 0.33672, 1" /> 90 <BoxCollisionShape position="-5.15, 12.44787, 6.92041" halfExtents="0.450215, 2, 1" /> 91 <BoxCollisionShape position="-5.20, 5.80553, 6.92041" halfExtents="4, 0.45486, 1" /> 92 <BoxCollisionShape position="-1.60, 7.805535, 6.92041" halfExtents="0.4, 2.454865, 1" /> 93 <BoxCollisionShape position="-5.73, 3.85067, 6.92041" halfExtents="0.495, 1.5, 1" /> 94 <BoxCollisionShape position="-6.41, -2.74313, 6.92041" halfExtents="0.49125, 3.025, 1" /> 95 <BoxCollisionShape position="-2.92, -1.83063, 6.92041" halfExtents="3, 0.5625, 1" /> 96 <BoxCollisionShape position="0.00, 13.998825, 1" halfExtents="14.5, 0.501175, 1" /> 97 <BoxCollisionShape position="-14.07, 0, 1" halfExtents="0.42622, 14.5, 1" /> 98 <BoxCollisionShape position="0.00, -14.01435, 1" halfExtents="14.5, 0.48565, 1" /> 99 <BoxCollisionShape position="14.00, 0, 1" halfExtents="0.497965, 14.5, 1" /> 100 <BoxCollisionShape position="10.74, 10.49765, 1" halfExtents="0.37487, 3, 1" /> 101 <BoxCollisionShape position="8.18, 9.59765, 1" halfExtents="2.18399, 0, 1" /> 102 <BoxCollisionShape position="1.67, 11.47789, 1" halfExtents="0.392845, 2.01976, 1" /> 103 <BoxCollisionShape position="-7.15, 9.70307, 1" halfExtents="6.5, 0.45207, 1" /> 104 <BoxCollisionShape position="-5.54, 5.751, 1" halfExtents="0.731825, 3.5, 1" /> 105 <BoxCollisionShape position="-10.15, 3.471825, 1" halfExtents="3.5, 0.418405, 1" /> 106 <BoxCollisionShape position="-8.71, 4.72713, 1" halfExtents="2.059455, 1.67371, 1" /> 107 <BoxCollisionShape position="-10.52, -7.5287, 1" halfExtents="0.4158, 6, 1" /> 108 <BoxCollisionShape position="10.50, -1.41018, 1" halfExtents="3, 0.41642, 1" /> 109 <BoxCollisionShape position="7.91, 1.8694, 1" halfExtents="0.409645, 2.86316, 1" /> 110 <BoxCollisionShape position="9.76, 4.31938, 1" halfExtents="1.44061, 0.41318, 1" /> 111 <BoxCollisionShape position="7.50, -8.712205, 1" halfExtents="6, 0.310035, 1" /> 112 <BoxCollisionShape position="9.00, -10.157485, 1" halfExtents="0.36514, 1.135245, 1" /> 113 <BoxCollisionShape position="4.56, -0.902175, 1" halfExtents="0.35412, 7.499995, 1" /> 114 <BoxCollisionShape position="1.98, 4.01242, 1" halfExtents="2.22454, 0.45625, 1" /> 115 <BoxCollisionShape position="-1.60, -3.82935, 1" halfExtents="5.802365, 0.28834, 1" /> 116 <BoxCollisionShape position="-3.93, -7.11769, 1" halfExtents="0.51491, 3, 1" /> 117 <BoxCollisionShape position="1.47, -1.480135, 1" halfExtents="0.39372, 2.060875, 1" /> 118 <BoxCollisionShape position="-4.11, 0.40075, 9.2805" halfExtents="0.6, 0.05, 2.58093" /> 119 <BoxCollisionShape position="-3.56, 0.95075, 9.2805" halfExtents="0.05, 0.6, 2.58093" /> 120 <BoxCollisionShape position="-4.11, 1.50075, 9.2805" halfExtents="0.6, 0.05, 2.58093" /> 121 <BoxCollisionShape position="-4.66, 0.95075, 9.2805" halfExtents="0.05, 0.6, 2.58093" /> 122 <BoxCollisionShape position="-7.36, 11.50414, 3.764645" halfExtents="0.8, 0.05, 2.186375" /> 123 <BoxCollisionShape position="-8.11, 12.25414, 3.764645" halfExtents="0.050005, 0.8, 2.186375" /> 124 <BoxCollisionShape position="-7.36, 13.00414, 3.764645" halfExtents="0.8, 0.05, 2.186375" /> 125 <BoxCollisionShape position="-6.61, 12.25414, 3.764645" halfExtents="0.05, 0.8, 2.186375" /> 126 <BoxCollisionShape position="-2.01, 3.01756, 6.10299" halfExtents="0.7, 0.7, 0.1" /> 127 <BoxCollisionShape position="-2.01, -4.18244, 2.820665" halfExtents="0.7, 6.5, 3.382325" /> 128 <BoxCollisionShape position="5.40, -4.01264, 8.96143" halfExtents="3.999995, 0.5, 3.1" /> 129 <BoxCollisionShape position="0.90, -4.01264, 11.96143" halfExtents="0.5, 0.5, 0.1" /> 130 <BoxCollisionShape position="0.88, 4.36787, 5.87041" halfExtents="11.199995, 11.2, 0.05" /> 131 <BoxCollisionShape position="-5.10, 1.98736, 11.81143" halfExtents="8, 8, 0.05" /> 132 <BoxCollisionShape position="0.00, 0, -0.05" halfExtents="14.5, 14.5, 0.05" /> 56 <!--<BoxCollisionShape position="-1020.0, 2572.286, -1122.528" halfExtents="1600.0, 200.0, 80.0" /> 57 <BoxCollisionShape position="500.0, 2572.286, 397.472" halfExtents="80.0, 200.0, 1600.0" /> 58 <BoxCollisionShape position="-2544.0, 2572.286, 397.472" halfExtents="76.0, 200.0, 1600.0" /> 59 <BoxCollisionShape position="-1100.0, 2572.286, 1997.472" halfExtents="1520.0, 200.0, 0.0" /> 60 <BoxCollisionShape position="30.0, 2572.286, 1445.472" halfExtents="43.32, 200.0, 400.0" /> 61 <BoxCollisionShape position="-514.0, 2572.286, 1386.472" halfExtents="500.0, 200.0, 51.0" /> 62 <BoxCollisionShape position="130.0, 2572.286, 1105.472" halfExtents="143.32, 200.0, 60.0" /> 63 <BoxCollisionShape position="-754.0, 2572.286, 790.472" halfExtents="60.0, 200.0, 255.0" /> 64 <BoxCollisionShape position="-1568.0, 2572.286, 1210.112" halfExtents="900.0, 200.0, 57.76" /> 65 <BoxCollisionShape position="-1144.0, 2572.286, 1473.872" halfExtents="475.0, 200.0, 206.0" /> 66 <BoxCollisionShape position="-1856.0, 2572.286, 854.352" halfExtents="68.0, 200.0, 302.0" /> 67 <BoxCollisionShape position="-2040.0, 2572.286, -642.528" halfExtents="71.333, 200.0, 400.0" /> 68 <BoxCollisionShape position="20.0, 2572.286, -547.958" halfExtents="400.0, 200.0, 61.37" /> 69 <BoxCollisionShape position="-320.0, 2572.286, -647.958" halfExtents="60.0, 200.0, 161.37" /> 70 <BoxCollisionShape position="198.0, 2572.286, -186.588" halfExtents="51.0, 200.0, 300.0" /> 71 <BoxCollisionShape position="20.0, 2572.286, 626.97" halfExtents="400.0, 200.0, 64.132" /> 72 <BoxCollisionShape position="-172.0, 2572.286, 162.838" halfExtents="48.0, 200.0, 400.0" /> 73 <BoxCollisionShape position="-638.0, 2572.286, -642.528" halfExtents="46.99, 200.0, 400.0" /> 74 <BoxCollisionShape position="-1248.0, 2572.286, 23.472" halfExtents="62.5, 200.0, 500.0" /> 75 <BoxCollisionShape position="-974.0, 2572.286, -69.508" halfExtents="711.881, 200.0, 533.02" /> 76 <BoxCollisionShape position="-1620.0, 2572.286, -139.528" halfExtents="65.625, 200.0, 463.0" /> 77 <BoxCollisionShape position="-1920.0, 2572.286, 263.472" halfExtents="365.625, 200.0, 60.0" /> 78 <BoxCollisionShape position="2310.0, 1384.082, 873.574" halfExtents="106.4, 200.0, 2240.0" /> 79 <BoxCollisionShape position="176.0, 1384.082, 3001.574" halfExtents="2239.999, 200.0, 112.0" /> 80 <BoxCollisionShape position="-1952.0, 1384.082, 873.574" halfExtents="112.0, 200.0, 2240.0" /> 81 <BoxCollisionShape position="176.0, 1384.082, -1260.026" halfExtents="2239.999, 200.0, 106.4" /> 82 <BoxCollisionShape position="834.0, 1384.082, 474.69" halfExtents="890.0, 200.0, 150.0" /> 83 <BoxCollisionShape position="1634.0, 1384.082, 124.69" halfExtents="90.001, 200.0, 500.0" /> 84 <BoxCollisionShape position="1604.0, 1384.082, -461.228" halfExtents="599.999, 200.0, 85.918" /> 85 <BoxCollisionShape position="464.0, 1384.082, -955.626" halfExtents="121.295, 200.0, 198.0" /> 86 <BoxCollisionShape position="1504.0, 1384.082, 1183.673" halfExtents="699.999, 200.0, 89.785" /> 87 <BoxCollisionShape position="882.0, 1384.082, 1583.673" halfExtents="78.75, 200.0, 489.785" /> 88 <BoxCollisionShape position="1538.0, 1384.082, 1873.458" halfExtents="105.001, 200.0, 600.0" /> 89 <BoxCollisionShape position="1792.0, 1384.082, 2098.428" halfExtents="147.926, 200.0, 66.182" /> 90 <BoxCollisionShape position="470.0, 1384.082, 2389.574" halfExtents="59.239, 200.0, 500.0" /> 91 <BoxCollisionShape position="-88.0, 1384.082, 2495.674" halfExtents="500.0, 200.0, 67.344" /> 92 <BoxCollisionShape position="-1030.0, 1384.082, 2489.574" halfExtents="90.043, 200.0, 400.0" /> 93 <BoxCollisionShape position="-1040.0, 1384.082, 1161.106" halfExtents="800.0, 200.0, 90.972" /> 94 <BoxCollisionShape position="-320.0, 1384.082, 1561.107" halfExtents="80.0, 200.0, 490.973" /> 95 <BoxCollisionShape position="-1146.0, 1384.082, 770.134" halfExtents="99.0, 200.0, 300.0" /> 96 <BoxCollisionShape position="-1282.0, 1384.082, -548.626" halfExtents="98.25, 200.0, 605.0" /> 97 <BoxCollisionShape position="-584.0, 1384.082, -366.126" halfExtents="600.0, 200.0, 112.5" /> 98 <BoxCollisionShape position="0.0, 200.0, 2799.765" halfExtents="2900.0, 200.0, 100.235" /> 99 <BoxCollisionShape position="-2814.0, 200.0, 0.0" halfExtents="85.244, 200.0, 2900.0" /> 100 <BoxCollisionShape position="0.0, 200.0, -2802.87" halfExtents="2900.0, 200.0, 97.13" /> 101 <BoxCollisionShape position="2800.0, 200.0, 0.0" halfExtents="99.593, 200.0, 2900.0" /> 102 <BoxCollisionShape position="2148.0, 200.0, 2099.53" halfExtents="74.974, 200.0, 600.0" /> 103 <BoxCollisionShape position="1636.0, 200.0, 1919.53" halfExtents="436.798, 200.0, 0.0" /> 104 <BoxCollisionShape position="334.0, 200.0, 2295.578" halfExtents="78.569, 200.0, 403.952" /> 105 <BoxCollisionShape position="-1430.0, 200.0, 1940.614" halfExtents="1300.0, 200.0, 90.414" /> 106 <BoxCollisionShape position="-1108.0, 200.0, 1150.2" halfExtents="146.365, 200.0, 700.0" /> 107 <BoxCollisionShape position="-2030.0, 200.0, 694.365" halfExtents="700.0, 200.0, 83.681" /> 108 <BoxCollisionShape position="-1742.0, 200.0, 945.426" halfExtents="411.891, 200.0, 334.742" /> 109 <BoxCollisionShape position="-2104.0, 200.0, -1505.74" halfExtents="83.16, 200.0, 1200.0" /> 110 <BoxCollisionShape position="2100.0, 200.0, -282.036" halfExtents="600.0, 200.0, 83.284" /> 111 <BoxCollisionShape position="1582.0, 200.0, 373.88" halfExtents="81.929, 200.0, 572.632" /> 112 <BoxCollisionShape position="1952.0, 200.0, 863.876" halfExtents="288.122, 200.0, 82.636" /> 113 <BoxCollisionShape position="1500.0, 200.0, -1742.441" halfExtents="1200.0, 200.0, 62.007" /> 114 <BoxCollisionShape position="1800.0, 200.0, -2031.497" halfExtents="73.028, 200.0, 227.049" /> 115 <BoxCollisionShape position="912.0, 200.0, -180.435" halfExtents="70.824, 200.0, 1499.999" /> 116 <BoxCollisionShape position="396.0, 200.0, 802.484" halfExtents="444.908, 200.0, 91.25" /> 117 <BoxCollisionShape position="-320.0, 200.0, -765.87" halfExtents="1160.473, 200.0, 57.668" /> 118 <BoxCollisionShape position="-786.0, 200.0, -1423.538" halfExtents="102.982, 200.0, 600.0" /> 119 <BoxCollisionShape position="294.0, 200.0, -296.027" halfExtents="78.744, 200.0, 412.175" /> 120 <BoxCollisionShape position="-822.0, 1856.1, 80.15" halfExtents="120.0, 516.186, 10.0" /> 121 <BoxCollisionShape position="-712.0, 1856.1, 190.15" halfExtents="10.0, 516.186, 120.0" /> 122 <BoxCollisionShape position="-822.0, 1856.1, 300.15" halfExtents="120.0, 516.186, 10.0" /> 123 <BoxCollisionShape position="-932.0, 1856.1, 190.15" halfExtents="10.0, 516.186, 120.0" /> 124 <BoxCollisionShape position="-1472.0, 752.929, 2300.828" halfExtents="160.0, 437.275, 10.0" /> 125 <BoxCollisionShape position="-1622.0, 752.929, 2450.828" halfExtents="10.001, 437.275, 160.0" /> 126 <BoxCollisionShape position="-1472.0, 752.929, 2600.828" halfExtents="160.0, 437.275, 10.0" /> 127 <BoxCollisionShape position="-1322.0, 752.929, 2450.828" halfExtents="10.0, 437.275, 160.0" /> 128 <BoxCollisionShape position="-402.0, 1220.598, 603.512" halfExtents="1, 20.0, 1" />--> 129 <BoxCollisionShape position="-402.0, 564.133, -836.488" halfExtents="140.0, 676.465, 1300.0" /> 130 <BoxCollisionShape position="1080.0, 1792.286, -802.528" halfExtents="799.999, 620.0, 100.0" /> 131 <BoxCollisionShape position="180.0, 2392.286, -802.528" halfExtents="100.0, 20.0, 100.0" /> 132 <BoxCollisionShape position="176.0, 1174.082, 873.574" halfExtents="2239.999, 0.01, 2240.0" /> 133 <BoxCollisionShape position="-1020.0, 2362.286, 397.472" halfExtents="1600.0, 0.01, 1600.0" /> 134 <BoxCollisionShape position="0.0, -10, 0.0" halfExtents="2900.0, 0.01, 2900.0" /> 135 136 133 137 </collisionShapes> 138 </StaticEntity> 134 139 135 <StaticEntity position="0, 0, 0" collisionType = "none">136 <attached>137 <Model mesh =hover.mesh />138 </attached>139 <collisionShapes>140 <BoxCollisionShape position="-4.11, 0.95075, 11.86143" halfExtents="0.5, 0.5, 0" />141 <BoxCollisionShape position="-7.36, 12.25414, 5.95102" halfExtents="0.699995, 0.7, 0" />142 </collisionShapes>143 144 </StaticEntity>145 140 146 141 <Light … … 154 149 <SpawnPoint 155 150 team=0 156 position=" 4,10.1,0"157 lookat="10 0,20,100"151 position="0,0,0" 152 lookat="10,0,10" 158 153 spawnclass=HoverShip 159 154 pawndesign=spaceshiphover -
code/branches/Hover_FS18/src/modules/hover/CMakeLists.txt
r11495 r11909 2 2 Hover.cc 3 3 HoverShip.cc 4 HoverWall.cc5 4 HoverOrigin.cc 6 5 HoverFlag.cc 7 6 TimeHUD.cc 8 7 FlagHUD.cc 9 MazeGenerator.cc10 8 ) 11 9 -
code/branches/Hover_FS18/src/modules/hover/Hover.cc
r11495 r11909 35 35 36 36 #include "HoverOrigin.h" 37 #include "HoverWall.h"38 37 #include "HoverFlag.h" 39 #include "MazeGenerator.h"40 38 #include "core/CoreIncludes.h" 41 39 … … 59 57 SUPER(Hover, tick, dt); 60 58 61 if(this->firstTick_ && this->origin_)59 /*if(this->firstTick_ && this->origin_) 62 60 { 63 61 this->firstTick_ = false; 64 65 int numCells = this->origin_->getNumCells();66 int cellSize = this->origin_->getCellSize();67 int cellHeight = this->origin_->getCellHeight();68 69 MazeGenerator generator(numCells);70 generator.generateMaze();71 generator.renderMaze();72 73 int* levelcode = generator.getLevelcode();74 75 //Outer Walls76 for(int i = 0; i<numCells; i++){77 (new HoverWall(origin_->getContext()))->init(0, i+1, cellSize, cellHeight, 1);78 (new HoverWall(origin_->getContext()))->init(numCells, i+1, cellSize, cellHeight, 1);79 (new HoverWall(origin_->getContext()))->init(i+1, 0, cellSize, cellHeight, 2);80 (new HoverWall(origin_->getContext()))->init(i+1, numCells, cellSize, cellHeight, 2);81 }82 83 //Generate inner Walls according to levelcode84 for(int y=0; y<numCells; y++){85 for(int x=0; x<numCells; x++){86 switch(levelcode[ y * numCells + x ]){87 case 1: (new HoverWall(origin_->getContext()))->init(x+1, numCells-y, cellSize, cellHeight, 1);88 break;89 case 3: (new HoverWall(origin_->getContext()))->init(x+1, numCells-y, cellSize, cellHeight, 1);90 case 2: (new HoverWall(origin_->getContext()))->init(x+1, numCells-y, cellSize, cellHeight, 0);91 default: break;92 }93 }94 }95 62 96 63 //Generate 5 flags randomly … … 102 69 } 103 70 104 }//firsttick end 71 }//firsttick end*/ 105 72 106 73 // Check if ship collided with one of the flags 107 for ( unsigned int i = 0; i < flags_.size(); i++ ){74 /*for ( unsigned int i = 0; i < flags_.size(); i++ ){ 108 75 if(flags_[i]->getCollided()){ 109 76 flags_[i]->destroyLater(); … … 111 78 } 112 79 } 113 numberOfFlags_ = flags_.size(); 80 numberOfFlags_ = flags_.size();*/ 114 81 } 115 82 }
Note: See TracChangeset
for help on using the changeset viewer.