From 9e44b9867befec2913dc3d36a04c68e0189fb49d Mon Sep 17 00:00:00 2001 From: Stan Date: Thu, 9 May 2019 17:46:48 +0000 Subject: [PATCH] Fix the kush background stuttering. Patch by: @Polakrity Reviewed by: @Stan Differential Revision: https://code.wildfiregames.com/D1758 This was SVN commit r22259. --- .../public/gui/pregame/backgrounds/kush.js | 18 ++++++++--------- .../public/gui/pregame/backgrounds/kush.xml | 20 +++++++++++++++---- 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/binaries/data/mods/public/gui/pregame/backgrounds/kush.js b/binaries/data/mods/public/gui/pregame/backgrounds/kush.js index 004da31d77..f90a8bcc3c 100644 --- a/binaries/data/mods/public/gui/pregame/backgrounds/kush.js +++ b/binaries/data/mods/public/gui/pregame/backgrounds/kush.js @@ -1,23 +1,23 @@ g_BackgroundLayerData.push( [ { - "offset": (time, width) => 0.02 * width * Math.cos(0.05 * time), + "offset": (time, width) => 0.07 * width * Math.cos(0.1 * time), "sprite": "background-kush1-1", - "tiling": true, + "tiling": true }, { - "offset": (time, width) => 0.04 * width * Math.cos(0.1 * time), + "offset": (time, width) => 0.05 * width * Math.cos(0.1 * time), "sprite": "background-kush1-2", - "tiling": true, + "tiling": true }, { - "offset": (time, width) => 0.04 * width * Math.cos(0.15 * time), + "offset": (time, width) => 0.04 * width * Math.cos(0.1 * time) + 0.01 * width * Math.cos(0.04 * time), "sprite": "background-kush1-3", - "tiling": true, + "tiling": true }, { - "offset": (time, width) => -40, + "offset": (time, width) => -0.1, "sprite": "background-kush1-4", - "tiling": false, - }, + "tiling": true + } ]); diff --git a/binaries/data/mods/public/gui/pregame/backgrounds/kush.xml b/binaries/data/mods/public/gui/pregame/backgrounds/kush.xml index 253010a746..1d91c6c450 100644 --- a/binaries/data/mods/public/gui/pregame/backgrounds/kush.xml +++ b/binaries/data/mods/public/gui/pregame/backgrounds/kush.xml @@ -1,15 +1,27 @@ - + - + - + - +