- Timestamp:
- 2015-06-12 11:34:12 (7 years ago)
- Location:
- 2015/24/JuusoM/JuusonHyppelyPeli
- Files:
-
- 5 added
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/24/JuusoM/JuusonHyppelyPeli/JuusonHyppelyPeli/JuusonHyppelyPeli/JuusonHyppelyPeli.cs
r6018 r6056 25 25 Image pahiskuva2 = LoadImage("vaahtokarkkiMlg"); 26 26 Image pahiskuva3 = LoadImage("SuperSoini"); 27 27 Image AseKuva = LoadImage("ebin ak"); 28 28 int kenttaNro = 1; 29 29 … … 85 85 void LisaaPahis(Vector paikka, double leveys, double korkeus) 86 86 { 87 PlatformCharacter pahis = new PlatformCharacter(leveys * 1.5, korkeus * 2.5);87 Vihollinen pahis = new Vihollinen(leveys * 1.5, korkeus * 2.5, 2);// elämän määrä viimeisenä 88 88 PlatformWandererBrain tasoAivot = new PlatformWandererBrain(); 89 89 tasoAivot.Speed = 100; … … 100 100 void LisaaPahis2(Vector paikka, double leveys, double korkeus) 101 101 { 102 PlatformCharacter pahis2 = new PlatformCharacter(leveys * 1.5, korkeus * 2.5);102 Vihollinen pahis2 = new Vihollinen(leveys * 1.5, korkeus * 2.5, 3);// vimmeinen numero elämän määrä 103 103 PlatformWandererBrain tasoAivot = new PlatformWandererBrain(); 104 104 tasoAivot.Speed = 100; … … 114 114 void LisaaPahis3(Vector paikka, double leveys, double korkeus) 115 115 { 116 PlatformCharacter pahis3 = new PlatformCharacter(leveys * 1.5, korkeus * 2.5);116 Vihollinen pahis3 = new Vihollinen(leveys * 1.5, korkeus * 2.5, 4); 117 117 PlatformWandererBrain tasoAivot = new PlatformWandererBrain(); 118 118 tasoAivot.Speed = 100; … … 174 174 if (kohde.Tag.Equals("pahis")) 175 175 { 176 kohde.Destroy();176 ((Vihollinen)kohde).ElamaLaskuri.Value -= 1; 177 177 } 178 178 … … 208 208 AddCollisionHandler(pelaaja1, "maali", TormaaMaaliin); 209 209 Add(pelaaja1); 210 AssaultRifle pelaajan1Ase = new AssaultRifle(30, 10); 211 210 AssaultRifle pelaajan1Ase = new AssaultRifle(40, 20); 212 211 //Ammusten määrä aluksi: 213 pelaajan1Ase.Ammo.Value = 100 0;214 212 pelaajan1Ase.Ammo.Value = 100; 213 pelaajan1Ase.Image = AseKuva; 215 214 //Mitä tapahtuu kun ammus osuu johonkin? 216 215 pelaajan1Ase.ProjectileCollision = AmmusOsui; 217 216 pelaaja1.Weapon = pelaajan1Ase; 218 217 pelaaja1.Weapon.Position += new Vector(15.0, 0.0); 219 218 220 219 } -
2015/24/JuusoM/JuusonHyppelyPeli/JuusonHyppelyPeli/JuusonHyppelyPeli/JuusonHyppelyPeli.csproj
r5934 r6056 114 114 <Compile Include="JuusonHyppelyPeli.cs" /> 115 115 <Compile Include="Properties\AssemblyInfo.cs" /> 116 <Compile Include="vihollinen.cs" /> 116 117 </ItemGroup> 117 118 <ItemGroup> -
2015/24/JuusoM/JuusonHyppelyPeli/JuusonHyppelyPeli/JuusonHyppelyPeli/JuusonHyppelyPeli.csproj.Debug.cachefile
r6018 r6056 14 14 Content\SuperSoini.xnb 15 15 Content\kentta3.xnb 16 Content\ebin ak.xnb 16 17 Content\piikki.png 17 18 Content\maali1.png -
2015/24/JuusoM/JuusonHyppelyPeli/JuusonHyppelyPeli/JuusonHyppelyPeli/obj/x86/Debug/ContentPipeline-{E145AA3A-12A6-45D7-8DC9-BC55026B266F}.xml
r6018 r6056 72 72 <Options>None</Options> 73 73 <Output>C:\MyTemp\JuusoM\JuusonHyppelyPeli\JuusonHyppelyPeli\JuusonHyppelyPeli\bin\x86\Debug\Content\ase.xnb</Output> 74 <Time>2015-06- 09T14:52:33.1167748+03:00</Time>74 <Time>2015-06-12T08:55:06.8688525+03:00</Time> 75 75 </Item> 76 76 <Item> … … 108 108 <Options>None</Options> 109 109 <Output>C:\MyTemp\JuusoM\JuusonHyppelyPeli\JuusonHyppelyPeli\JuusonHyppelyPeli\bin\x86\Debug\Content\kentta2.xnb</Output> 110 <Time>2015-06-1 1T11:28:18.3920704+03:00</Time>110 <Time>2015-06-12T08:52:40.6118525+03:00</Time> 111 111 </Item> 112 112 <Item> … … 135 135 <Options>None</Options> 136 136 <Output>C:\MyTemp\JuusoM\JuusonHyppelyPeli\JuusonHyppelyPeli\JuusonHyppelyPeli\bin\x86\Debug\Content\kentta3.xnb</Output> 137 <Time>2015-06-11T11:23:43.4180704+03:00</Time> 137 <Time>2015-06-12T08:52:40.6274525+03:00</Time> 138 </Item> 139 <Item> 140 <Source>ebin ak.png</Source> 141 <Name>ebin ak</Name> 142 <Importer>TextureImporter</Importer> 143 <Processor>TextureProcessor</Processor> 144 <Options>None</Options> 145 <Output>C:\MyTemp\JuusoM\JuusonHyppelyPeli\JuusonHyppelyPeli\JuusonHyppelyPeli\bin\x86\Debug\Content\ebin ak.xnb</Output> 146 <Time>2015-06-12T09:11:06.7812951+03:00</Time> 138 147 </Item> 139 148 <BuildSuccessful>true</BuildSuccessful> -
2015/24/JuusoM/JuusonHyppelyPeli/JuusonHyppelyPeli/JuusonHyppelyPeli/obj/x86/Debug/JuusonHyppelyPeli.csproj.FileListAbsolute.txt
r6018 r6056 24 24 C:\MyTemp\JuusoM\JuusonHyppelyPeli\JuusonHyppelyPeli\JuusonHyppelyPeli\bin\x86\Debug\Content\SuperSoini.xnb 25 25 C:\MyTemp\JuusoM\JuusonHyppelyPeli\JuusonHyppelyPeli\JuusonHyppelyPeli\bin\x86\Debug\Content\kentta3.xnb 26 C:\MyTemp\JuusoM\JuusonHyppelyPeli\JuusonHyppelyPeli\JuusonHyppelyPeli\bin\x86\Debug\Content\ebin ak.xnb -
2015/24/JuusoM/JuusonHyppelyPeli/JuusonHyppelyPeli/JuusonHyppelyPeli/obj/x86/Debug/cachefile-{E145AA3A-12A6-45D7-8DC9-BC55026B266F}-targetpath.txt
r6018 r6056 14 14 Content\SuperSoini.xnb 15 15 Content\kentta3.xnb 16 Content\ebin ak.xnb 16 17 Content\piikki.png 17 18 Content\maali1.png -
2015/24/JuusoM/JuusonHyppelyPeli/JuusonHyppelyPeli/JuusonHyppelyPeliContent/JuusonHyppelyPeliContent.contentproj
r6018 r6056 148 148 </Compile> 149 149 </ItemGroup> 150 <ItemGroup> 151 <Compile Include="ebin ak.png"> 152 <Name>ebin ak</Name> 153 <Importer>TextureImporter</Importer> 154 <Processor>TextureProcessor</Processor> 155 </Compile> 156 </ItemGroup> 150 157 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 151 158 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2015/24/JuusoM/JuusonHyppelyPeli/JuusonHyppelyPeli/JuusonHyppelyPeliContent/kentta2.txt
r6023 r6056 14 14 ................................................................................................................................................................. 15 15 .............................................................................................................................................................. 16 ............................................................................................# #......................................................................16 ............................................................................................#....................................................................... 17 17 ...............*.................v...........v........1..........1........................................................................................................ 18 18 ##########################################################################################......##....#################################################################### -
2015/24/JuusoM/JuusonHyppelyPeli/JuusonHyppelyPeli/JuusonHyppelyPeliContent/kentta3.txt
r6018 r6056 17 17 ......................................................................................................#.................................................... 18 18 ......................................................................................................#...................................................... 19 .................................. ....................................................................#...................................................19 ..................................b....................................p.................p............#................................................... 20 20 .........1........................##..............##....**....###..*..###.....22.....#####............#....................................................... 21 21 .m.......##........#...2.....###......##...*............##.........#..........###.....................#...........................................................
Note: See TracChangeset
for help on using the changeset viewer.