- Timestamp:
- 2015-03-14 14:54:06 (8 years ago)
- Location:
- 2014/koodauskerho/38/FransM
- Files:
-
- 7 added
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/koodauskerho/38/FransM/Rölli/Rölli/Rölli/Rölli.cs
r5807 r5817 18 18 Image tahtiKuva = LoadImage("tahti"); 19 19 20 Image kranaattiKuva = LoadImage("Kranaatti"); 21 Image sepelihammastiikeriKuva = LoadImage("Sepelihammastiikeri"); 22 20 23 SoundEffect maaliAani = LoadSoundEffect("maali"); 24 21 25 22 26 public override void Begin() … … 38 42 kentta.SetTileMethod('*', LisaaTahti); 39 43 kentta.SetTileMethod('N', LisaaPelaaja); 44 kentta.SetTileMethod('V', LisaaVihu); 45 40 46 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 41 47 Level.CreateBorders(); 42 48 Level.Background.CreateGradient(Color.White, Color.SkyBlue); 49 } 50 51 void LisaaVihu(Vector paikka, double leveys, double korkeus) 52 { 53 PlatformCharacter vihu = new PlatformCharacter(leveys, korkeus); 54 55 vihu.Position = paikka; 56 vihu.Tag = "vihu"; 57 PlatformWandererBrain tasoAivot = new PlatformWandererBrain(); 58 tasoAivot.Speed = 1000; 59 vihu.Brain = tasoAivot; 60 vihu.Image = sepelihammastiikeriKuva; 61 Add(vihu); 43 62 } 44 63 … … 48 67 taso.Position = paikka; 49 68 taso.Color = Color.Green; 69 taso.Tag = "taso"; 50 70 Add(taso); 51 71 } … … 68 88 pelaaja1.Image = pelaajanKuva; 69 89 AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 70 Add(pelaaja1); 90 Add(pelaaja1); 71 91 } 92 72 93 73 94 void LisaaNappaimet() … … 87 108 88 109 PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 110 111 Keyboard.Listen(Key.F, ButtonState.Pressed, HeitaKranaatti, "Heittää kranaatti", pelaaja1); 89 112 } 90 113 … … 93 116 hahmo.Walk(nopeus); 94 117 } 118 119 120 private Image[] ukkelinKavely = LoadImages("uk2anoik1", "uk2anoik2", "uk2anoik3"); 121 95 122 96 123 void Hyppaa(PlatformCharacter hahmo, double nopeus) … … 106 133 } 107 134 108 } 135 //Grenade kranaatti = new Grenade(4.0); 136 void HeitaKranaatti(PlatformCharacter pelaaja) 137 { 138 Grenade kranu = new Grenade(10.25); 139 kranu.Image = kranaattiKuva; 140 pelaaja.Throw(kranu, Angle.FromDegrees(30), 10000); 141 kranu.Explosion.ShockwaveReachesObject += KranaattiOsui; 142 kranu.Explosion.AddShockwaveHandler("vihollinen", KranaattiOsui); 143 144 } 145 146 void KranaattiOsui(IPhysicsObject rajahdyksenKohde, Vector v) 147 { 148 if (rajahdyksenKohde.Tag != "taso") 149 { 150 rajahdyksenKohde.Destroy(); 151 } 152 } 153 154 public class Peli : PhysicsGame 155 { 156 private Animation ukkelinKavely; 157 158 public override void Begin() 159 { 160 ukkelinKavely = LoadAnimation("norsu"); 161 162 { 163 164 165 } 166 167 -
2014/koodauskerho/38/FransM/Rölli/Rölli/Rölli/Rölli.csproj.Debug.cachefile
r5807 r5817 3 3 Content\tahti.xnb 4 4 Content\kentta1.xnb 5 Content\Kranaatti.xnb 6 Content\Sepelihammastiikeri.xnb -
2014/koodauskerho/38/FransM/Rölli/Rölli/Rölli/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml
r5807 r5817 9 9 <Options>None</Options> 10 10 <Output>C:\MyTemp\FransM\Rölli\Rölli\Rölli\bin\x86\Debug\Content\maali.xnb</Output> 11 <Time>2015-0 2-14T12:30:49.0085951+02:00</Time>11 <Time>2015-03-14T10:00:33.505949+02:00</Time> 12 12 </Item> 13 13 <Item> … … 18 18 <Options>None</Options> 19 19 <Output>C:\MyTemp\FransM\Rölli\Rölli\Rölli\bin\x86\Debug\Content\norsu.xnb</Output> 20 <Time>2015-0 2-14T13:55:22.0338368+02:00</Time>20 <Time>2015-03-14T10:00:33.5527493+02:00</Time> 21 21 </Item> 22 22 <Item> … … 27 27 <Options>None</Options> 28 28 <Output>C:\MyTemp\FransM\Rölli\Rölli\Rölli\bin\x86\Debug\Content\tahti.xnb</Output> 29 <Time>2015-0 2-14T14:37:00.9016724+02:00</Time>29 <Time>2015-03-14T10:00:33.6151497+02:00</Time> 30 30 </Item> 31 31 <Item> … … 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\FransM\Rölli\Rölli\Rölli\bin\x86\Debug\Content\kentta1.xnb</Output> 38 <Time>2015-02-14T12:30:49.0055951+02:00</Time> 38 <Time>2015-03-14T13:19:58.6666493+02:00</Time> 39 </Item> 40 <Item> 41 <Source>Kranaatti.png</Source> 42 <Name>Kranaatti</Name> 43 <Importer>TextureImporter</Importer> 44 <Processor>TextureProcessor</Processor> 45 <Options>None</Options> 46 <Output>C:\MyTemp\FransM\Rölli\Rölli\Rölli\bin\x86\Debug\Content\Kranaatti.xnb</Output> 47 <Time>2015-03-14T11:13:08.0307102+02:00</Time> 48 </Item> 49 <Item> 50 <Source>Sepelihammastiikeri.png</Source> 51 <Name>Sepelihammastiikeri</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\MyTemp\FransM\Rölli\Rölli\Rölli\bin\x86\Debug\Content\Sepelihammastiikeri.xnb</Output> 56 <Time>2015-03-14T12:56:19.3160987+02:00</Time> 39 57 </Item> 40 58 <BuildSuccessful>true</BuildSuccessful> … … 85 103 <Assembly> 86 104 <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> 87 <Value>201 2-07-09T09:25:47.1768662+03:00</Value>105 <Value>2014-04-23T00:12:49.5168169+03:00</Value> 88 106 </Assembly> 89 107 </Assemblies> -
2014/koodauskerho/38/FransM/Rölli/Rölli/Rölli/obj/x86/Debug/Rölli.csproj.FileListAbsolute.txt
r5807 r5817 11 11 C:\MyTemp\FransM\Rölli\Rölli\Rölli\obj\x86\Debug\Rölli.exe 12 12 C:\MyTemp\FransM\Rölli\Rölli\Rölli\obj\x86\Debug\Rölli.pdb 13 C:\MyTemp\FransM\Rölli\Rölli\Rölli\bin\x86\Debug\Content\Kranaatti.xnb 14 C:\MyTemp\FransM\Rölli\Rölli\Rölli\bin\x86\Debug\Content\Sepelihammastiikeri.xnb -
2014/koodauskerho/38/FransM/Rölli/Rölli/Rölli/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt
r5807 r5817 3 3 Content\tahti.xnb 4 4 Content\kentta1.xnb 5 Content\Kranaatti.xnb 6 Content\Sepelihammastiikeri.xnb -
2014/koodauskerho/38/FransM/Rölli/Rölli/RölliContent/RölliContent.contentproj
r5807 r5817 67 67 </Compile> 68 68 </ItemGroup> 69 <ItemGroup> 70 <Compile Include="Kranaatti.png"> 71 <Name>Kranaatti</Name> 72 <Importer>TextureImporter</Importer> 73 <Processor>TextureProcessor</Processor> 74 </Compile> 75 </ItemGroup> 76 <ItemGroup> 77 <Compile Include="Sepelihammastiikeri.png"> 78 <Name>Sepelihammastiikeri</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 </Compile> 82 </ItemGroup> 69 83 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 70 84 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2014/koodauskerho/38/FransM/Rölli/Rölli/RölliContent/kentta1.txt
r5807 r5817 8 8 ## ## ## 9 9 10 * * * *10 * * * V * 11 11 ## ## ## ## 12 12 … … 14 14 ## ## ## ## ## 15 15 16 N 16 N V 17 17 ###################### -
2014/koodauskerho/38/FransM/Weaporage/Weaporage/Weaporage/Weaporage.cs
r5807 r5817 296 296 else if (asenumero == 6) 297 297 { 298 PhysicsObject ase6 = new PhysicsObject(120, 400);298 PhysicsObject ase6 = new PhysicsObject(120, 100); 299 299 ase6.Position = asepaikka; 300 300 ase6.Image = Pistoolinkuva; -
2014/koodauskerho/38/FransM/Weaporage/Weaporage/Weaporage/obj/x86/Debug/ContentPipeline-{06B8DCF8-84D5-47F5-8E6A-9758023E8CEC}.xml
r5807 r5817 9 9 <Options>None</Options> 10 10 <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Miekka.xnb</Output> 11 <Time>2015-0 2-14T10:06:31.407468+02:00</Time>11 <Time>2015-03-14T10:00:32.4763424+02:00</Time> 12 12 </Item> 13 13 <Item> … … 18 18 <Options>None</Options> 19 19 <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Nuija.xnb</Output> 20 <Time>2015-0 2-14T10:06:31.4354708+02:00</Time>20 <Time>2015-03-14T10:00:32.5075426+02:00</Time> 21 21 </Item> 22 22 <Item> … … 27 27 <Options>None</Options> 28 28 <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Tikari.xnb</Output> 29 <Time>2015-0 2-14T10:06:31.4584731+02:00</Time>29 <Time>2015-03-14T10:00:32.5543429+02:00</Time> 30 30 </Item> 31 31 <Item> … … 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Vasara.xnb</Output> 38 <Time>2015-0 2-14T10:06:31.4514724+02:00</Time>38 <Time>2015-03-14T10:00:32.5543429+02:00</Time> 39 39 </Item> 40 40 <Item> … … 45 45 <Options>None</Options> 46 46 <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Sauva.xnb</Output> 47 <Time>2015-0 2-14T10:06:31.4554728+02:00</Time>47 <Time>2015-03-14T10:00:32.5543429+02:00</Time> 48 48 </Item> 49 49 <Item> … … 54 54 <Options>None</Options> 55 55 <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Pistooli.xnb</Output> 56 <Time>2015-0 2-14T10:06:31.4104683+02:00</Time>56 <Time>2015-03-14T10:00:32.4919425+02:00</Time> 57 57 </Item> 58 58 <Item> … … 63 63 <Options>None</Options> 64 64 <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Luoti.xnb</Output> 65 <Time>2015-0 2-14T10:06:31.4034676+02:00</Time>65 <Time>2015-03-14T10:00:32.4763424+02:00</Time> 66 66 </Item> 67 67 <Item> … … 72 72 <Options>None</Options> 73 73 <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Pommi1.xnb</Output> 74 <Time>2015-0 2-14T10:06:31.4144687+02:00</Time>74 <Time>2015-03-14T10:00:32.4919425+02:00</Time> 75 75 </Item> 76 76 <Item> … … 81 81 <Options>None</Options> 82 82 <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Pommi2.xnb</Output> 83 <Time>2015-0 2-14T10:06:31.417469+02:00</Time>83 <Time>2015-03-14T10:00:32.4919425+02:00</Time> 84 84 </Item> 85 85 <Item> … … 90 90 <Options>None</Options> 91 91 <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Pommi3.xnb</Output> 92 <Time>2015-0 2-14T10:06:31.4214694+02:00</Time>92 <Time>2015-03-14T10:00:32.4919425+02:00</Time> 93 93 </Item> 94 94 <Item> … … 99 99 <Options>None</Options> 100 100 <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Pommi4.xnb</Output> 101 <Time>2015-0 2-14T10:06:31.4244697+02:00</Time>101 <Time>2015-03-14T10:00:32.5075426+02:00</Time> 102 102 </Item> 103 103 <Item> … … 108 108 <Options>None</Options> 109 109 <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Pommi5.xnb</Output> 110 <Time>2015-0 2-14T10:06:31.4384711+02:00</Time>110 <Time>2015-03-14T10:00:32.5387428+02:00</Time> 111 111 </Item> 112 112 <Item> … … 117 117 <Options>None</Options> 118 118 <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Pommi6.xnb</Output> 119 <Time>2015-0 2-14T10:06:31.4454718+02:00</Time>119 <Time>2015-03-14T10:00:32.5387428+02:00</Time> 120 120 </Item> 121 121 <Item> … … 126 126 <Options>None</Options> 127 127 <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Pallo.xnb</Output> 128 <Time>2015-0 2-14T10:06:31.4414714+02:00</Time>128 <Time>2015-03-14T10:00:32.5387428+02:00</Time> 129 129 </Item> 130 130 <Item> … … 135 135 <Options>None</Options> 136 136 <Output>C:\MyTemp\FransM\Weaporage\Weaporage\Weaporage\bin\x86\Debug\Content\Rajahdys.xnb</Output> 137 <Time>2015-0 2-14T10:52:30.455574+02:00</Time>137 <Time>2015-03-14T10:00:32.5075426+02:00</Time> 138 138 </Item> 139 139 <BuildSuccessful>true</BuildSuccessful> … … 184 184 <Assembly> 185 185 <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> 186 <Value>201 2-07-09T09:25:47.1768662+03:00</Value>186 <Value>2014-04-23T00:12:49.5168169+03:00</Value> 187 187 </Assembly> 188 188 </Assemblies>
Note: See TracChangeset
for help on using the changeset viewer.