Ignore:
Timestamp:
2017-06-12 12:18:40 (2 years ago)
Author:
npo17_0
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/PaavoH/UltimateAdventure/UltimateAdventure/UltimateAdventure/UltimateAdventure.cs

    r8434 r8511  
    2525    IntMeter elamaLaskuri; 
    2626 
    27     Image pelaajanKuva = LoadImage("norsu"); 
    2827    Image tahtiKuva = LoadImage("tahti"); 
    2928    Image Bpimage = LoadImage("stoneplatform"); 
     
    3837    Image Player = LoadImage("PlayerV2"); 
    3938    Image SpeedShoeImage = LoadImage("SpeedShoe"); 
    40     Image MoonstoneImage = LoadImage("Moonstone"); 
     39    //Image MoonstoneImage = LoadImage("Moonstone"); 
    4140    Image WizardrWand = LoadImage("WizardingWandV3"); 
    4241    Image LogoImage = LoadImage("LogoV1"); 
     
    107106    { 
    108107        GameObject Achivementbottom = new GameObject(300,70); 
    109         Achivementbottom.Y = Level.Top - 100; 
    110         Achivementbottom.Image = AchivementBottom; 
    111         Add(Achivementbottom); 
     108        int Acloop = 0; 
     109        while (Acloop = 10) 
     110        { 
     111            Achivementbottom.Y = Level.Top - 100; 
     112            Achivementbottom.Image = AchivementBottom; 
     113            Add(Achivementbottom); 
     114        } 
    112115        Logo.Destroy(); 
    113116        BackButton(); 
     
    345348        PhysicsObject Moonstone = PhysicsObject.CreateStaticObject(leveys, korkeus); 
    346349        Moonstone.Position = paikka; 
    347         Moonstone.Image = MoonstoneImage; 
     350        //Moonstone.Image = MoonstoneImage; 
    348351        Moonstone.Tag = "moonstone"; 
    349352        Add(Moonstone); 
     
    360363 
    361364        Timer ajastin = new Timer(); 
    362         ajastin.Interval = 0.05; 
     365        ajastin.Interval = 0.1; 
    363366        ajastin.Timeout += delegate 
    364367        { 
     
    515518        Keyboard.Listen(Key.Escape, ButtonState.Pressed, LuoPeliValikko, "Lopeta peli"); 
    516519 
    517         Keyboard.Listen(Key.A, ButtonState.Down, Liikuta, "Liikkuu vasemmalle", pelaaja1, -1.0); 
    518         Keyboard.Listen(Key.D, ButtonState.Down, Liikuta, "Liikkuu vasemmalle", pelaaja1, 1.0); 
    519         Keyboard.Listen(Key.W, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, JumpSpeed); 
     520        Keyboard.Listen(Key.A, ButtonState.Down, Liikuta, "", pelaaja1, -1.0); 
     521        Keyboard.Listen(Key.D, ButtonState.Down, Liikuta, "", pelaaja1, 1.0); 
     522        Keyboard.Listen(Key.W, ButtonState.Pressed, Hyppaa, "", pelaaja1, JumpSpeed); 
     523        Keyboard.Listen(Key.W, ButtonState.Down, Ui, "", pelaaja1); 
    520524 
    521525        Mouse.Listen(MouseButton.Left, ButtonState.Pressed, Lyo, "Pelaaja Lyö", pelaaja1); 
     
    603607    } 
    604608 
     609    void Ui (PlatformCharacter hahmo) 
     610    { 
     611        GameObject alla = GetObjectAt(hahmo.Position - new Vector(0, RUUDUN_KOKO / 2 + 2)); 
     612        if (alla != null && alla.Tag ==  "Water") 
     613        { 
     614            hahmo.Velocity = new Vector(0, 100); 
     615        } 
     616    } 
     617 
    605618    void TormaaHealtiin(PhysicsObject hahmo, PhysicsObject healt) 
    606619    { 
Note: See TracChangeset for help on using the changeset viewer.