misc/theme_editor.html
branchui-scaling
changeset 15283 c4fd2813b127
parent 13606 ba6648614cd7
equal deleted inserted replaced
13390:0135e64c6c66 15283:c4fd2813b127
    31                         ctx.fillText('Loading Images...', 32, 212);
    31                         ctx.fillText('Loading Images...', 32, 212);
    32                     }
    32                     }
    33 
    33 
    34                     sky = new Image();
    34                     sky = new Image();
    35                     sky.onload = tryToDraw;
    35                     sky.onload = tryToDraw;
    36                     sky.src = 'http://hedgewars.googlecode.com/hg/share/hedgewars/Data/Themes/Nature/Sky.png';
    36                     sky.src = 'https://hg.hedgewars.org/hedgewars/raw-file/tip/share/hedgewars/Data/Themes/Nature/Sky.png';
    37 
    37 
    38                     clouds = new Image();
    38                     clouds = new Image();
    39                     clouds.onload = tryToDraw;
    39                     clouds.onload = tryToDraw;
    40                     clouds.src = 'http://hedgewars.googlecode.com/hg/share/hedgewars/Data/Graphics/Clouds.png';
    40                     clouds.src = 'https://hg.hedgewars.org/hedgewars/raw-file/tip/share/hedgewars/Data/Graphics/Clouds.png';
    41 
    41 
    42                     horizont = new Image();
    42                     horizont = new Image();
    43                     horizont.onload = tryToDraw;
    43                     horizont.onload = tryToDraw;
    44                     horizont.src = 'http://hedgewars.googlecode.com/hg/share/hedgewars/Data/Themes/Nature/horizont.png';
    44                     horizont.src = 'https://hg.hedgewars.org/hedgewars/raw-file/tip/share/hedgewars/Data/Themes/Nature/horizont.png';
    45 
    45 
    46                     land = new Image();
    46                     land = new Image();
    47                     land.onload = tryToDraw;
    47                     land.onload = tryToDraw;
    48                     land.src = 'http://hedgewars.googlecode.com/hg/share/hedgewars/Data/Themes/Nature/LandTex.png';
    48                     land.src = 'https://hg.hedgewars.org/hedgewars/raw-file/tip/share/hedgewars/Data/Themes/Nature/LandTex.png';
    49 
    49 
    50                     border = new Image();
    50                     border = new Image();
    51                     border.onload = tryToDraw;
    51                     border.onload = tryToDraw;
    52                     border.src = 'http://hedgewars.googlecode.com/hg/share/hedgewars/Data/Themes/Nature/Border.png';
    52                     border.src = 'https://hg.hedgewars.org/hedgewars/raw-file/tip/share/hedgewars/Data/Themes/Nature/Border.png';
    53 
    53 
    54                     water = new Image();
    54                     water = new Image();
    55                     water.onload = tryToDraw;
    55                     water.onload = tryToDraw;
    56                     water.src = 'http://hedgewars.googlecode.com/hg/share/hedgewars/Data/Graphics/BlueWater.png';
    56                     water.src = 'https://hg.hedgewars.org/hedgewars/raw-file/tip/share/hedgewars/Data/Graphics/BlueWater.png';
    57 
    57 
    58                     landArray = new Array(512);
    58                     landArray = new Array(512);
    59                     for (var x = 0; x < landArray.length; x++)
    59                     for (var x = 0; x < landArray.length; x++)
    60                         landArray[x] = landFunction(x);
    60                         landArray[x] = landFunction(x);
    61 
    61