Changeset 2608
- Timestamp:
- 2011-08-05 12:33:16 (11 years ago)
- Location:
- 2011/31/RobertJ/Miner/Miner
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/31/RobertJ/Miner/Miner/Miner/Peli.cs
r2586 r2608 27 27 28 28 PhysicsObject Miner; 29 Image olionKuva = LoadImage("player 1 version 3");29 Image olionKuva = LoadImage("player 1 version 4"); 30 30 Image[] KavelyKuvat = LoadImages("player 1", "player 1 frame2"); 31 31 … … 138 138 zombie.Position = paikka; 139 139 140 FollowerBrain seuraajanAivot = new FollowerBrain(Miner, 20);140 FollowerBrain seuraajanAivot = new FollowerBrain(Miner, 10); 141 141 seuraajanAivot.Target = Miner; 142 142 zombie.Brain = seuraajanAivot; … … 172 172 { 173 173 HorizontalLayout asettelu = new HorizontalLayout(); 174 asettelu.Spacing = 3;174 asettelu.Spacing = 10; 175 175 176 176 Widget sydamet = new Widget(asettelu); … … 180 180 Add(sydamet); 181 181 182 for (int i = 0; i < 3; i++)182 for (int i = 0; i < 10; i++) 183 183 { 184 184 Widget sydan = new Widget(30, 30, Shape.Heart); … … 268 268 if (inventory.inventlaskin(ironkuva) >= 3) 269 269 { 270 int poistettuja = 0; 271 while (poistettuja > 3) 272 { 273 if (inventory.Items[poistettuja].Image == ironkuva) 274 { 275 inventory.Items.Remove(inventory.Items[poistettuja]); 276 poistettuja++; 277 } 278 } 270 279 271 280 isoase = new AssaultRifle(20, 5); … … 282 291 Vihulainen k = (Vihulainen)kohde; 283 292 k.HP--; 284 if (k.HP < 1)293 if (k.HP < 0) 285 294 { 286 295 k.Destroy(); … … 331 340 void louzombierandompaikka() 332 341 { 333 int i = 500;342 int i = 1000; 334 343 bool valmis = false; 335 344 … … 373 382 class Inventory : Widget 374 383 { 375 List<Widget> Items = new List<Widget>();384 public List<Widget> Items = new List<Widget>(); 376 385 377 386 /// <summary> -
2011/31/RobertJ/Miner/Miner/MinerContent/MinerContent.contentproj
r2577 r2608 128 128 </Compile> 129 129 </ItemGroup> 130 <ItemGroup> 131 <Compile Include="player 1 version 4.png"> 132 <Name>player 1 version 4</Name> 133 <Importer>TextureImporter</Importer> 134 <Processor>TextureProcessor</Processor> 135 </Compile> 136 </ItemGroup> 130 137 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 131 138 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2011/31/RobertJ/Miner/Miner/MinerContent/kentaa.txt
r2565 r2608 2 2 * #* * * * * $ * * * ** ##### $ * * * * * * * T * * * * * * ** ** * * * * * * * * * * * * * * * * * * * * * * * * 3 3 ** * * ** * * * * $ * ## * * $ * * * * * * * * T $ * * * * * * T * * * * * # # # # ** * * * * * $ 4 * * * # # ** $ $$ * * * * T * * * * * * * * *4 T * * * # # ** $ $$ * * * * T * * * * * * * * * 5 5 * * $$ * * ** * * ## *** * * * * * * * * * * $$ # ** * * * $ * * * * * * * * $ 6 6 * * ### ## ** ** * * * * * * * * * * * * $$ # $$ 7 7 * * ## ** $ * * * * * * * * * * * * #### * * * * * * 8 8 ** $ ## ** $ z * * * * * * * * * * * * * * * * * * * * ### ## ** ** * * * * * * * * * * * * $$ # $$ 9 $$ $$ * * T## * * * *** * *9 $$ $$ * * ## * * * *** * * 10 10 * * ** ## ** P * * * $ * * * * * * * * $ T $ * * * * * * T * * * * * # # # # ** * * * * * $ 11 11 * * ### ## ** ** * * * * * * * * * * * * $$ # $$ 12 * * ## ** $ * * * * * * * * * * * * #### * * * * * *12 T * * ## ** $ * * * * * * * * * * * * #### * * * * * * 13 13 ** $ ## ** $ * * * * * * ** #### *** * * * 14 14 ** ## ** ** * * * * $ #### ##### **** *** * ** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 15 * * * # # ** $ $$ **** ***** *** * $ * * * * * * * * * * * * * * $ * * * * * * $ * * * * * * * * * * *15 * * * # # ** T $ $$ **** ***** *** * $ * * * * * * * * * * * * * * $ * * * * * * $ * * * * * * * * * * * 16 16 *** *** ### $$ ## ***** ** $$ ** *** * * * * *** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 17 17 ** ## ** $ ** ** ### * * * * ** ** * * * * * * * * *$$* * * * * * * * * * * * * * * * * * * * * * * * 18 18 *** * ****** ** ******** ** *** ****** * * * * ** * * * * * * * * * * * * * * * * * * * # * * * * # * * * * * * * * 19 ## $ ### *** * * ** * * * ## $$$ ## *** *** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *19 ## $ ### T *** * * ** * * * ## $$$ ## *** *** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 20 20 $$ *** ** * * * * * * # ** ** ##### ** T * $ * * T * * * * * * ** ** * * * * * * * * * * * * * * * * * * * * * * * * 21 21 =======================================================
Note: See TracChangeset
for help on using the changeset viewer.