Stabyourself.net Wiki
Advertisement
D1STd

Parallax scrolling, because it makes everything sexy.

Custom Backgrounds are a Level Flag in Mari0. They show up behind the level, with parallax scrolling if there are multiple layers.

Usage

Simply place any .png image in the "backgrounds" folder in your mappack. To add multiple layers, add incrementing numbers starting with 1 to the end of each image name. The higher the number, the lower the layer, and the further away it is from the level. If there are any places where the background is transparent, the background color will show through it.

Backgrounds can be any size, but the normal screen size is 400x224.

Some older versions require numbers at the end of the title, even if it's only one layer.

Foregrounds

Foregrounds work much the same way as backgrounds, even using the "backgrounds" folder. As the name suggests, they are rendered above the level, meaning they can block vital information if not used carefully.

Pre-SE

Adding backgrounds worked very differently in previous versions. To add one, the image name must be the same as the level (including the sublevel) with background added to the end (i.e. For 1-1, you would name it "1-1background1.png"). To add multiple layers, increase the number at the end.

Additionally, you can omit the level (i.e. "background1.png") to replace the default background. Note that aside from the default background, you cannot use the same background more than once; instead, you have to make a copy.

Version History

  • Mari0: SE Beta 1: Changed to use a folder, foregrounds added.
  • Mari0 1.5: Introduced.

Further Reading

Advertisement