Seleucid main menu background

This was SVN commit r18968.
This commit is contained in:
LordGood
2016-11-20 20:02:41 +00:00
parent 78e31116f7
commit 0fa69f9983
5 changed files with 53 additions and 0 deletions
@@ -0,0 +1,18 @@
g_BackgroundLayerData.push(
[
{
"offset": (time, width) => 0.05 * width * Math.cos(0.02 * time),
"sprite": "background-seleucid1_1",
"tiling": true,
},
{
"offset": (time, width) => 0.10 * width * Math.cos(0.04 * time),
"sprite": "background-seleucid1_2",
"tiling": true,
},
{
"offset": (time, width) => 0.17 * width * Math.cos(0.05 * time) + width/8,
"sprite": "background-seleucid1_3",
"tiling": false,
},
]);
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<sprites>
<sprite name="background-seleucid1_1">
<image
texture="pregame/backgrounds/seleucid1_1.png"
fixed_h_aspect_ratio="2"
round_coordinates="false"
/>
</sprite>
<sprite name="background-seleucid1_2">
<image
texture="pregame/backgrounds/seleucid1_2.png"
round_coordinates="false"
fixed_h_aspect_ratio="2"
/>
</sprite>
<sprite name="background-seleucid1_3">
<image
texture="pregame/backgrounds/seleucid1_3.png"
round_coordinates="false"
wrap_mode="clamp_to_edge"
/>
</sprite>
</sprites>