Changeset 2425


Ignore:
Timestamp:
2011-07-01 12:36:58 (12 years ago)
Author:
saselamp
Message:
 
Location:
2011/26/JimiL/Pelit/pelit22/world of Chuckland fix fix
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 2011/26/JimiL/Pelit/pelit22/world of Chuckland fix fix/world of Chuckland fix fix/Peli.cs

    r2405 r2425  
    66using Jypeli.Effects; 
    77using Jypeli.Widgets; 
     8 
     9 
     10 
     11 
     12class PeliHahmo : PhysicsObject 
     13{ 
     14    public int Elamat = 3; 
     15    
     16    public Vector RespausKoordinaatit = Vector.Zero; 
     17 
     18    public PeliHahmo(double width, double height) 
     19        : base(width, height) 
     20    { 
     21    } 
     22 
     23} 
     24         
     25     
     26 
    827 
    928public class Peli : PhysicsGame 
     
    142161    } 
    143162 
    144     PhysicsObject lisaavesi() 
    145     { 
    146         PhysicsObject vesi = PhysicsObject.CreateStaticObject(50, 50); 
     163    GameObject lisaavesi() 
     164    { 
     165        GameObject vesi = new GameObject(50, 50); 
    147166        vesi.Image = vesiKuva; 
    148167        vesi.Tag = "kerattava6"; 
    149168 
    150169 
    151         Add(vesi); 
     170       
    152171        return vesi; 
    153172        
     
    163182        return lehti; 
    164183    } 
    165     PhysicsObject lisaapuu() 
    166     { 
    167         PhysicsObject puu = PhysicsObject.CreateStaticObject(50, 50); 
     184    GameObject lisaapuu() 
     185    { 
     186        GameObject puu = new GameObject(50, 50); 
    168187        puu.Image = puuKuva; 
    169188        puu.Tag = "kerattava8"; 
    170189 
    171         Add(puu); 
     190         
    172191        return puu; 
    173192    } 
    174     PhysicsObject lisaakivi() 
    175     { 
    176         PhysicsObject kivi = PhysicsObject.CreateStaticObject(50, 50); 
     193    GameObject lisaakivi() 
     194    { 
     195        GameObject kivi = new GameObject(50, 50); 
    177196        kivi.Image = kiviKuva; 
    178197        kivi.Tag = "kerattava9"; 
    179         Add(kivi); 
     198        
    180199        return kivi; 
    181200    } 
     
    239258        pelaaja2 = new PlatformCharacter(50, 100); 
    240259        pelaaja2.Mass = 4.0; 
    241         pelaaja2.Image = pelaajanKuva; 
     260        pelaaja2.Image = heppukuva; 
    242261        pelaaja2.Tag = "pelaaja2"; 
    243262        pelaaja2.Weapon = new PlasmaCannon(50, 20); 
    244263        pelaaja2.Weapon.ProjectileCollision = AmmusOsui; 
    245  
     264         
     265 
     266         
    246267 
    247268 
     
    272293        Keyboard.Listen(Key.E, ButtonState.Released, sulkeeinventory, "sulkee inventoryn"); 
    273294        Keyboard.Listen(Key.G, ButtonState.Pressed, kranaatti, "heittää kranata"); 
     295        Keyboard.Listen(Key.Right, ButtonState.Down, liikuta, "Liikkuu oikelalle", pelaaja1, nopeus); 
    274296        Keyboard.Listen(Key.Left, ButtonState.Down, liikuta, "Liikkuu vasemmalle", pelaaja1, -nopeus); 
    275         Keyboard.Listen(Key.Right, ButtonState.Down, liikuta, "Liikkuu vasemmalle", pelaaja1, nopeus); 
    276297        Keyboard.Listen(Key.Up, ButtonState.Pressed, hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 
    277298        Keyboard.Listen(Key.Space, ButtonState.Down, AmmuAseella, "Ammu"); 
    278299 
    279300        ControllerOne.Listen(Button.Back, ButtonState.Pressed, Exit, "Poistu pelistä"); 
    280         ControllerOne.ListenAnalog(AnalogControl.RightTrigger, 0.1, AmmuAseella2, "omg lol wtf"); 
     301      ControllerOne. ListenAnalog(AnalogControl.RightTrigger , 0.1, AmmuAseella2, "omg lol wtf"); 
    281302        ControllerOne.Listen(Button.DPadLeft, ButtonState.Down, liikuta, "Pelaaja liikkuu vasemmalle", pelaaja2, -nopeus); 
    282303        ControllerOne.Listen(Button.DPadRight, ButtonState.Down, liikuta, "Pelaaja liikkuu oikealle", pelaaja2, nopeus); 
  • 2011/26/JimiL/Pelit/pelit22/world of Chuckland fix fix/world of Chuckland fix fix/kentta1.txt

    r2405 r2425  
    1010                               ///////            //////////                    //                                   //////                /(/       )                 //// 
    1111                               ///(///            ////))////      N     E     ////             //////                //(//                 /(/       )                //(// 
    12                                ///(///           /////))/////               ///(///            //////               ///(//                  (  ==#####====              (                        /// 
     12                               ///(///           /////))/////               ///(///            //////               ///(//                  (  ===========              (                        /// 
    1313                                  (                   ))                       (              ///(////                 (                  ==(==###########===           (                        /(/ 
    1414                                  (                   ))                       (                 (          H          (                ==#####%%%%##########==         (                         ( 
    1515                                  (                   ))               xxx     (                 (                     (              ==#######################==       (             ===================== 
    1616;;;;;;;;;;;;;;;;;;;;;;;;=================================;;;;;;;;;;;;;;;;;;===========================================================#############%#############======================#####################;;;;;;;;;;;;;;;;;;;;;;;; 
    17 ;;;;;;;;;;;;;;;;;;;;;;;;###########%%###########%%%%######;;;;;;;;;;;;;;;;########################################################%%%%%%%###################################################################;;;;;;;;;;;;;;;;;;;;;;;; 
    18 ;;;;;;;;;;;;;;;;;;;;;;;;#####%%%###########################;;;;;;;;;;;;#####################%%%%###################%%#######################################################################################;;;;;;;;;;;;;;;;;;;;;;;; 
    19 ;;;;;;;;;;;;;;;;;;;;;;;;###############################################################################################%%###########%%%#####################################################################;;;;;;;;;;;;;;;;;;;;;;;; 
     17;;;;;;;;;;;;;;;;;;;;;;;;###########%%###########%%%%####==;;;;;;;;;;;;;;;;====#####################################################%%%%%%%###################################################################;;;;;;;;;;;;;;;;;;;;;;;; 
     18;;;;;;;;;;;;;;;;;;;;;;;;#####%%%#########################==;;;;;;;;;;;;=====################%%%%###################%%#######################################################################################;;;;;;;;;;;;;;;;;;;;;;;; 
     19;;;;;;;;;;;;;;;;;;;;;;;;##################################==============###############################################%%###########%%%#####################################################################;;;;;;;;;;;;;;;;;;;;;;;; 
    2020;;;;;;;;;;;;;;;;;;;;;;;;############%%%%%%%#############################################%#################%%%%##############################################################################################;;;;;;;;;;;;;;;;;;;;;;;; 
    2121;;;;;;;;;;;;;;;;;;;;;;;;########################################^^####^^########%%%##############################%%###############%%########################################################################;;;;;;;;;;;;;;;;;;;;;;;; 
  • 2011/26/JimiL/Pelit/pelit22/world of Chuckland fix fix/world of Chuckland fix fixContent/world of Chuckland fix fixContent.contentproj

    r2372 r2425  
    213213    </Compile> 
    214214  </ItemGroup> 
     215  <ItemGroup> 
     216    <Compile Include="rajahdys.png"> 
     217      <Name>rajahdys</Name> 
     218      <Importer>TextureImporter</Importer> 
     219      <Processor>TextureProcessor</Processor> 
     220    </Compile> 
     221  </ItemGroup> 
    215222  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    216223  <!--  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.