-
-
Notifications
You must be signed in to change notification settings - Fork 539
ScriptingWind
Lennard Hofmann edited this page Dec 6, 2020
·
6 revisions
A Wind object that was given a name can be controlled by scripts.
A Wind
is instantiated by a definition in the level file. It can be accessed by scripts using its name
and from the console as sector.name
.
Example of a definition:
(wind
(name "WIND1")
(blowing #f)
(speed-x 0)
(speed-y -600)
(acceleration 3)
(width 32)
(height 64)
(x 783)
(y 768)
)
The above object will be exposed under the name WIND1 in the scripting engine. Example usage:
WIND1.start();
Console access:
sector.WIND1.stop()
Method | Explanation |
---|---|
start() |
start blowing |
stop() |
stop blowing |
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