Changeset 6910
- Timestamp:
- 2015-07-22 11:48:27 (8 years ago)
- Location:
- 2015/30/EliasHu/RescueRanger
- Files:
-
- 41 added
- 1 deleted
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/30/EliasHu/RescueRanger/RescueRanger/RescueRanger/RescueRanger.cs
r6868 r6910 17 17 int kenttanumero = 1; 18 18 19 20 IntMeter pisteLaskuri2; 21 19 22 PlatformCharacter pelaaja1; 20 23 24 25 Image tukki = LoadImage("log"); 26 Image lehti = LoadImage("leaf"); 21 27 Image taustaKuva = LoadImage("america"); 22 28 Image pelaajanKuva = LoadImage("mediheli"); 23 29 Image tahtiKuva = LoadImage("tahti"); 30 Image elain = LoadImage("elain"); 31 Image ranger = LoadImage("ranger"); 24 32 25 33 SoundEffect maaliAani = LoadSoundEffect("maali"); … … 27 35 public override void Begin() 28 36 { 37 pisteLaskuri2 = new IntMeter(0); 29 38 aloitapeli(); 30 39 } … … 36 45 37 46 LuoPisteLaskuri(); 47 LuoPistelaskuri2(); 38 48 LuoKentta(); 39 49 LisaaNappaimet(); … … 50 60 TileMap kentta = TileMap.FromLevelAsset("kentta"+kenttanumero); 51 61 kentta.SetTileMethod('#', LisaaTaso); 62 kentta.SetTileMethod('i', LisaaTaso2); 52 63 kentta.SetTileMethod('*', LisaaElain); 53 64 kentta.SetTileMethod('=', LisaaTurva); 54 65 kentta.SetTileMethod('N', LisaaPelaaja); 55 66 kentta.SetTileMethod('t', LisaaMaali); 67 kentta.SetTileMethod('u', LisaaTalo); 68 kentta.SetTileMethod('r', LisaaRanger); 56 69 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 57 70 Level.CreateBorders(); … … 70 83 taso.Position = paikka; 71 84 taso.Color = Color.Green; 85 taso.Image = lehti; 72 86 taso.Tag = "Puu"; 73 87 Add(taso); 74 88 } 89 90 void LisaaTaso2(Vector paikka, double leveys, double korkeus) 91 { 92 GameObject taso2 = new GameObject(leveys, korkeus); 93 taso2.Position = paikka; 94 taso2.Image = lehti; 95 Add(taso2); 96 } 97 98 void LisaaRanger(Vector paikka, double leveys, double korkeus) 99 { 100 GameObject ranger = new GameObject(leveys, korkeus); 101 ranger.Position = paikka; 102 ranger.Image = ranger; 103 Add(ranger); 104 } 105 106 107 void LisaaTalo(Vector paikka, double leveys, double korkeus) 108 { 109 PhysicsObject talo = PhysicsObject.CreateStaticObject(leveys, korkeus); 110 talo.Position = paikka; 111 talo.Image = tukki; 112 talo.Tag = "Puu"; 113 Add(talo); 114 115 } 116 75 117 76 118 void LisaaTurva(Vector paikka, double leveys, double korkeus) … … 96 138 Elain.IgnoresCollisionResponse = true; 97 139 Elain.Position = paikka; 98 Elain.Image = tahtiKuva;140 Elain.Image = elain; 99 141 Elain.Tag = "Elain"; 100 142 Add(Elain); … … 155 197 if (pistelaskuri.Value == pistelaskuri.MaxValue) 156 198 { 199 157 200 kenttanumero++; 158 201 aloitapeli(); … … 161 204 void TormaaPuuhun(PhysicsObject hahmo, PhysicsObject Puu) 162 205 { 206 pisteLaskuri2.Value += 1; 163 207 aloitapeli(); 164 208 } 209 165 210 void LuoPisteLaskuri() 166 211 { 167 212 pistelaskuri = new IntMeter(0); 168 213 169 pisteNaytto = new Label( );214 pisteNaytto = new Label(""); 170 215 pisteNaytto.X = Screen.Left + 100; 171 216 pisteNaytto.Y = Screen.Top - 100; 172 217 pisteNaytto.TextColor = Color.Black; 173 218 pisteNaytto.Color = Color.White; 219 pisteNaytto.Title = "eläimet"; 174 220 175 221 pisteNaytto.BindTo(pistelaskuri); … … 177 223 } 178 224 179 180 225 void LuoPistelaskuri2() 226 { 227 228 229 Label pisteNaytto2 = new Label(); 230 pisteNaytto2.X = Screen.Right - 100; 231 pisteNaytto2.Y = Screen.Top - 100; 232 pisteNaytto2.TextColor = Color.Black; 233 pisteNaytto2.Color = Color.White; 234 pisteNaytto2.Title = "yritykset"; 235 pisteNaytto2.IntFormatString = ": {0:D3}"; 236 237 238 pisteNaytto2.BindTo(pisteLaskuri2); 239 Add(pisteNaytto2); 240 } 181 241 182 242 } -
2015/30/EliasHu/RescueRanger/RescueRanger/RescueRanger/RescueRanger.csproj.Debug.cachefile
r6868 r6910 9 9 Content\Junge.xnb 10 10 Content\america.xnb 11 Content\leaf.xnb 12 Content\log.xnb 13 Content\elain.xnb -
2015/30/EliasHu/RescueRanger/RescueRanger/RescueRanger/obj/x86/Debug/RescueRanger.csproj.FileListAbsolute.txt
r6868 r6910 17 17 C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\Junge.xnb 18 18 C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\america.xnb 19 C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\leaf.xnb 20 C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\log.xnb 21 C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\elain.xnb -
2015/30/EliasHu/RescueRanger/RescueRanger/RescueRanger/obj/x86/Debug/cachefile-{D77DA1D7-8701-41C1-98B2-08AF5C040485}-targetpath.txt
r6868 r6910 9 9 Content\Junge.xnb 10 10 Content\america.xnb 11 Content\leaf.xnb 12 Content\log.xnb 13 Content\elain.xnb 14 Content\ranger.xnb -
2015/30/EliasHu/RescueRanger/RescueRanger/RescueRangerContent/RescueRangerContent.contentproj
r6868 r6910 109 109 </Compile> 110 110 </ItemGroup> 111 <ItemGroup> 112 <Compile Include="leaf.png"> 113 <Name>leaf</Name> 114 <Importer>TextureImporter</Importer> 115 <Processor>TextureProcessor</Processor> 116 </Compile> 117 </ItemGroup> 118 <ItemGroup> 119 <Compile Include="log.png"> 120 <Name>log</Name> 121 <Importer>TextureImporter</Importer> 122 <Processor>TextureProcessor</Processor> 123 </Compile> 124 </ItemGroup> 125 <ItemGroup> 126 <Compile Include="elain.png"> 127 <Name>elain</Name> 128 <Importer>TextureImporter</Importer> 129 <Processor>TextureProcessor</Processor> 130 </Compile> 131 </ItemGroup> 132 <ItemGroup> 133 <Compile Include="ranger.png"> 134 <Name>ranger</Name> 135 <Importer>TextureImporter</Importer> 136 <Processor>TextureProcessor</Processor> 137 </Compile> 138 </ItemGroup> 111 139 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 112 140 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2015/30/EliasHu/RescueRanger/RescueRanger/RescueRangerContent/kentta1.txt
r6868 r6910 1 ###################### #########################2 ######## ######3 ###### #####4 #### ############# #####5 ## ############# ######### ####6 ## ############### ############## ####7 N ## ###################################### ###8 tttttttt # ## ############ ######## ##9 ## # #### #####10 ### #######11 ### ####* ###12 ### ####===== ####13 ##### ############14 ####### #### ###############15 ########################################################################## 1 ####################### ############# ########### 2 # ######## ###### 3 # ###### ##### 4 # #### ######### ##### ##### 5 # ## ##iiiiiiii### #iiiii### #### 6 # ## ###iiiiiiii#### ####iiiii##### #### 7 # N ## ###iiiiiiii#################iiiii##### ### 8 # tttttttt # ## ############ ##iiiii# ## 9 # ## # uuuu uuu # ## 10 # ### uuuu ### 11 # ### uuuu * ### 12 # ### uuuu ===== #### 13 # ##### uuuu ######## 14 # ####### uuuu uuu ############ 15 ########################################################################### -
2015/30/EliasHu/RescueRanger/RescueRanger/RescueRangerContent/obj/x86/Debug/ContentPipeline.xml
r6868 r6910 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\kentta1.xnb</Output> 38 <Time>2015-07-2 1T14:52:17.7882593+03:00</Time>38 <Time>2015-07-22T10:49:38.6544744+03:00</Time> 39 39 </Item> 40 40 <Item> … … 92 92 <Time>2015-07-21T14:45:48.2870249+03:00</Time> 93 93 </Item> 94 <Item> 95 <Source>leaf.png</Source> 96 <Name>leaf</Name> 97 <Importer>TextureImporter</Importer> 98 <Processor>TextureProcessor</Processor> 99 <Options>None</Options> 100 <Output>C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\leaf.xnb</Output> 101 <Time>2015-07-22T10:07:17.0513623+03:00</Time> 102 </Item> 103 <Item> 104 <Source>log.png</Source> 105 <Name>log</Name> 106 <Importer>TextureImporter</Importer> 107 <Processor>TextureProcessor</Processor> 108 <Options>None</Options> 109 <Output>C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\log.xnb</Output> 110 <Time>2015-07-22T10:16:44.5829617+03:00</Time> 111 </Item> 112 <Item> 113 <Source>elain.png</Source> 114 <Name>elain</Name> 115 <Importer>TextureImporter</Importer> 116 <Processor>TextureProcessor</Processor> 117 <Options>None</Options> 118 <Output>C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\elain.xnb</Output> 119 <Time>2015-07-22T11:25:07.7507875+03:00</Time> 120 </Item> 121 <Item> 122 <Source>ranger.png</Source> 123 <Name>ranger</Name> 124 <Importer>TextureImporter</Importer> 125 <Processor>TextureProcessor</Processor> 126 <Options>None</Options> 127 <Output>C:\MyTemp\EliasHu\RescueRanger\RescueRanger\RescueRanger\bin\x86\Debug\Content\ranger.xnb</Output> 128 <Time>2015-07-22T11:39:10.2631684+03:00</Time> 129 </Item> 94 130 <BuildSuccessful>true</BuildSuccessful> 95 131 <Settings>
Note: See TracChangeset
for help on using the changeset viewer.