Changeset 2570 for 2011/31


Ignore:
Timestamp:
2011-08-05 10:02:41 (8 years ago)
Author:
jemapalm
Message:

Talletus.

Location:
2011/31/JesseP
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • 2011/31/JesseP/pelini/pelini/pelini/Peli.cs

    r2547 r2570  
    2121    Image vii = LoadImage("vii"); 
    2222    Image vii2 = LoadImage("vii2"); 
    23     Image Ohjeet = LoadImage("tausta2"); 
     23    Image Ohjeet1 = LoadImage("tausta3"); 
    2424    public override void Begin() { valikko(); } 
    2525 
     
    2828        ClearAll(); 
    2929        Level.Background.Image = Taustakuva; 
     30        Level.Background.FitToLevel(); 
     31        Level.BackgroundColor = Color.Black; 
     32        Camera.ZoomToLevel(); 
     33 
    3034        valikonKohdat = new List<Label>(); 
    31         Level.Background.FitToLevel(); 
    32         Camera.ZoomToLevel(); 
    3335 
    3436        Label kohta1 = new Label("Aloita uusi peli"); 
     
    5153        Mouse.ListenOn(kohta1, MouseButton.Left, ButtonState.Pressed, AloitaPeli, null); 
    5254        Mouse.ListenOn(kohta2, MouseButton.Left, ButtonState.Pressed, Exit, null); 
    53         Mouse.ListenOn(kohta3, MouseButton.Left, ButtonState.Pressed, ShowControlHelp, null); 
     55        Mouse.ListenOn(kohta3, MouseButton.Left, ButtonState.Pressed, Ohjeet, null); 
    5456 
    5557        MessageDisplay.TextColor = Color.Red; 
     
    9496        kohta3.Position = new Vector(0, 0); 
    9597        valikonKohdat.Add(kohta3); 
    96  
    97         Image Ohjeet.Tag = "tausta2"; 
     98        Level.Background.Image = Ohjeet1; 
     99        Level.Background.FitToLevel(); 
     100        //Image Ohjeet2 = "tausta2"; 
    98101    } 
    99102 
    100103    void LuoKentta() 
    101104    { 
    102  
     105         
    103106        Level.BackgroundColor = Color.Green; 
    104107 
     
    119122        alaReuna.IsVisible = false; 
    120123 
    121         Camera.ZoomToLevel(); 
     124         
    122125        Luomaali(Level.Left + 15.0, 0.0); 
    123126        luomaali2(Level.Right - 15.0, 0.0); 
     
    125128        Level.Background.Image = jalkapallokenttä; 
    126129        Level.Background.FitToLevel(); 
    127  
     130        Camera.ZoomToLevel(); 
    128131 
    129132        PhysicsObject vasenylä = PhysicsObject.CreateStaticObject(70.0, 70.0); 
  • 2011/31/JesseP/pelini/pelini/peliniContent/peliniContent.contentproj

    r2547 r2570  
    9898    </Compile> 
    9999  </ItemGroup> 
     100  <ItemGroup> 
     101    <Compile Include="tausta3.png"> 
     102      <Name>tausta3</Name> 
     103      <Importer>TextureImporter</Importer> 
     104      <Processor>TextureProcessor</Processor> 
     105    </Compile> 
     106  </ItemGroup> 
    100107  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    101108  <!--  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.