-
-
Notifications
You must be signed in to change notification settings - Fork 493
ScriptingBackground
SuperTux Bot edited this page Dec 16, 2024
·
6 revisions
This file is auto-generated from the SuperTux source code, using the template ScriptingPage.md.
A Background
that was given a name can be manipulated by scripts.
A Background
can be accessed by its name from a script or via sector.name
from the console.
This class inherits functions and variables from the following base classes:
- LayerObject
- GameObject
Method | Explanation |
---|---|
void set_image(string image) |
Sets the background's image. |
void set_images(string top_image, string middle_image, string bottom_image) |
Sets the top, middle and bottom background images. |
void set_speed(float speed) |
Sets the background speed. |
float get_color_red() |
Returns the red color value. |
float get_color_green() |
Returns the green color value. |
float get_color_blue() |
Returns the blue color value. |
float get_color_alpha() |
Returns the alpha color value. |
void set_color(float red, float green, float blue, float alpha) |
Sets the background color. |
void fade_color(float red, float green, float blue, float alpha, float time) |
Fades to specified background color in time seconds. |
None.
None.
Home
Guidelines
Game Mechanics
Tools
Engine
- Cameras in other games
- Collision
- Configuration File
- Console
- Cutscenes
- Game_Engine
- Lighting
- Map_transformer
- Portables
- SceneGraph
- Scripting
Specifications
Milestones
- Milestone 1 Analysis
- Milestone 2 Design Document
- Milestone 2 Design Document Old
- Milestone 3 Design Document
Building (mostly outdated)
- INSTALL.md
- Building
- Building on macOS
- Building SuperTux
- Building on Windows
- Building with MXE (cross-compile)
Meetings