Changeset 5619
- Timestamp:
- 2014-07-24 11:16:02 (9 years ago)
- Location:
- 2014/30/SimonG
- Files:
-
- 4 added
- 1 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/30/SimonG/OmaPeli2014/OmaPeli2014/OmaPeli2014/OmaPeli2014.cs
r5592 r5619 12 12 AssaultRifle PelaajanAse; 13 13 Timer aikaLaskuri; 14 14 Image PelaajaKuva = LoadImage("Pelaaja123"); 15 15 public override void Begin() 16 16 { … … 28 28 LuoAikaLaskuri(); 29 29 30 // TODO - Background (!!2d camo background) (minecraft grass block top!!) 31 // TODO - Alien Paint.Net 32 30 33 Level.CreateBorders (); 31 34 Camera.ZoomToLevel(); … … 42 45 43 46 Level.Background.Color = Color.DarkForestGreen; 44 45 // TODO: Kirjoita ohjelmakoodisi tähän46 47 47 48 PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); … … 61 62 MessageDisplay.Add("Hävisit"); 62 63 63 Explosion rajahdys = new Explosion( 1000);64 Explosion rajahdys = new Explosion(500); 64 65 rajahdys.Position = Pelaaja.Position; 65 66 Add(rajahdys); 66 rajahdys.Speed = 400.0;67 rajahdys.Force = 1000;67 rajahdys.Speed = 600.0; 68 rajahdys.Force = 500; 68 69 69 Timer.SingleShot( 4, AloitaPeli);70 Timer.SingleShot(2.5, AloitaPeli); 70 71 } 71 72 … … 87 88 { 88 89 Pelaaja = new PhysicsObject(60, 60); 89 Pelaaja.Shape = Shape.Circle;90 Pelaaja.Color = Color.Blue;91 90 Pelaaja.Tag = "Pelaaja"; 91 Pelaaja.Image = PelaajaKuva; 92 92 Add(Pelaaja); 93 93 Pelaaja.LinearDamping = 0.9; … … 99 99 PelaajanAse.AttackSound = null; 100 100 101 Mouse.Listen (MouseButton.Left, ButtonState. Pressed, AmmuAseella, "Ammu", PelaajanAse);101 Mouse.Listen (MouseButton.Left, ButtonState.Down, AmmuAseella, "Ammu", PelaajanAse); 102 102 103 103 Mouse.ListenMovement(0.0, Tahtaa, "Tähtää aseella"); … … 105 105 void LuoHyokkaaja() 106 106 { 107 for (int i = 0; i < 18; i++)107 for (int i = 0; i < 30; i++) 108 108 { 109 109 FollowerBrain SeuraajanAivot = new FollowerBrain("Pelaaja"); 110 110 SeuraajanAivot.Speed = 200; 111 111 SeuraajanAivot.DistanceFar = 8000; 112 SeuraajanAivot.DistanceClose = 5 6;112 SeuraajanAivot.DistanceClose = 55; 113 113 SeuraajanAivot.StopWhenTargetClose = false; 114 114 SeuraajanAivot.TargetClose += KunOllaanLahella; … … 150 150 PhysicsObject ammus = ase.Shoot(); 151 151 } 152 153 152 } -
2014/30/SimonG/OmaPeli2014/OmaPeli2014/OmaPeli2014/obj/x86/Debug/ContentPipeline-{BE2A82B7-4ED4-4853-BE88-99F6EE96FB2C}.xml
r5571 r5619 2 2 <XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 3 3 <Asset Type="Pipeline:BuildItemCollection"> 4 <Item> 5 <Source>Pelaaja123.png</Source> 6 <Name>Pelaaja123</Name> 7 <Importer>TextureImporter</Importer> 8 <Processor>TextureProcessor</Processor> 9 <Options>None</Options> 10 <Output>C:\MyTemp\SimonG\OmaPeli2014\OmaPeli2014\OmaPeli2014\bin\x86\Debug\Content\Pelaaja123.xnb</Output> 11 <Time>2014-07-24T10:54:26.4214196+03:00</Time> 12 </Item> 4 13 <BuildSuccessful>true</BuildSuccessful> 5 14 <Settings> … … 16 25 <Assemblies> 17 26 <Assembly> 27 <Key>C:\Program Files (x86)\Jypeli\lib\ContentExtensions\TextFileContentExtension.dll</Key> 28 <Value>2013-09-06T09:39:14+03:00</Value> 29 </Assembly> 30 <Assembly> 31 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 32 <Value>2011-09-01T16:22:30+03:00</Value> 33 </Assembly> 34 <Assembly> 35 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 36 <Value>2011-09-01T16:22:30+03:00</Value> 37 </Assembly> 38 <Assembly> 39 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 40 <Value>2011-09-01T16:22:30+03:00</Value> 41 </Assembly> 42 <Assembly> 43 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 44 <Value>2011-09-01T16:22:30+03:00</Value> 45 </Assembly> 46 <Assembly> 47 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 48 <Value>2011-09-01T16:22:30+03:00</Value> 49 </Assembly> 50 <Assembly> 51 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 52 <Value>2011-09-01T16:22:30+03:00</Value> 53 </Assembly> 54 <Assembly> 55 <Key>C:\Program Files (x86)\Jypeli\lib\ContentExtensions\AnimationExtension.dll</Key> 56 <Value>2013-09-06T09:39:16+03:00</Value> 57 </Assembly> 58 <Assembly> 18 59 <Key>C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 19 60 <Value>2014-04-22T21:32:12.354917+03:00</Value> -
2014/30/SimonG/OmaPeli2014/OmaPeli2014/OmaPeli2014/obj/x86/Debug/OmaPeli2014.csproj.FileListAbsolute.txt
r5571 r5619 7 7 C:\MyTemp\SimonG\OmaPeli2014\OmaPeli2014\OmaPeli2014\obj\x86\Debug\OmaPeli2014.exe 8 8 C:\MyTemp\SimonG\OmaPeli2014\OmaPeli2014\OmaPeli2014\obj\x86\Debug\OmaPeli2014.pdb 9 C:\MyTemp\SimonG\OmaPeli2014\OmaPeli2014\OmaPeli2014\bin\x86\Debug\Content\Pelaaja123.xnb -
2014/30/SimonG/OmaPeli2014/OmaPeli2014/OmaPeli2014Content/OmaPeli2014Content.contentproj
r5571 r5619 45 45 <Reference Include="AnimationExtension" /> 46 46 </ItemGroup> 47 <ItemGroup> 48 <Compile Include="Pelaaja123.png"> 49 <Name>Pelaaja123</Name> 50 <Importer>TextureImporter</Importer> 51 <Processor>TextureProcessor</Processor> 52 </Compile> 53 </ItemGroup> 47 54 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 48 55 <!-- 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.