-
Notifications
You must be signed in to change notification settings - Fork 1
Textures
Textures are used to display the levers and platforms with. The way these are build can differ based on it being a platform or lever as well as the type.
This files are located in the respective types textures
folder
E.g.: switchBlocksMod\platforms\sand\textures\platform_sand.xnb
For all lever types the texture has to be twice the width of the in-game lever, the left and right half are rendered based on state with the on state on the left side and the off state on the right.
auto
, basic
, and countdown
platform textures are exactly the size of the in-game platform.
sand
platforms foreground and background textures follow the same rules as the textures for levers, twice as wide.
The scrolling texture should be at least the height of the foreground/background texture, the texture is an image with the top and bottom connecting smoothly. It is required to have at least one of the foreground or background texture set.
A lever texture twice the width of the in-game lever with its states to the left and right
A platform texture with the size of the in-game platform
A sand platform background and a foreground texture twice the width of the in-game platform and as high as the in-game platform.
As mentioned before the texture should connect smoothly, the red and blue line were added to clarify that these two parts will be next to each other.