1
0
forked from 0ad/0ad

Carthage themed background variant commit

This was SVN commit r18967.
This commit is contained in:
Johnathan Good 2016-11-20 01:19:43 +00:00
parent 3653925a00
commit 78e31116f7
6 changed files with 69 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,23 @@
g_BackgroundLayerData.push(
[
{
"offset": (time, width) => 0.02 * width * Math.cos(0.05 * time),
"sprite": "background-carthage1-1",
"tiling": true,
},
{
"offset": (time, width) => 0.04 * width * Math.cos(0.05 * time),
"sprite": "background-carthage1-2",
"tiling": true,
},
{
"offset": (time, width) => 0.10 * width * Math.cos(0.05 * time),
"sprite": "background-carthage1-3",
"tiling": false,
},
{
"offset": (time, width) => 0.18 * width * Math.cos(0.05 * time),
"sprite": "background-carthage1-4",
"tiling": false,
},
]);

View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<sprites>
<sprite name="background-carthage1-1">
<image
texture="pregame/backgrounds/carthage1_1.png"
fixed_h_aspect_ratio="2"
round_coordinates="false"
/>
</sprite>
<sprite name="background-carthage1-2">
<image
texture="pregame/backgrounds/carthage1_2.png"
fixed_h_aspect_ratio="2"
round_coordinates="false"
/>
</sprite>
<sprite name="background-carthage1-3">
<image
texture="pregame/backgrounds/carthage1_3.png"
round_coordinates="false"
wrap_mode="clamp_to_edge"
/>
</sprite>
<sprite name="background-carthage1-4">
<image
texture="pregame/backgrounds/carthage1_4.png"
round_coordinates="false"
wrap_mode="clamp_to_edge"
/>
</sprite>
</sprites>