- Timestamp:
- 2014-07-23 15:02:21 (9 years ago)
- Location:
- 2014/30/EevaS
- Files:
-
- 46 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/30/EevaS/Zombie attack!/Zombie attack!/Zombie attack!/Zombie attack!.csproj
r5579 r5596 120 120 </ItemGroup> 121 121 <ItemGroup> 122 <ProjectReference Include="..\Zombie_attack_Content\Zombie_attack_Content.contentproj">123 <Name>Zombie_attack_Content</Name>124 <XnaReferenceType>Content</XnaReferenceType>125 </ProjectReference>126 </ItemGroup>127 <ItemGroup>128 122 <BootstrapperPackage Include=".NETFramework,Version=v4.0,Profile=Client"> 129 123 <Visible>False</Visible> … … 152 146 </BootstrapperPackage> 153 147 </ItemGroup> 148 <ItemGroup> 149 <ProjectReference Include="..\Zombie attack!Content\Zombie attack!Content.contentproj"> 150 <Project>{9D627D2B-285E-46FF-92A1-5D76DA271176}</Project> 151 <Name>Zombie attack!Content %28Content%29</Name> 152 <XnaReferenceType>Content</XnaReferenceType> 153 </ProjectReference> 154 </ItemGroup> 154 155 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 155 156 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\Microsoft.Xna.GameStudio.targets" /> -
2014/30/EevaS/Zombie attack!/Zombie attack!/Zombie attack!/Zombie_attack_.cs
r5579 r5596 9 9 public class Zombie_attack_ : Game 10 10 { 11 Image pelaajakuva = LoadImage("Pelaaja"); 11 12 PhysicsObject pelaaja; 13 14 Vector nopeusYlos = new Vector(0, 200); 15 Vector nopeusAlas = new Vector(0, -200); 16 Vector nopeusVasemmalle = new Vector(-200, 0); 17 Vector nopeusOikealle = new Vector(200, 0); 18 19 private Image tahdenkuva; 20 private object zombi; 12 21 13 22 public override void Begin() 14 23 { 15 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 24 LuoKentta(); 25 AsetaOhjaimet(); 16 26 } 17 27 18 28 void LuoKentta() 19 29 { … … 27 37 ruudut.Execute(20, 20); 28 38 } 29 39 30 40 void LuoPelaaja(Vector paikka, double leveys, double korkeus) 31 41 { 32 42 pelaaja = new PhysicsObject(10, 10); 33 43 pelaaja.Position = paikka; 34 //AddCollisionHandler(LuoPelaaja, "tahti", TormaaTahteen);44 pelaaja.Image = pelaajakuva; 35 45 Add(pelaaja); 36 46 } … … 40 50 PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 41 51 taso.Position = paikka; 42 //taso.Image 0groundImage;52 //taso.Image = groundImage; 43 53 taso.CollisionIgnoreGroup = 1; 44 54 Add(taso); … … 50 60 tahti.IgnoresCollisionResponse = true; 51 61 tahti.Position = paikka; 52 //tahti.Image = tahdenKuva;62 tahti.Image = tahdenkuva; 53 63 tahti.Tag = "tahti"; 54 64 Add(tahti, 1); … … 57 67 void LuoVihollinen(Vector paikka, double leveys, double korkeus) 58 68 { 59 PhysicsObject zombi = new PhysicsObject(40, 20); 69 PhysicsObject zombi = new PhysicsObject(20, 40); 70 zombi.Position = paikka; 71 zombi.Tag = "pahis"; 72 Add(zombi); 73 } 60 74 75 void AsetaOhjaimet() 76 { 77 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 78 79 Keyboard.Listen(Key.Up, ButtonState.Down, AsetaNopeus, "Liikuta hahmoa ylös", pelaajakuva, nopeusYlos); 80 Keyboard.Listen(Key.Up, ButtonState.Released, AsetaNopeus, null 61 81 } 62 82 63 83 64 65 66 67 68 69 84 } -
2014/30/EevaS/Zombie attack!/Zombie attack!/Zombie attack!/obj/x86/Debug/Zombie attack!.csproj.FileListAbsolute.txt
r5579 r5596 7 7 C:\MyTemp\EevaS\Zombie attack!\Zombie attack!\Zombie attack!\obj\x86\Debug\Zombie attack!.exe 8 8 C:\MyTemp\EevaS\Zombie attack!\Zombie attack!\Zombie attack!\obj\x86\Debug\Zombie attack!.pdb 9 C:\MyTemp\EevaS\Zombie attack!\Zombie attack!\Zombie attack!\bin\x86\Debug\Content\KenttÀ.xnb 10 C:\MyTemp\EevaS\Zombie attack!\Zombie attack!\Zombie attack!\bin\x86\Debug\Content\Pelaaja.xnb 11 C:\MyTemp\EevaS\Zombie attack!\Zombie attack!\Zombie attack!\bin\x86\Debug\Content\Zombi.xnb -
2014/30/EevaS/Zombie attack!/Zombie attack!/Zombie attack!Content/Zombie attack!Content.contentproj
r5579 r5596 59 59 </Compile> 60 60 </ItemGroup> 61 <ItemGroup> 62 <Compile Include="Zombi.png"> 63 <Name>Zombi</Name> 64 <Importer>TextureImporter</Importer> 65 <Processor>TextureProcessor</Processor> 66 </Compile> 67 </ItemGroup> 61 68 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 62 69 <!-- 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.