Class SkyLayer
Description class for moving clouds, as seen in TR4's City of the Dead.
Members
SkyLayer.color | (Color) RGB sky color |
SkyLayer.speed | (int) cloud speed. |
Functions
SkyLayer.new (color, speed) |
Members
- SkyLayer.color
- (Color) RGB sky color
- SkyLayer.speed
-
(int) cloud speed.
Values can be between [-32768, 32767], with positive numbers resulting in a sky that scrolls from west to east, and negative numbers resulting in one that travels east to west.
Please note that speeds outside of the range of about [-1000, 1000] will cause the sky to scroll so fast that it will no longer appear as a coherent stream of clouds. Less is more. City of The Dead, for example, uses a speed value of 16.
Functions
Methods- SkyLayer.new (color, speed)
-
Parameters:
- color Color RGB color
- speed int cloud speed
Returns:
-
A SkyLayer object.