Changeset 8530
- Timestamp:
- 2017-06-12 14:58:36 (6 years ago)
- Location:
- 2017/24/ValtteriM/BallTag
- Files:
-
- 3 added
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/24/ValtteriM/BallTag/BallTag/BallTag/BallTag.cs
r8495 r8530 12 12 Image olionKuva = LoadImage("naapurileikattu"); 13 13 14 PlatformCharacter bonnie; 15 Image olionKuva2 = LoadImage("bonnie"); 14 16 public override void Begin() 15 17 { … … 17 19 luokentta(); 18 20 luohamo(); 21 luohamo2(); 19 22 20 23 PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 21 24 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 22 25 23 Keyboard.Listen(Key.L,ButtonState.Down, Liikuoikealle, "Liikuoikealle"); 26 Keyboard.Listen(Key.L, ButtonState.Down, Liikuoikealle, "Liikuoikealle",naapuri); 27 Keyboard.Listen(Key.J, ButtonState.Down, Liikuvasemmalle, "Liikuvasemmalle",naapuri); 28 Keyboard.Listen(Key.I, ButtonState.Pressed, hyppaa, "hyppaa",naapuri); 24 29 30 Keyboard.Listen(Key.D, ButtonState.Down, Liikuoikealle, "Liikuoikealle",bonnie); 31 Keyboard.Listen(Key.A, ButtonState.Down, Liikuvasemmalle, "Liikuvasemmalle",bonnie); 32 Keyboard.Listen(Key.W, ButtonState.Pressed, hyppaa, "hyppaa",bonnie); 25 33 26 34 … … 28 36 29 37 } 30 void Liikuoikealle( )38 void Liikuoikealle(PlatformCharacter hamo) 31 39 { 32 naapuri.Walk(500.0); 40 hamo.Walk(500.0); 41 } 42 void Liikuvasemmalle(PlatformCharacter hamo) 43 { 44 hamo.Walk(-500.0); 45 46 } 47 void hyppaa(PlatformCharacter hamo) 48 { 49 hamo.Jump(750.0); 33 50 } 34 51 35 52 void luokentta() 36 53 { 37 TileMap ruudut = TileMap.FromLevelAsset("kentta1");54 TileMap ruudut = TileMap.FromLevelAsset("kentta1"); 38 55 ruudut.SetTileMethod('#', LuoPalikka); 39 56 … … 52 69 void luohamo() 53 70 { 54 naapuri = new PlatformCharacter( 100, 100);71 naapuri = new PlatformCharacter(70, 70); 55 72 naapuri.Image = olionKuva; 56 73 Add(naapuri); 57 74 } 58 75 76 77 void luohamo2() 78 { 79 bonnie = new PlatformCharacter(70, 70); 80 bonnie.Image = olionKuva2; 81 Add(bonnie); 82 83 84 } 85 86 } 87 88 89 59 90 60 } -
2017/24/ValtteriM/BallTag/BallTag/BallTag/BallTag.csproj.Debug.cachefile
r8495 r8530 1 1 Content\naapurileikattu.xnb 2 2 Content\kentta1.xnb 3 Content\bonnie.xnb 3 4 Content\kentta1.txt -
2017/24/ValtteriM/BallTag/BallTag/BallTag/bin/x86/Debug/Content/kentta1.txt
r8495 r8530 7 7 #....................# 8 8 #....................# 9 #.............####...# 10 #.....##......#..#...# 11 #...........##....#..# 9 12 #....................# 10 #...... I.............#13 #....................# 11 14 ###################### -
2017/24/ValtteriM/BallTag/BallTag/BallTag/obj/x86/Debug/BallTag.csproj.FileListAbsolute.txt
r8495 r8530 10 10 C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\kentta1.xnb 11 11 C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\kentta1.txt 12 C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\bonnie.xnb -
2017/24/ValtteriM/BallTag/BallTag/BallTag/obj/x86/Debug/ContentPipeline-{136D9D65-D806-4D90-A790-28D798B0E25A}.xml
r8495 r8530 9 9 <Options>None</Options> 10 10 <Output>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapurileikattu.xnb</Output> 11 <Time>2017-06-12T1 0:34:22.7594918+03:00</Time>11 <Time>2017-06-12T14:51:25.6694219+03:00</Time> 12 12 </Item> 13 13 <Item> … … 18 18 <Options>None</Options> 19 19 <Output>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\kentta1.xnb</Output> 20 <Time>2017-06-12T11:49:26.3256536+03:00</Time> 20 <Time>2017-06-12T13:35:46.0163612+03:00</Time> 21 </Item> 22 <Item> 23 <Source>bonnie.png</Source> 24 <Name>bonnie</Name> 25 <Importer>TextureImporter</Importer> 26 <Processor>TextureProcessor</Processor> 27 <Options>None</Options> 28 <Output>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\bonnie.xnb</Output> 29 <Time>2017-06-12T14:51:21.6294484+03:00</Time> 21 30 </Item> 22 31 <BuildSuccessful>true</BuildSuccessful> -
2017/24/ValtteriM/BallTag/BallTag/BallTag/obj/x86/Debug/cachefile-{136D9D65-D806-4D90-A790-28D798B0E25A}-targetpath.txt
r8495 r8530 1 1 Content\naapurileikattu.xnb 2 2 Content\kentta1.xnb 3 Content\bonnie.xnb 3 4 Content\kentta1.txt -
2017/24/ValtteriM/BallTag/BallTag/BallTagContent/BallTagContent.contentproj
r8495 r8530 46 46 </ItemGroup> 47 47 <ItemGroup> 48 <Compile Include="naapurileikattu .png"> 49 <Name>naapurileikattu</Name> 48 <Compile Include="kentta1.txt"> 49 <Name>kentta1</Name> 50 <Importer>TextFileImporter</Importer> 51 <Processor>TextFileContentProcessor</Processor> 52 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 53 </Compile> 54 </ItemGroup> 55 <ItemGroup> 56 <Compile Include="bonnie.png"> 57 <Name>bonnie</Name> 50 58 <Importer>TextureImporter</Importer> 51 59 <Processor>TextureProcessor</Processor> … … 53 61 </ItemGroup> 54 62 <ItemGroup> 55 <Compile Include="kentta1.txt"> 56 <Name>kentta1</Name> 57 <Importer>TextFileImporter</Importer> 58 <Processor>TextFileContentProcessor</Processor> 59 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 63 <Compile Include="naapurileikattu .png"> 64 <Name>naapurileikattu</Name> 65 <Importer>TextureImporter</Importer> 66 <Processor>TextureProcessor</Processor> 60 67 </Compile> 61 68 </ItemGroup> -
2017/24/ValtteriM/BallTag/BallTag/BallTagContent/kentta1.txt
r8495 r8530 7 7 #....................# 8 8 #....................# 9 #.............####...# 10 #.....##......#..#...# 11 #...........##....#..# 9 12 #....................# 10 #...... I.............#13 #....................# 11 14 ######################
Note: See TracChangeset
for help on using the changeset viewer.