Ignore:
Timestamp:
2014-07-04 13:04:51 (6 years ago)
Author:
mijoilmo
Message:
 
File:
1 edited

Legend:

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

    r5448 r5457  
    4141    void LoadAllImages() 
    4242    { 
    43         images["space_background"] = LoadImage("graphics/backgrounds/Space"); 
     43        images["space_background-0"] = LoadImage("graphics/backgrounds/Space0"); 
     44        images["space_background-1"] = LoadImage("graphics/backgrounds/Space-1"); 
     45        images["space_background-2"] = LoadImage("graphics/backgrounds/Space-2"); 
     46        images["space_background-3"] = LoadImage("graphics/backgrounds/Space-3"); 
    4447        images["mars_background"] = LoadImage("graphics/backgrounds/Mars"); 
    4548        images["planet1_background"] = LoadImage("graphics/backgrounds/planet1"); 
     
    7477 
    7578        ProtoLevel level = this.levels[levelId]; 
    76         MessageDisplay.Add("loading level '" + level.TileMapSrc + "'..."); 
     79        //MessageDisplay.Add("loading level '" + level.TileMapSrc + "'..."); 
    7780        currentLevel = level; 
    7881 
     
    111114            } 
    112115            Layers[-3].RelativeTransition = new Vector(0.06, 0.06); 
     116            Layers[-2].RelativeTransition = new Vector(0.08, 0.08); 
     117            Layers[-1].RelativeTransition = new Vector(0.1, 0.1); 
    113118        } 
    114119 
     
    116121        initializeHUD(); 
    117122    } 
    118     void CreateBg(string id, string valettaId, int offset, double scale = 1) 
     123    void CreateBg(string id, string valettaId, int offset, double scale = 1, int layer = -3) 
    119124    { 
    120125        double h = 1, w = 1; 
     
    144149            bg.Y += Level.Height * offset; 
    145150        } 
    146         Add(bg, -3); 
     151        Add(bg, layer); 
    147152    } 
    148153    void LevelFromImage(ProtoLevel level) 
     
    205210        else 
    206211        { 
    207             CreateBg(level.BackgroundId, "", 0, 0.06); 
     212            CreateBg("space_background-3", "", 0, 0.06); 
     213            CreateBg("space_background-2", "", 0, 0.07,-2); 
     214            CreateBg("space_background-1", "", 0, 0.08,-1); 
     215            //CreateBg("space_background-0", "", 0, 0.09,0); 
    208216        } 
    209217    } 
Note: See TracChangeset for help on using the changeset viewer.