Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/pregame/backgrounds/kush.js
Show All 10 Lines | [ | ||||
"tiling": true, | "tiling": true, | ||||
}, | }, | ||||
{ | { | ||||
"offset": (time, width) => 0.04 * width * Math.cos(0.15 * time), | "offset": (time, width) => 0.04 * width * Math.cos(0.15 * time), | ||||
"sprite": "background-kush1-3", | "sprite": "background-kush1-3", | ||||
"tiling": true, | "tiling": true, | ||||
}, | }, | ||||
{ | { | ||||
"offset": (time, width) => -40, | "offset": (time, width) => -55, | ||||
Stan: If you reduce the height of the window it will break IIRC hence why I left the guard a bit on… | |||||
"sprite": "background-kush1-4", | "sprite": "background-kush1-4", | ||||
"tiling": false, | "tiling": false, | ||||
}, | }, | ||||
]); | ]); |
Wildfire Games · Phabricator
If you reduce the height of the window it will break IIRC hence why I left the guard a bit on the edge. Clamping would be nice ...