- Timestamp:
- 2017-06-13 14:56:33 (6 years ago)
- Location:
- 2017/24/ValtteriM/BallTag
- Files:
-
- 39 added
- 3 deleted
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/24/ValtteriM/BallTag/BallTag/BallTag/BallTag.cs
r8530 r8601 14 14 PlatformCharacter bonnie; 15 15 Image olionKuva2 = LoadImage("bonnie"); 16 17 PlatformCharacter mei1; 18 Image olionKuva3 = LoadImage("mei1"); 19 20 PlatformCharacter pika3; 21 Image olionKuva4 = LoadImage("pika3"); 22 Image tas = LoadImage("office"); 23 private Image[] naapuriKavely = LoadImages("naapurileikattu1", "naapurileikattu2", "naapurileikattu3"); 24 private Image[] bonnieKavely = LoadImages("bonnie1", "bonnie2", "bonnie3"); 25 //Animation liike = 16 26 public override void Begin() 17 27 { 18 28 Gravity = new Vector(500.0, -500.0); 19 29 luokentta(); 30 Level.Background.Image = tas; 20 31 luohamo(); 21 32 luohamo2(); 33 luohamo3(); 34 luohamo4(); 35 naapuri.CollisionIgnoreGroup = 1; 36 bonnie.CollisionIgnoreGroup = 1; 37 mei1.CollisionIgnoreGroup = 1; 38 pika3.CollisionIgnoreGroup = 1; 22 39 23 40 PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 24 41 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 25 42 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); 43 Keyboard.Listen(Key.L, ButtonState.Down, Liikuoikealle, "Liikuoikealle", naapuri); 44 Keyboard.Listen(Key.L, ButtonState.Released, Pysayta, "Liikuoikealle", naapuri); 45 Keyboard.Listen(Key.J, ButtonState.Down, Liikuvasemmalle, "Liikuvasemmalle", naapuri); 46 Keyboard.Listen(Key.J, ButtonState.Released, Pysayta, "Liikuvasemmalle", naapuri); 47 Keyboard.Listen(Key.I, ButtonState.Pressed, hyppaa, "hyppaa", naapuri); 29 48 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);49 Keyboard.Listen(Key.D, ButtonState.Down, Liikuoikealle, "Liikuoikealle", bonnie); 50 Keyboard.Listen(Key.A, ButtonState.Down, Liikuvasemmalle, "Liikuvasemmalle", bonnie); 51 Keyboard.Listen(Key.W, ButtonState.Pressed, hyppaa, "hyppaa", bonnie); 33 52 53 Keyboard.Listen(Key.NumPad6, ButtonState.Down, Liikuoikealle, "Liikuoikealle", mei1); 54 Keyboard.Listen(Key.NumPad4, ButtonState.Down, Liikuvasemmalle, "Liikuvasemmalle", mei1); 55 Keyboard.Listen(Key.NumPad8, ButtonState.Pressed, hyppaa, "hyppaa", mei1); 34 56 35 36 57 Keyboard.Listen(Key.Right, ButtonState.Down, Liikuoikealle, "Liikuoikealle", pika3); 58 Keyboard.Listen(Key.Left, ButtonState.Down, Liikuvasemmalle, "Liikuvasemmalle", pika3); 59 Keyboard.Listen(Key.Up, ButtonState.Pressed, hyppaa, "hyppaa", pika3); 37 60 } 38 61 void Liikuoikealle(PlatformCharacter hamo) 39 62 { 63 // hamo.AnimWalk.Start(); 64 40 65 hamo.Walk(500.0); 66 67 68 69 if (hamo.Tag.Equals("naapuri")) 70 { 71 hamo.AnimWalk.Resume(); 72 } 41 73 } 42 void Liikuvasemmalle(PlatformCharacter hamo) 74 void Pysayta(PlatformCharacter hamo) 75 { 76 hamo.AnimWalk.Pause(); 77 } 78 79 void Liikuvasemmalle(PlatformCharacter hamo) 43 80 { 44 81 hamo.Walk(-500.0); 45 82 hamo.AnimWalk.Resume(); 83 46 84 } 47 85 void hyppaa(PlatformCharacter hamo) … … 71 109 naapuri = new PlatformCharacter(70, 70); 72 110 naapuri.Image = olionKuva; 111 naapuri.Tag = "naapuri"; 112 naapuri.AnimWalk = new Animation(naapuriKavely); 113 //naapuri.Animation = new Animation(naapuriKavely); 114 //naapuri.Animation.Start(); 73 115 Add(naapuri); 74 116 } … … 79 121 bonnie = new PlatformCharacter(70, 70); 80 122 bonnie.Image = olionKuva2; 123 bonnie.Tag = "bonnie"; 124 bonnie.AnimWalk = new Animation(bonnieKavely); 81 125 Add(bonnie); 126 127 128 } 129 void luohamo3() 130 { 131 mei1 = new PlatformCharacter(70, 70); 132 mei1.Image = olionKuva3; 133 Add(mei1); 134 135 136 } 137 void luohamo4() 138 { 139 pika3 = new PlatformCharacter(70, 70); 140 pika3.Image = olionKuva4; 141 Add(pika3); 82 142 83 143 … … 85 145 86 146 } 87 88 147 89 90 148 149 150 151 152 153 -
2017/24/ValtteriM/BallTag/BallTag/BallTag/BallTag.csproj.Debug.cachefile
r8530 r8601 1 Content\naapurileikattu.xnb2 1 Content\kentta1.xnb 3 2 Content\bonnie.xnb 3 Content\mei1.xnb 4 Content\pika3.xnb 5 Content\naapurileikattu.xnb 6 Content\naapurileikattu1.xnb 7 Content\naapurileikattu2.xnb 8 Content\naapurileikattu3.xnb 9 Content\office.xnb 10 Content\bonnie1.xnb 11 Content\bonnie2.xnb 12 Content\bonnie3.xnb 13 Content\naapuri.xnb 14 Content\naapuri\naapurileikattu1_0.xnb 15 Content\naapuri\naapurileikattu2_0.xnb 16 Content\naapuri\naapurileikattu3_0.xnb 4 17 Content\kentta1.txt -
2017/24/ValtteriM/BallTag/BallTag/BallTag/obj/x86/Debug/BallTag.csproj.FileListAbsolute.txt
r8530 r8601 11 11 C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\kentta1.txt 12 12 C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\bonnie.xnb 13 C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\mei1.xnb 14 C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\pika3.xnb 15 C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapuri.xnb 16 C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapuri\naapurileikattu1_0.xnb 17 C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapuri\naapurileikattu2_0.xnb 18 C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapuri\naapurileikattu3_0.xnb 19 C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapurileikattu1.xnb 20 C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapurileikattu2.xnb 21 C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapurileikattu3.xnb 22 C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\office.xnb 23 C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\bonnie1.xnb 24 C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\bonnie2.xnb 25 C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\bonnie3.xnb -
2017/24/ValtteriM/BallTag/BallTag/BallTag/obj/x86/Debug/ContentPipeline-{136D9D65-D806-4D90-A790-28D798B0E25A}.xml
r8530 r8601 2 2 <XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 3 3 <Asset Type="Pipeline:BuildItemCollection"> 4 <Item>5 <Source>naapurileikattu .png</Source>6 <Name>naapurileikattu</Name>7 <Importer>TextureImporter</Importer>8 <Processor>TextureProcessor</Processor>9 <Options>None</Options>10 <Output>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapurileikattu.xnb</Output>11 <Time>2017-06-12T14:51:25.6694219+03:00</Time>12 </Item>13 4 <Item> 14 5 <Source>kentta1.txt</Source> … … 18 9 <Options>None</Options> 19 10 <Output>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\kentta1.xnb</Output> 20 <Time>2017-06-1 2T13:35:46.0163612+03:00</Time>11 <Time>2017-06-13T09:47:30.5388563+03:00</Time> 21 12 </Item> 22 13 <Item> … … 27 18 <Options>None</Options> 28 19 <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> 20 <Time>2017-06-13T09:47:30.7263578+03:00</Time> 21 </Item> 22 <Item> 23 <Source>mei1.png</Source> 24 <Name>mei1</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\mei1.xnb</Output> 29 <Time>2017-06-13T10:20:28.0219941+03:00</Time> 30 </Item> 31 <Item> 32 <Source>pika3.png</Source> 33 <Name>pika3</Name> 34 <Importer>TextureImporter</Importer> 35 <Processor>TextureProcessor</Processor> 36 <Options>None</Options> 37 <Output>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\pika3.xnb</Output> 38 <Time>2017-06-13T11:14:25.2160465+03:00</Time> 39 </Item> 40 <Item> 41 <Source>naapurileikattu.png</Source> 42 <Name>naapurileikattu</Name> 43 <Importer>TextureImporter</Importer> 44 <Processor>TextureProcessor</Processor> 45 <Options>None</Options> 46 <Output>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapurileikattu.xnb</Output> 47 <Time>2017-06-13T11:17:07.7802263+03:00</Time> 48 </Item> 49 <Item> 50 <Source>naapurileikattu1.png</Source> 51 <Name>naapurileikattu1</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapurileikattu1.xnb</Output> 56 <Time>2017-06-13T12:57:02.6145664+03:00</Time> 57 </Item> 58 <Item> 59 <Source>naapurileikattu2.png</Source> 60 <Name>naapurileikattu2</Name> 61 <Importer>TextureImporter</Importer> 62 <Processor>TextureProcessor</Processor> 63 <Options>None</Options> 64 <Output>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapurileikattu2.xnb</Output> 65 <Time>2017-06-13T12:57:02.6165674+03:00</Time> 66 </Item> 67 <Item> 68 <Source>naapurileikattu3.png</Source> 69 <Name>naapurileikattu3</Name> 70 <Importer>TextureImporter</Importer> 71 <Processor>TextureProcessor</Processor> 72 <Options>None</Options> 73 <Output>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapurileikattu3.xnb</Output> 74 <Time>2017-06-13T12:57:02.6185671+03:00</Time> 75 </Item> 76 <Item> 77 <Source>office.png</Source> 78 <Name>office</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 <Options>None</Options> 82 <Output>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\office.xnb</Output> 83 <Time>2017-06-13T14:22:16.6964489+03:00</Time> 84 </Item> 85 <Item> 86 <Source>bonnie1.png</Source> 87 <Name>bonnie1</Name> 88 <Importer>TextureImporter</Importer> 89 <Processor>TextureProcessor</Processor> 90 <Options>None</Options> 91 <Output>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\bonnie1.xnb</Output> 92 <Time>2017-06-13T14:49:49.7383489+03:00</Time> 93 </Item> 94 <Item> 95 <Source>bonnie2.png</Source> 96 <Name>bonnie2</Name> 97 <Importer>TextureImporter</Importer> 98 <Processor>TextureProcessor</Processor> 99 <Options>None</Options> 100 <Output>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\bonnie2.xnb</Output> 101 <Time>2017-06-13T14:49:49.7413478+03:00</Time> 102 </Item> 103 <Item> 104 <Source>bonnie3.png</Source> 105 <Name>bonnie3</Name> 106 <Importer>TextureImporter</Importer> 107 <Processor>TextureProcessor</Processor> 108 <Options>None</Options> 109 <Output>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\bonnie3.xnb</Output> 110 <Time>2017-06-13T14:49:49.744347+03:00</Time> 111 </Item> 112 <Item> 113 <Source>naapuri.anim</Source> 114 <Name>naapuri</Name> 115 <Importer>AnimationImporter</Importer> 116 <Processor>AnimationContentProcessor</Processor> 117 <Options>None</Options> 118 <Output>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapuri.xnb</Output> 119 <Time>2017-06-13T12:41:01.3729743+03:00</Time> 120 <Request>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapuri\naapurileikattu1_0.xnb</Request> 121 <Request>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapuri\naapurileikattu2_0.xnb</Request> 122 <Request>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapuri\naapurileikattu3_0.xnb</Request> 123 </Item> 124 <Item> 125 <Source>naapuri\naapurileikattu1.png</Source> 126 <Importer>TextureImporter</Importer> 127 <Processor>TextureProcessor</Processor> 128 <Options>None</Options> 129 <Output>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapuri\naapurileikattu1_0.xnb</Output> 130 <Time>2017-06-13T12:41:10.1472613+03:00</Time> 131 </Item> 132 <Item> 133 <Source>naapuri\naapurileikattu2.png</Source> 134 <Importer>TextureImporter</Importer> 135 <Processor>TextureProcessor</Processor> 136 <Options>None</Options> 137 <Output>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapuri\naapurileikattu2_0.xnb</Output> 138 <Time>2017-06-13T12:41:10.1502611+03:00</Time> 139 </Item> 140 <Item> 141 <Source>naapuri\naapurileikattu3.png</Source> 142 <Importer>TextureImporter</Importer> 143 <Processor>TextureProcessor</Processor> 144 <Options>None</Options> 145 <Output>C:\MyTemp\ValtteriM\BallTag\BallTag\BallTag\bin\x86\Debug\Content\naapuri\naapurileikattu3_0.xnb</Output> 146 <Time>2017-06-13T12:41:10.1522611+03:00</Time> 30 147 </Item> 31 148 <BuildSuccessful>true</BuildSuccessful> … … 76 193 <Assembly> 77 194 <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> 78 <Value>2017-06- 07T09:35:24.5493094+03:00</Value>195 <Value>2017-06-12T11:44:23.6984521+03:00</Value> 79 196 </Assembly> 80 197 </Assemblies> -
2017/24/ValtteriM/BallTag/BallTag/BallTag/obj/x86/Debug/cachefile-{136D9D65-D806-4D90-A790-28D798B0E25A}-targetpath.txt
r8530 r8601 1 Content\naapurileikattu.xnb2 1 Content\kentta1.xnb 3 2 Content\bonnie.xnb 3 Content\mei1.xnb 4 Content\pika3.xnb 5 Content\naapurileikattu.xnb 6 Content\naapurileikattu1.xnb 7 Content\naapurileikattu2.xnb 8 Content\naapurileikattu3.xnb 9 Content\office.xnb 10 Content\bonnie1.xnb 11 Content\bonnie2.xnb 12 Content\bonnie3.xnb 13 Content\naapuri.xnb 14 Content\naapuri\naapurileikattu1_0.xnb 15 Content\naapuri\naapurileikattu2_0.xnb 16 Content\naapuri\naapurileikattu3_0.xnb 4 17 Content\kentta1.txt -
2017/24/ValtteriM/BallTag/BallTag/BallTagContent/BallTagContent.contentproj
r8530 r8601 61 61 </ItemGroup> 62 62 <ItemGroup> 63 <Compile Include="naapurileikattu .png"> 63 <Compile Include="mei1.png"> 64 <Name>mei1</Name> 65 <Importer>TextureImporter</Importer> 66 <Processor>TextureProcessor</Processor> 67 </Compile> 68 </ItemGroup> 69 <ItemGroup> 70 <Compile Include="pika3.png"> 71 <Name>pika3</Name> 72 <Importer>TextureImporter</Importer> 73 <Processor>TextureProcessor</Processor> 74 </Compile> 75 </ItemGroup> 76 <ItemGroup> 77 <Compile Include="naapurileikattu.png"> 64 78 <Name>naapurileikattu</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 </Compile> 82 </ItemGroup> 83 <ItemGroup> 84 <Compile Include="naapuri.anim"> 85 <Name>naapuri</Name> 86 <Importer>AnimationImporter</Importer> 87 <Processor>AnimationContentProcessor</Processor> 88 </Compile> 89 </ItemGroup> 90 <ItemGroup> 91 <Folder Include="naapuri\" /> 92 </ItemGroup> 93 <ItemGroup> 94 <Compile Include="naapurileikattu1.png"> 95 <Name>naapurileikattu1</Name> 96 <Importer>TextureImporter</Importer> 97 <Processor>TextureProcessor</Processor> 98 </Compile> 99 <Compile Include="naapurileikattu2.png"> 100 <Name>naapurileikattu2</Name> 101 <Importer>TextureImporter</Importer> 102 <Processor>TextureProcessor</Processor> 103 </Compile> 104 <Compile Include="naapurileikattu3.png"> 105 <Name>naapurileikattu3</Name> 106 <Importer>TextureImporter</Importer> 107 <Processor>TextureProcessor</Processor> 108 </Compile> 109 </ItemGroup> 110 <ItemGroup> 111 <Compile Include="office.png"> 112 <Name>office</Name> 113 <Importer>TextureImporter</Importer> 114 <Processor>TextureProcessor</Processor> 115 </Compile> 116 </ItemGroup> 117 <ItemGroup> 118 <Compile Include="bonnie1.png"> 119 <Name>bonnie1</Name> 120 <Importer>TextureImporter</Importer> 121 <Processor>TextureProcessor</Processor> 122 </Compile> 123 <Compile Include="bonnie2.png"> 124 <Name>bonnie2</Name> 125 <Importer>TextureImporter</Importer> 126 <Processor>TextureProcessor</Processor> 127 </Compile> 128 <Compile Include="bonnie3.png"> 129 <Name>bonnie3</Name> 65 130 <Importer>TextureImporter</Importer> 66 131 <Processor>TextureProcessor</Processor>
Note: See TracChangeset
for help on using the changeset viewer.