Changeset 8613
- Timestamp:
- 2017-06-13 15:03:01 (6 years ago)
- Location:
- 2017/24/TomasM
- Files:
-
- 10 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/24/TomasM/SpaceInvanders/SpaceInvanders/SpaceInvanders/SpaceInvanders.cs
r8584 r8613 17 17 LuoPelaaja(); 18 18 LuoPahis(); 19 19 Asteroidit(); 20 20 Level.Background.Image = LoadImage ("tahtitaivas"); 21 21 Level.Background.Size = Screen.Size; 22 Level.CreateBorders();22 23 23 24 24 Keyboard.Listen(Key.Left, ButtonState.Down, LiikutaPelaajaa, null, new Vector(-1000, 0)); … … 27 27 Keyboard.Listen(Key.Down, ButtonState.Down, LiikutaPelaajaa, null, new Vector(0, -1000)); 28 28 29 30 31 29 Level.Width = Screen.Width; 30 Level.Height = Screen.Height; 31 Level.CreateBorders(); 32 32 33 33 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); … … 46 46 pelaaja = new PhysicsObject(75.0, 75.0); 47 47 pelaaja.Image = LoadImage("avaruusalus"); 48 AddCollisionHandler(pelaaja, "pahapoika", BOOM); 48 49 49 50 … … 58 59 } 59 60 60 61 void LuoPahis(Vector paikka) 61 void BOOM(PhysicsObject pelaaja, PhysicsObject pahis) 62 62 { 63 Pahis = new PhysicsObject(75.0, 75.0);64 65 63 66 64 67 65 } 66 void LuoPahis() 67 { 68 Pahis = new PhysicsObject(75.0, 75.0); 69 //Pahis.Tag "kelju"; 70 Add(Pahis); 71 Pahis.Image = LoadImage("ufokuva2"); 72 68 73 69 74 75 } 76 77 void Asteroidit() 78 { 79 PhysicsObject asteroidi = new PhysicsObject(100.0, 100.0); 80 asteroidi.Image = LoadImage("komeetta"); 81 asteroidi.X = 600.0; 82 asteroidi.Y = -300.0; 83 asteroidi.Tag = "pahapoika"; 84 Add(asteroidi); 85 86 } 70 87 71 88 } -
2017/24/TomasM/SpaceInvanders/SpaceInvanders/SpaceInvanders/SpaceInvanders.csproj.Debug.cachefile
r8567 r8613 4 4 Content\avaruusalusvasen.xnb 5 5 Content\tahtitaivas.xnb 6 Content\komeetta.xnb 7 Content\ufokuva2.xnb -
2017/24/TomasM/SpaceInvanders/SpaceInvanders/SpaceInvanders/obj/x86/Debug/ContentPipeline-{D89DCF55-38C9-4BD1-B73C-611D49CDD9D9}.xml
r8567 r8613 46 46 <Output>C:\MyTemp\TomasM\SpaceInvanders\SpaceInvanders\SpaceInvanders\bin\x86\Debug\Content\tahtitaivas.xnb</Output> 47 47 <Time>2017-06-13T11:47:38.7424669+03:00</Time> 48 </Item> 49 <Item> 50 <Source>komeetta.png</Source> 51 <Name>komeetta</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\MyTemp\TomasM\SpaceInvanders\SpaceInvanders\SpaceInvanders\bin\x86\Debug\Content\komeetta.xnb</Output> 56 <Time>2017-06-13T14:40:50.0097043+03:00</Time> 57 </Item> 58 <Item> 59 <Source>ufokuva2.png</Source> 60 <Name>ufokuva2</Name> 61 <Importer>TextureImporter</Importer> 62 <Processor>TextureProcessor</Processor> 63 <Options>None</Options> 64 <Output>C:\MyTemp\TomasM\SpaceInvanders\SpaceInvanders\SpaceInvanders\bin\x86\Debug\Content\ufokuva2.xnb</Output> 65 <Time>2017-06-13T14:41:59.3329305+03:00</Time> 48 66 </Item> 49 67 <BuildSuccessful>true</BuildSuccessful> -
2017/24/TomasM/SpaceInvanders/SpaceInvanders/SpaceInvanders/obj/x86/Debug/SpaceInvanders.csproj.FileListAbsolute.txt
r8567 r8613 12 12 C:\MyTemp\TomasM\SpaceInvanders\SpaceInvanders\SpaceInvanders\bin\x86\Debug\Content\avaruusalusvasen.xnb 13 13 C:\MyTemp\TomasM\SpaceInvanders\SpaceInvanders\SpaceInvanders\bin\x86\Debug\Content\tahtitaivas.xnb 14 C:\MyTemp\TomasM\SpaceInvanders\SpaceInvanders\SpaceInvanders\bin\x86\Debug\Content\ufokuva2.xnb 15 C:\MyTemp\TomasM\SpaceInvanders\SpaceInvanders\SpaceInvanders\bin\x86\Debug\Content\komeetta.xnb -
2017/24/TomasM/SpaceInvanders/SpaceInvanders/SpaceInvanders/obj/x86/Debug/cachefile-{D89DCF55-38C9-4BD1-B73C-611D49CDD9D9}-targetpath.txt
r8567 r8613 4 4 Content\avaruusalusvasen.xnb 5 5 Content\tahtitaivas.xnb 6 Content\komeetta.xnb 7 Content\ufokuva2.xnb -
2017/24/TomasM/SpaceInvanders/SpaceInvanders/SpaceInvandersContent/SpaceInvandersContent.contentproj
r8567 r8613 76 76 </Compile> 77 77 </ItemGroup> 78 <ItemGroup> 79 <Compile Include="komeetta.png"> 80 <Name>komeetta</Name> 81 <Importer>TextureImporter</Importer> 82 <Processor>TextureProcessor</Processor> 83 </Compile> 84 </ItemGroup> 85 <ItemGroup> 86 <Compile Include="ufokuva2.png"> 87 <Name>ufokuva2</Name> 88 <Importer>TextureImporter</Importer> 89 <Processor>TextureProcessor</Processor> 90 </Compile> 91 </ItemGroup> 78 92 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 79 93 <!-- 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.