- Timestamp:
- 2016-06-17 10:30:45 (7 years ago)
- Location:
- 2016/24/TaneliL/2016peli
- Files:
-
- 9 added
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
2016/24/TaneliL/2016peli/2016peli/2016peliContent/_2016peliContent.contentproj
r7397 r7408 46 46 </ItemGroup> 47 47 <ItemGroup> 48 <Compile Include="Kentta 2.png">49 <Name>Kentta 2</Name>48 <Compile Include="Kentta1.png"> 49 <Name>Kentta1</Name> 50 50 <Importer>TextureImporter</Importer> 51 51 <Processor>TextureProcessor</Processor> … … 53 53 </ItemGroup> 54 54 <ItemGroup> 55 <Compile Include="Kentta1.png"> 56 <Name>Kentta1</Name> 55 <Compile Include="Kivi.png"> 56 <Name>Kivi</Name> 57 <Importer>TextureImporter</Importer> 58 <Processor>TextureProcessor</Processor> 59 </Compile> 60 </ItemGroup> 61 <ItemGroup> 62 <Compile Include="Kentta2.png"> 63 <Name>Kentta2</Name> 57 64 <Importer>TextureImporter</Importer> 58 65 <Processor>TextureProcessor</Processor> … … 67 74 </ItemGroup> 68 75 <ItemGroup> 69 <Compile Include="Kivi.png"> 70 <Name>Kivi</Name> 76 <Compile Include="Kentta4.png"> 77 <Name>Kentta4</Name> 78 <Importer>TextureImporter</Importer> 79 <Processor>TextureProcessor</Processor> 80 </Compile> 81 </ItemGroup> 82 <ItemGroup> 83 <Compile Include="pelaaja.png"> 84 <Name>pelaaja</Name> 85 <Importer>TextureImporter</Importer> 86 <Processor>TextureProcessor</Processor> 87 </Compile> 88 </ItemGroup> 89 <ItemGroup> 90 <Compile Include="vihu.png"> 91 <Name>vihu</Name> 71 92 <Importer>TextureImporter</Importer> 72 93 <Processor>TextureProcessor</Processor> -
2016/24/TaneliL/2016peli/2016peli/_2016peli/_2016peli.cs
r7397 r7408 13 13 14 14 Image Kivi = LoadImage("Kivi"); 15 Image Pelaaja = LoadImage("pelaaja"); 16 Image Vihu = LoadImage("vihu"); 15 17 16 18 IntMeter pisteLaskuri = new IntMeter(0); … … 42 44 pelaaja = new PhysicsObject(50, 50); 43 45 pelaaja.Shape = Shape.Rectangle; 46 pelaaja.Image = Pelaaja; 44 47 pelaaja.Tag = "pelaaja"; 45 48 pelaaja.MaxVelocity = 100; 46 pelaaja.Y = - 270;49 pelaaja.Y = -320; 47 50 pelaaja.CanRotate = false; 48 51 AddCollisionHandler(pelaaja, pelaajaaOsui); … … 67 70 ruudut.Execute(30, 30); 68 71 72 Level.BackgroundColor = Color.Black; 73 69 74 Mouse.IsCursorVisible = true; 70 75 } … … 77 82 else if (kenttaNro == 2) luoMaailma("Kentta2"); 78 83 else if (kenttaNro == 3) luoMaailma("Kentta3"); 84 else if (kenttaNro == 4) luoMaailma("Kentta4"); 79 85 luoPelaaja(); 80 86 //luoAjastin(); … … 107 113 } 108 114 109 else if (pisteLaskuri == 1300)115 else if (pisteLaskuri == 2000) 110 116 { 111 117 kenttaNro.Value = 3; 118 seuraavaKentta(); 119 } 120 121 else if (pisteLaskuri == 3900) 122 { 123 kenttaNro.Value = 4; 112 124 seuraavaKentta(); 113 125 } … … 130 142 Keyboard.Listen(Key.A, ButtonState.Down, liikkuminen, null, new Vector(-100, 0)); 131 143 Keyboard.Listen(Key.D, ButtonState.Down, liikkuminen, null, new Vector(100, 0)); 132 Keyboard.Listen(Key.Space, ButtonState.Pressed, lisaaPisteita, null);144 //Keyboard.Listen(Key.Space, ButtonState.Pressed, lisaaPisteita, null); 133 145 Mouse.Listen(MouseButton.Left, ButtonState.Down, ammu, "", pelaajanAse); 134 146 Mouse.ListenMovement(0.1, tahtaa, ""); … … 152 164 void luoEste(Vector paikka, double leveys, double korkeus) 153 165 { 154 este = PhysicsObject.CreateStaticObject(3 0, 30);166 este = PhysicsObject.CreateStaticObject(35, 35); 155 167 este.Position = paikka; 156 168 este.Image = Kivi; … … 161 173 void luoVihu(Vector paikka, double leveys, double korkeus) 162 174 { 163 vihu = new PhysicsObject(3 0, 30);175 vihu = new PhysicsObject(35, 35); 164 176 vihu.Position = paikka; 177 vihu.Image = Vihu; 165 178 vihu.Tag = "vihu"; 166 179 AddCollisionHandler(vihu, "pelaaja", pelaajaaOsui); … … 180 193 pommi.Position = paikka; 181 194 pommi.Color = Color.Green; 182 //pommi.IsVisible = false;195 pommi.IsVisible = false; 183 196 pommi.Tag = "pommi"; 184 197 Add(pommi); -
2016/24/TaneliL/2016peli/2016peli/_2016peli/_2016peli.csproj.Debug.cachefile
r7397 r7408 3 3 Content\Kentta3.xnb 4 4 Content\Kivi.xnb 5 Content\Kentta4.xnb 6 Content\pelaaja.xnb 7 Content\vihu.xnb -
2016/24/TaneliL/2016peli/2016peli/_2016peli/obj/x86/Debug/ContentPipeline-{0D4F2033-685B-4930-A22D-603ABE9F6C9A}.xml
r7397 r7408 9 9 <Options>None</Options> 10 10 <Output>C:\tmp\TaneliL\2016peli\2016peli\_2016peli\bin\x86\Debug\Content\Kentta2.xnb</Output> 11 <Time>2016-06-1 5T11:15:02.6048584+03:00</Time>11 <Time>2016-06-16T21:55:32.8920526+03:00</Time> 12 12 </Item> 13 13 <Item> … … 27 27 <Options>None</Options> 28 28 <Output>C:\tmp\TaneliL\2016peli\2016peli\_2016peli\bin\x86\Debug\Content\Kentta3.xnb</Output> 29 <Time>2016-06-1 6T09:46:26.1023235+03:00</Time>29 <Time>2016-06-17T09:25:25.9063544+03:00</Time> 30 30 </Item> 31 31 <Item> … … 37 37 <Output>C:\tmp\TaneliL\2016peli\2016peli\_2016peli\bin\x86\Debug\Content\Kivi.xnb</Output> 38 38 <Time>2016-06-16T19:29:29.6561672+03:00</Time> 39 </Item> 40 <Item> 41 <Source>Kentta4.png</Source> 42 <Name>Kentta4</Name> 43 <Importer>TextureImporter</Importer> 44 <Processor>TextureProcessor</Processor> 45 <Options>None</Options> 46 <Output>C:\tmp\TaneliL\2016peli\2016peli\_2016peli\bin\x86\Debug\Content\Kentta4.xnb</Output> 47 <Time>2016-06-17T09:28:23.9889259+03:00</Time> 48 </Item> 49 <Item> 50 <Source>pelaaja.png</Source> 51 <Name>pelaaja</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\tmp\TaneliL\2016peli\2016peli\_2016peli\bin\x86\Debug\Content\pelaaja.xnb</Output> 56 <Time>2016-06-17T09:43:11.8392856+03:00</Time> 57 </Item> 58 <Item> 59 <Source>vihu.png</Source> 60 <Name>vihu</Name> 61 <Importer>TextureImporter</Importer> 62 <Processor>TextureProcessor</Processor> 63 <Options>None</Options> 64 <Output>C:\tmp\TaneliL\2016peli\2016peli\_2016peli\bin\x86\Debug\Content\vihu.xnb</Output> 65 <Time>2016-06-17T09:48:22.6246841+03:00</Time> 39 66 </Item> 40 67 <BuildSuccessful>true</BuildSuccessful> -
2016/24/TaneliL/2016peli/2016peli/_2016peli/obj/x86/Debug/_2016peli.csproj.FileListAbsolute.txt
r7397 r7408 22 22 C:\tmp\TaneliL\2016peli\2016peli\_2016peli\obj\x86\Debug\_2016peli.pdb 23 23 C:\tmp\TaneliL\2016peli\2016peli\_2016peli\bin\x86\Debug\Content\Kivi.xnb 24 C:\tmp\TaneliL\2016peli\2016peli\_2016peli\bin\x86\Debug\Content\Kentta4.xnb 25 C:\tmp\TaneliL\2016peli\2016peli\_2016peli\bin\x86\Debug\Content\pelaaja.xnb 26 C:\tmp\TaneliL\2016peli\2016peli\_2016peli\bin\x86\Debug\Content\vihu.xnb -
2016/24/TaneliL/2016peli/2016peli/_2016peli/obj/x86/Debug/cachefile-{0D4F2033-685B-4930-A22D-603ABE9F6C9A}-targetpath.txt
r7397 r7408 3 3 Content\Kentta3.xnb 4 4 Content\Kivi.xnb 5 Content\Kentta4.xnb 6 Content\pelaaja.xnb 7 Content\vihu.xnb
Note: See TracChangeset
for help on using the changeset viewer.