-
-
Notifications
You must be signed in to change notification settings - Fork 491
ScriptingDisplayEffect
SuperTux Bot edited this page Aug 12, 2024
·
7 revisions
This file is auto-generated from the SuperTux source code, using the template ScriptingPage.md.
DisplayEffect
is an interface for toying with the display.
SuperTux creates an instance named Effect
when starting the scripting engine. Its usage is preferred – creating another instance might have unexpected side effects and is strongly discouraged. (Use sector.Effect
in the console.)
This class inherits functions and variables from the following base classes:
Method | Explanation |
---|---|
void fade_out(float time) |
Gradually fades out the screen to black for the next time seconds. |
void fade_in(float time) |
Gradually fades in the screen from black for the next time seconds. |
void set_black(bool black) |
Blackens or un-blackens the screen (depending on the value of black ). |
bool is_black() |
Returns true if the screen has been blackened by set_black . |
void sixteen_to_nine(float time) |
Sets the display ratio to 16:9, effectively adding black bars at the top and bottom of the screen. |
void four_to_three(float time) |
Sets the display ratio to 4:3, removing the black bars added by sixteen_to_nine() . |
Variable | Explanation |
---|---|
bool black |
Determines whether the screen has been blackened. |
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