Changeset 5596 for 2014


Ignore:
Timestamp:
2014-07-23 15:02:21 (5 years ago)
Author:
eemalisa
Message:
 
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  
    120120  </ItemGroup> 
    121121  <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> 
    128122    <BootstrapperPackage Include=".NETFramework,Version=v4.0,Profile=Client"> 
    129123      <Visible>False</Visible> 
     
    152146    </BootstrapperPackage> 
    153147  </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> 
    154155  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 
    155156  <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  
    99public class Zombie_attack_ : Game 
    1010{ 
     11    Image pelaajakuva = LoadImage("Pelaaja"); 
    1112    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; 
    1221 
    1322    public override void Begin() 
    1423    { 
    15         Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
     24        LuoKentta(); 
     25        AsetaOhjaimet(); 
    1626    } 
    17  
     27     
    1828    void LuoKentta() 
    1929    { 
     
    2737        ruudut.Execute(20, 20); 
    2838    } 
    29  
     39    
    3040    void LuoPelaaja(Vector paikka, double leveys, double korkeus) 
    3141    { 
    3242        pelaaja = new PhysicsObject(10, 10); 
    3343        pelaaja.Position = paikka; 
    34         //AddCollisionHandler(LuoPelaaja, "tahti", TormaaTahteen); 
     44        pelaaja.Image = pelaajakuva; 
    3545        Add(pelaaja); 
    3646    } 
     
    4050        PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 
    4151        taso.Position = paikka; 
    42         //taso.Image 0 groundImage; 
     52        //taso.Image = groundImage; 
    4353        taso.CollisionIgnoreGroup = 1; 
    4454        Add(taso); 
     
    5060        tahti.IgnoresCollisionResponse = true; 
    5161        tahti.Position = paikka; 
    52         //tahti.Image = tahdenKuva; 
     62        tahti.Image = tahdenkuva; 
    5363        tahti.Tag = "tahti"; 
    5464        Add(tahti, 1); 
     
    5767    void LuoVihollinen(Vector paikka, double leveys, double korkeus) 
    5868    { 
    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    } 
    6074 
     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 
    6181    } 
    6282 
    6383 
    64  
    65  
    66  
    67  
    68  
    6984} 
  • 2014/30/EevaS/Zombie attack!/Zombie attack!/Zombie attack!/obj/x86/Debug/Zombie attack!.csproj.FileListAbsolute.txt

    r5579 r5596  
    77C:\MyTemp\EevaS\Zombie attack!\Zombie attack!\Zombie attack!\obj\x86\Debug\Zombie attack!.exe 
    88C:\MyTemp\EevaS\Zombie attack!\Zombie attack!\Zombie attack!\obj\x86\Debug\Zombie attack!.pdb 
     9C:\MyTemp\EevaS\Zombie attack!\Zombie attack!\Zombie attack!\bin\x86\Debug\Content\KenttÀ.xnb 
     10C:\MyTemp\EevaS\Zombie attack!\Zombie attack!\Zombie attack!\bin\x86\Debug\Content\Pelaaja.xnb 
     11C:\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  
    5959    </Compile> 
    6060  </ItemGroup> 
     61  <ItemGroup> 
     62    <Compile Include="Zombi.png"> 
     63      <Name>Zombi</Name> 
     64      <Importer>TextureImporter</Importer> 
     65      <Processor>TextureProcessor</Processor> 
     66    </Compile> 
     67  </ItemGroup> 
    6168  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    6269  <!--  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.