Changeset 5419 for 2014/27/AnttoniS
- Timestamp:
- 2014-07-04 11:24:22 (9 years ago)
- Location:
- 2014/27/AnttoniS/weed hyppely
- Files:
-
- 12 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/27/AnttoniS/weed hyppely/weed hyppely/weed hyppely/obj/x86/Debug/ContentPipeline-{6C1DBC56-3E69-434E-B42D-2200CB27D36F}.xml
r5366 r5419 27 27 <Options>None</Options> 28 28 <Output>C:\MYTEMP\Anttoni S\weed hyppely\weed hyppely\weed hyppely\bin\x86\Debug\Content\kentta1.xnb</Output> 29 <Time>2014-07-0 3T13:05:53.3475391+03:00</Time>29 <Time>2014-07-04T11:04:33.0514955+03:00</Time> 30 30 </Item> 31 31 <Item> … … 218 218 <Output>C:\MYTEMP\Anttoni S\weed hyppely\weed hyppely\weed hyppely\bin\x86\Debug\Content\spiral2.xnb</Output> 219 219 <Time>2014-07-03T13:56:25.5808486+03:00</Time> 220 </Item> 221 <Item> 222 <Source>weed12.png</Source> 223 <Name>weed12</Name> 224 <Importer>TextureImporter</Importer> 225 <Processor>TextureProcessor</Processor> 226 <Options>None</Options> 227 <Output>C:\MYTEMP\Anttoni S\weed hyppely\weed hyppely\weed hyppely\bin\x86\Debug\Content\weed12.xnb</Output> 228 <Time>2014-07-04T09:12:21.6423579+03:00</Time> 229 </Item> 230 <Item> 231 <Source>kentta2.txt.txt</Source> 232 <Name>kentta2.txt</Name> 233 <Importer>TextFileImporter</Importer> 234 <Processor>TextFileContentProcessor</Processor> 235 <Options>None</Options> 236 <Output>C:\MYTEMP\Anttoni S\weed hyppely\weed hyppely\weed hyppely\bin\x86\Debug\Content\kentta2.txt.xnb</Output> 237 <Time>2014-07-04T10:25:21.7573896+03:00</Time> 238 </Item> 239 <Item> 240 <Source>forest.jpg</Source> 241 <Name>forest</Name> 242 <Importer>TextureImporter</Importer> 243 <Processor>TextureProcessor</Processor> 244 <Options>None</Options> 245 <Output>C:\MYTEMP\Anttoni S\weed hyppely\weed hyppely\weed hyppely\bin\x86\Debug\Content\forest.xnb</Output> 246 <Time>2014-07-04T10:48:15.8467848+03:00</Time> 247 </Item> 248 <Item> 249 <Source>tausta.jpg</Source> 250 <Name>tausta</Name> 251 <Importer>TextureImporter</Importer> 252 <Processor>TextureProcessor</Processor> 253 <Options>None</Options> 254 <Output>C:\MYTEMP\Anttoni S\weed hyppely\weed hyppely\weed hyppely\bin\x86\Debug\Content\tausta.xnb</Output> 255 <Time>2014-07-04T10:58:02.0553998+03:00</Time> 256 </Item> 257 <Item> 258 <Source>maa.jpg</Source> 259 <Name>maa</Name> 260 <Importer>TextureImporter</Importer> 261 <Processor>TextureProcessor</Processor> 262 <Options>None</Options> 263 <Output>C:\MYTEMP\Anttoni S\weed hyppely\weed hyppely\weed hyppely\bin\x86\Debug\Content\maa.xnb</Output> 264 <Time>2014-07-04T10:59:29.5551489+03:00</Time> 220 265 </Item> 221 266 <BuildSuccessful>true</BuildSuccessful> -
2014/27/AnttoniS/weed hyppely/weed hyppely/weed hyppely/obj/x86/Debug/cachefile-{6C1DBC56-3E69-434E-B42D-2200CB27D36F}-targetpath.txt
r5366 r5419 24 24 Content\spiral.xnb 25 25 Content\spiral2.xnb 26 Content\weed12.xnb 27 Content\kentta2.txt.xnb 28 Content\forest.xnb 29 Content\tausta.xnb 30 Content\maa.xnb -
2014/27/AnttoniS/weed hyppely/weed hyppely/weed hyppely/obj/x86/Debug/weed hyppely.csproj.FileListAbsolute.txt
r5366 r5419 32 32 C:\MYTEMP\Anttoni S\weed hyppely\weed hyppely\weed hyppely\bin\x86\Debug\Content\spiral.xnb 33 33 C:\MYTEMP\Anttoni S\weed hyppely\weed hyppely\weed hyppely\bin\x86\Debug\Content\spiral2.xnb 34 C:\MYTEMP\Anttoni S\weed hyppely\weed hyppely\weed hyppely\bin\x86\Debug\Content\weed12.xnb 35 C:\MYTEMP\Anttoni S\weed hyppely\weed hyppely\weed hyppely\bin\x86\Debug\Content\kentta2.txt.xnb 36 C:\MYTEMP\Anttoni S\weed hyppely\weed hyppely\weed hyppely\bin\x86\Debug\Content\forest.xnb 37 C:\MYTEMP\Anttoni S\weed hyppely\weed hyppely\weed hyppely\bin\x86\Debug\Content\tausta.xnb 38 C:\MYTEMP\Anttoni S\weed hyppely\weed hyppely\weed hyppely\bin\x86\Debug\Content\maa.xnb -
2014/27/AnttoniS/weed hyppely/weed hyppely/weed hyppely/weed hyppely.csproj.Debug.cachefile
r5366 r5419 23 23 Content\spiral.xnb 24 24 Content\spiral2.xnb 25 Content\weed12.xnb 26 Content\kentta2.txt.xnb 27 Content\forest.xnb 28 Content\tausta.xnb 29 Content\maa.xnb 25 30 Content\instrumental2.wma -
2014/27/AnttoniS/weed hyppely/weed hyppely/weed hyppely/weed_hyppely.cs
r5366 r5419 12 12 int pelaajanTerveys = 5; 13 13 const double nopeus = 200; 14 DoubleMeter voimaMittari; 14 15 const double hyppyNopeus = 750; 15 16 const int RUUDUN_KOKO = 40; … … 22 23 //Image jaa = LoadImage("spiral"); 23 24 Image tahtiKuva = LoadImage("bongo"); 25 Image maaKuva = LoadImage("maa"); 24 26 Image rajahdysKuva = LoadImage("Smoke"); 25 27 Image ammusKuva = LoadImage("jointti"); 26 28 AssaultRifle doggase; 27 28 DoubleMeter voimaMittari;29 30 31 29 SoundEffect maaliAani = LoadSoundEffect("smokeweed"); 30 Image taustaKuva = LoadImage("tausta"); 31 32 32 33 33 34 … … 48 49 Camera.Follow(weed1); 49 50 Camera.ZoomFactor = 1; 51 Level.Background.Image = taustaKuva; 50 52 Camera.StayInLevel = true; 51 53 … … 54 56 ajastin.Timeout += Ammu; 55 57 ajastin.Start(); 56 pelaaja1Elama = new DoubleMeter(100); 57 58 voimaMittari = new DoubleMeter(10); 59 voimaMittari.MaxValue = 10; 58 59 voimaMittari = new DoubleMeter(5); 60 voimaMittari.MaxValue = 5; 60 61 BarGauge voimaPalkki = new BarGauge(10, 150); 61 62 voimaPalkki.BindTo(voimaMittari); 63 voimaMittari.LowerLimit += delegate { ses(voimaMittari.Value); }; 62 64 Add(voimaPalkki); 63 65 … … 67 69 voimaPalkki.BorderColor = Color.White; 68 70 voimaPalkki.Angle = Angle.FromDegrees(90); 71 72 LuoPistelaskuri(); 69 73 } 70 74 … … 73 77 TileMap kentta = TileMap.FromLevelAsset("kentta1"); 74 78 kentta.SetTileMethod('#', LisaaTaso); 79 kentta.SetTileMethod('M', LisaaMaali); 75 80 kentta.SetTileMethod('*', LisaaTahti); 76 81 kentta.SetTileMethod('N', LisaaPelaaja); … … 78 83 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 79 84 Level.CreateBorders(); 80 Level.Background.CreateGradient(Color.White, Color.SkyBlue); 85 86 //Level.Background.CreateGradient(Color.White, Color.SkyBlue); 87 Level.Background.CreateStars(10000); 81 88 } 82 89 … … 86 93 taso.Position = paikka; 87 94 taso.Color = Color.Green; 95 taso.Image = maaKuva; 88 96 Add(taso); 89 97 } 98 99 100 void LisaaMaali(Vector paikka, double leveys, double korkeus) 101 { 102 PhysicsObject maali = PhysicsObject.CreateStaticObject(leveys, korkeus); 103 maali.Position = paikka; 104 maali.Color = Color.Red; 105 Add(maali); 106 maali.Tag = "M"; 107 } 108 109 110 90 111 91 112 void LisaaTahti(Vector paikka, double leveys, double korkeus) … … 110 131 AddCollisionHandler(weed1, "ammus", tormaanAmmus); 111 132 AddCollisionHandler(weed1, "tahti", PelaajaParantuu); 133 AddCollisionHandler(weed1, "tahti", Pisteet); 112 134 weed1.Animation = new Animation(ukkelinKavely); 113 135 weed1.Animation.Start(); … … 154 176 //maaliAani.Play(); 155 177 MessageDisplay.Add("Blaze it!"); 178 MessageDisplay.Color = Color.Transparent; 156 179 tahti.Destroy(); 157 180 int pMaxMaara = 200; … … 182 205 dogg.CanRotate = false; 183 206 dogg.Add(doggase); 184 FollowerBrain seuraajanAivot = new FollowerBrain(weed1);185 //dogg.Brain = seuraajanAivot;186 207 doggase.Angle += Angle.FromDegrees(180); 187 208 doggase.IsVisible = false; 188 seuraajanAivot.Speed = 200;189 209 } 190 210 … … 192 212 { 193 213 ammus.Destroy(); 194 maaliAani.Play(); 195 ExplosionSystem rajahdys = 196 new ExplosionSystem(LoadImage("weed"), 1000); 214 //maaliAani.Play(); 215 ExplosionSystem rajahdys = new ExplosionSystem(LoadImage("weed"), 1000); 197 216 Add(rajahdys); 198 217 double x = 0; … … 206 225 { 207 226 if (900 >= (doggase.Position - weed1.Position).Magnitude) 227 208 228 209 229 { … … 237 257 { 238 258 voimaMittari.Value--; 259 239 260 } 240 261 … … 243 264 voimaMittari.Value--; 244 265 245 if (pelaajanTerveys >= 0) weed1.Destroy(); 246 } 247 266 if (pelaajanTerveys <= 0) weed1.Destroy(); 267 268 } 269 270 void ses(double mittarinArvo) 271 { 272 weed1.Destroy(); 273 } 274 275 276 277 IntMeter pisteLaskuri; 278 void LuoPistelaskuri() 279 { 280 pisteLaskuri = new IntMeter(0); 281 282 Label pisteNaytto = new Label(); 283 pisteNaytto.X = Screen.Left + 100; 284 pisteNaytto.Y = Screen.Top - 100; 285 pisteNaytto.TextColor = Color.Black; 286 pisteNaytto.Color = Color.Transparent; 287 288 pisteNaytto.BindTo(pisteLaskuri); 289 Add(pisteNaytto); 290 pisteNaytto.BindTo(pisteLaskuri); 291 Add(pisteNaytto); 292 293 } 294 295 void Pisteet(PhysicsObject hahmo, PhysicsObject tahti) 296 { 297 pisteLaskuri.Value++; 298 } 248 299 249 300 } 250 301 302 -
2014/27/AnttoniS/weed hyppely/weed hyppely/weed hyppelyContent/kentta1.txt
r5366 r5419 6 6 7 7 8 S 9 N * ***8 S ### 9 N * ####* 10 10 ################################################### -
2014/27/AnttoniS/weed hyppely/weed hyppely/weed hyppelyContent/weed hyppelyContent.contentproj
r5366 r5419 139 139 </Compile> 140 140 </ItemGroup> 141 <ItemGroup> 142 <Compile Include="weed12.png"> 143 <Name>weed12</Name> 144 <Importer>TextureImporter</Importer> 145 <Processor>TextureProcessor</Processor> 146 </Compile> 147 </ItemGroup> 148 <ItemGroup> 149 <Compile Include="kentta2.txt.txt"> 150 <Name>kentta2.txt</Name> 151 <Importer>TextFileImporter</Importer> 152 <Processor>TextFileContentProcessor</Processor> 153 </Compile> 154 </ItemGroup> 155 <ItemGroup> 156 <Compile Include="forest.jpg"> 157 <Name>forest</Name> 158 <Importer>TextureImporter</Importer> 159 <Processor>TextureProcessor</Processor> 160 </Compile> 161 </ItemGroup> 162 <ItemGroup> 163 <Compile Include="tausta.jpg"> 164 <Name>tausta</Name> 165 <Importer>TextureImporter</Importer> 166 <Processor>TextureProcessor</Processor> 167 </Compile> 168 </ItemGroup> 169 <ItemGroup> 170 <Compile Include="maa.jpg"> 171 <Name>maa</Name> 172 <Importer>TextureImporter</Importer> 173 <Processor>TextureProcessor</Processor> 174 </Compile> 175 </ItemGroup> 141 176 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 142 177 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset
for help on using the changeset viewer.