Changeset 2438 for 2011/26


Ignore:
Timestamp:
2011-07-05 11:37:55 (12 years ago)
Author:
osmavanh
Message:
 
Location:
2011/26/OssiV/sotapeli/sotapeli/sotapeli
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • 2011/26/OssiV/sotapeli/sotapeli/sotapeli/kentta1.txt

    r2436 r2438  
    1919       *    *           V                     #############                 # 
    2020       ##  ##                     V           #                            # 
    21                                               #                           £ 
     21                                              #                           # 
    2222     *        *                               #        V                 # 
    2323V    ##  ##  ##                       V       ############################ 
  • 2011/26/OssiV/sotapeli/sotapeli/sotapeli/sotapeli.csproj

    r2396 r2438  
    121121      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 
    122122    </Content> 
     123    <None Include="kentta2" /> 
    123124  </ItemGroup> 
    124125  <ItemGroup> 
  • 2011/26/OssiV/sotapeli/sotapeli/sotapeli/tasohyppely.cs

    r2436 r2438  
    4848    } 
    4949 
     50 
    5051    void luoKentta() 
    5152    { 
     
    6263        Level.CreateBorders(); 
    6364        Level.Background.CreateGradient(Color.White, Color.SkyBlue); 
     65 
     66        GameObject tausta = new GameObject(Level.Width, Level.Height); 
     67        //tausta.Image = taustanKuva; 
     68        Add(tausta, -3); 
     69 
     70        Level.AmbientLight = 0.1; 
     71        Light valo = new Light(); 
     72        valo.Intensity = 1.0; 
     73        valo.Distance = 150; 
     74        valo.Position = pelaaja2.Position; 
     75        Add(valo); 
     76 
    6477    } 
    6578 
     
    195208 
    196209 
     210 
     211 
    197212        return pelaaja2; 
    198213    } 
     
    363378        kohta1.Position = new Vector(0, 40); 
    364379        valikonKohdat.Add(kohta1); 
    365  
     380      
    366381        Label kohta2 = new Label("Lopeta"); 
    367         kohta2.Position = new Vector(0, -40); 
     382        kohta2.Position = new Vector(0, -80); 
    368383        valikonKohdat.Add(kohta2); 
     384 
    369385 
    370386        foreach (Label valikonKohta in valikonKohdat) 
     
    375391        Mouse.ListenOn(kohta1, MouseButton.Left, ButtonState.Pressed, AloitaAlusta, null); 
    376392        Mouse.ListenOn(kohta2, MouseButton.Left, ButtonState.Pressed, Exit, null); 
     393       
    377394 
    378395        Mouse.IsCursorVisible = true; 
     
    513530 
    514531 
     532 
    515533    public class Pahis : PhysicsObject 
    516534    { 
Note: See TracChangeset for help on using the changeset viewer.