Changeset 5295


Ignore:
Timestamp:
2014-07-02 14:57:10 (9 years ago)
Author:
jeloppon
Message:
 
Location:
2014/27/JesseL
Files:
5 added
13 edited

Legend:

Unmodified
Added
Removed
  • 2014/27/JesseL/Trap/Trap/Trap/Trap.cs

    r5273 r5295  
    1515    PlatformCharacter pelaaja1; 
    1616 
    17     Image pelaajanKuva = LoadImage("norsu"); 
     17    Image pelaajanKuva = LoadImage("Pelattava hahmo"); 
    1818    Image tahtiKuva = LoadImage("tahti"); 
     19 
     20    
    1921 
    2022    SoundEffect maaliAani = LoadSoundEffect("maali"); 
     
    2830 
    2931        Camera.Follow(pelaaja1); 
    30         Camera.ZoomFactor = 1.2; 
     32        Camera.ZoomFactor = 3.50; 
    3133        Camera.StayInLevel = true; 
     34 
     35        SetWindowSize(1024, 768, true); 
     36 
     37        IsFullScreen = false; 
    3238    } 
    3339 
     
    4147        Level.CreateBorders(); 
    4248        Level.Background.CreateGradient(Color.White, Color.SkyBlue); 
     49        SmoothTextures = false; 
     50         
    4351    } 
    4452 
    4553    void LisaaTaso(Vector paikka, double leveys, double korkeus) 
    4654    { 
    47         PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 
     55        PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys , korkeus); 
    4856        taso.Position = paikka; 
    4957        taso.Color = Color.Green; 
     
    6876        pelaaja1.Image = pelaajanKuva; 
    6977        AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 
     78 
     79        //pelaaja1.Weapon = new AssaultRifle(30, 10); 
     80        //pelaaja1.Weapon.Ammo.Value = 1000; 
     81        //pelaaja1.Weapon.ProjectileCollision = AmmusOsui; 
     82        //pelaaja1.Weapon.CanHitOwner = false; 
     83 
     84 
    7085        Add(pelaaja1); 
     86 
     87         
     88 
     89 
    7190    } 
     91     
     92    void AmmusOsui(PhysicsObject ammus, PhysicsObject kohde) 
     93    { 
     94        //ammus.Destroy(); 
     95    } 
     96 
     97    void AmmuAseella(PlatformCharacter pelaaja) 
     98    { 
     99        PhysicsObject ammus = pelaaja.Weapon.Shoot(); 
     100 
     101        if (ammus != null) 
     102        { 
     103            //ammus.Size *= 3; 
     104            //ammus.Image = ... 
     105            //ammus.MaximumLifetime = TimeSpan.FromSeconds(2.0); 
     106        } 
     107    } 
     108 
    72109 
    73110    void LisaaNappaimet() 
     
    79116        Keyboard.Listen(Key.Right, ButtonState.Down, Liikuta, "Liikkuu vasemmalle", pelaaja1, nopeus); 
    80117        Keyboard.Listen(Key.Up, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 
    81  
     118        //Keyboard.Listen(Key.Space, ButtonState.Down, AmmuAseella, "Ammu", pelaaja1); 
     119         
    82120        ControllerOne.Listen(Button.Back, ButtonState.Pressed, Exit, "Poistu pelistä"); 
    83121 
  • 2014/27/JesseL/Trap/Trap/Trap/Trap.csproj.Debug.cachefile

    r5242 r5295  
    33Content\tahti.xnb 
    44Content\kentta1.xnb 
     5Content\Pelattava hahmo.xnb 
  • 2014/27/JesseL/Trap/Trap/Trap/obj/x86/Debug/ContentPipeline-{C0AFE563-9C03-4FBB-B5A4-D2BA929617CA}.xml

    r5242 r5295  
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\JesseL\Trap\Trap\Trap\bin\x86\Debug\Content\kentta1.xnb</Output> 
    38       <Time>2014-07-01T14:36:30.5909793+03:00</Time> 
     38      <Time>2014-07-02T14:54:58.0341705+03:00</Time> 
     39    </Item> 
     40    <Item> 
     41      <Source>Pelattava hahmo.png</Source> 
     42      <Name>Pelattava hahmo</Name> 
     43      <Importer>TextureImporter</Importer> 
     44      <Processor>TextureProcessor</Processor> 
     45      <Options>None</Options> 
     46      <Output>C:\MyTemp\JesseL\Trap\Trap\Trap\bin\x86\Debug\Content\Pelattava hahmo.xnb</Output> 
     47      <Time>2014-07-02T13:53:41.7599302+03:00</Time> 
    3948    </Item> 
    4049    <BuildSuccessful>true</BuildSuccessful> 
  • 2014/27/JesseL/Trap/Trap/Trap/obj/x86/Debug/Trap.csproj.FileListAbsolute.txt

    r5242 r5295  
    1111C:\MyTemp\JesseL\Trap\Trap\Trap\obj\x86\Debug\Trap.exe 
    1212C:\MyTemp\JesseL\Trap\Trap\Trap\obj\x86\Debug\Trap.pdb 
     13C:\MyTemp\JesseL\Trap\Trap\Trap\bin\x86\Debug\Content\Pelattava hahmo.xnb 
  • 2014/27/JesseL/Trap/Trap/Trap/obj/x86/Debug/cachefile-{C0AFE563-9C03-4FBB-B5A4-D2BA929617CA}-targetpath.txt

    r5242 r5295  
    33Content\tahti.xnb 
    44Content\kentta1.xnb 
     5Content\Pelattava hahmo.xnb 
  • 2014/27/JesseL/Trap/Trap/TrapContent/TrapContent.contentproj

    r5242 r5295  
    6767    </Compile> 
    6868  </ItemGroup> 
     69  <ItemGroup> 
     70    <Folder Include="NewFolder1\" /> 
     71  </ItemGroup> 
     72  <ItemGroup> 
     73    <Compile Include="Pelattava hahmo.png"> 
     74      <Name>Pelattava hahmo</Name> 
     75      <Importer>TextureImporter</Importer> 
     76      <Processor>TextureProcessor</Processor> 
     77    </Compile> 
     78  </ItemGroup> 
    6979  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    7080  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2014/27/JesseL/Trap/Trap/TrapContent/kentta1.txt

    r5242 r5295  
    1212 
    1313 *    *       *   * 
    14  ##  ##  ##  ##  ## 
     14#########    ###########     ###############################################   
    1515 
    1616        N                                       ########################### 
Note: See TracChangeset for help on using the changeset viewer.