Changeset 5311 for 2014/27


Ignore:
Timestamp:
2014-07-02 22:05:15 (5 years ago)
Author:
mijoilmo
Message:

Level.cs on nyt oma tiedosto. Lisäsin basic supportin mistä tietää onko level planeetta vai avaruus. Muokkasin kuvia korkeammiksi (TEE KUVAT NIIN, ETTÄ AINAKIN PUOLET KENTÄN KORKEUDESTA ON TYHJÄÄ)

Location:
2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor
Files:
1 added
13 edited

Legend:

Unmodified
Added
Removed
  • 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Player.cs

    r5308 r5311  
    5959            this.X = parent.Level.Right; 
    6060        } 
     61        if (parent.CurrentLevel.IsPlanet&&this.Y>parent.Level.Top) { 
     62            //player pystyy lähteä pois planeetalta kun menee tarpeeksi ylös 
     63            //TODO: vaihda leveli spaceksi 
     64            if(false){} 
     65        } 
    6166    } 
    6267} 
  • 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor.cs

    r5308 r5311  
    66using Jypeli.Effects; 
    77using Jypeli.Widgets; 
    8  
    9  
    108 
    119public class Proto236b : PhysicsGame //true survivor 
     
    1816    private Dictionary<string, Image[]> imageLists = new Dictionary<string, Image[]>(); 
    1917    public Dictionary<string, Image[]> ImageLists { get { return imageLists; } set { imageLists = value; } } 
    20  
     18    private ProtoLevel currentLevel; 
     19    public ProtoLevel CurrentLevel { get { return currentLevel; } set { currentLevel = value; } } 
    2120 
    2221    void AssignKeys() 
     
    3736        images["tile0"] = LoadImage("graphics/tiles/tile0"); 
    3837    } 
    39     void LoadLevel(string level) 
     38    void LoadLevel(ProtoLevel level) 
    4039    { 
    4140        ClearAll(); 
     41        currentLevel = level; 
    4242        Add(this.player); 
    4343        Camera.Follow(this.player); 
    4444        AssignKeys(); 
    45         LevelFromImage("graphics/levels/" + level); 
     45        LevelFromImage("graphics/levels/" + level.TileMapSrc); 
    4646    } 
    4747    void LevelFromImage(string levelName) 
     
    8989        this.player = new Player(this); 
    9090        this.player.IsUpdated = true; 
    91         LoadLevel("0"); 
     91        LoadLevel(new ProtoLevel("0",true));//tää on huono metodi, TODO: luo level-classit ennen lataamista 
    9292    } 
    9393} 
  • 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor.csproj

    r5307 r5311  
    117117    <Compile Include="Protokolla236TrueSurvivor.cs" /> 
    118118    <Compile Include="Properties\AssemblyInfo.cs" /> 
     119    <Compile Include="ProtoLevel.cs" /> 
    119120  </ItemGroup> 
    120121  <ItemGroup> 
  • 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivorContent/obj/x86/Debug/ContentPipeline.xml

    r5306 r5311  
    1818      <Options>None</Options> 
    1919      <Output>D:\Csharp feat jypeli\AleksanteriV2014\Protokolla236TrueSurvivor\Protokolla236TrueSurvivor\Protokolla236TrueSurvivor\bin\x86\Debug\Content\graphics\levels\0.xnb</Output> 
    20       <Time>2014-07-02T20:22:40.0743597+03:00</Time> 
     20      <Time>2014-07-02T22:02:23.9784939+03:00</Time> 
    2121    </Item> 
    2222    <Item> 
Note: See TracChangeset for help on using the changeset viewer.