This wiki has been moved to https://github.com/SuperTux/wiki into the mediawiki branch.

ScriptingCamera

From SuperTux
Revision as of 05:42, 25 June 2007 by RavuAlHemio (Talk | contribs)

Jump to: navigation, search


Summary

Camera is an interface to manipulate the camera.

Instances

An instance named Camera (sector.Camera in the console) is available. (Note: doesn't having a class and an eponymous instance create a potential for conflicts? We should probably rename the instance or the class.)

Methods

shake(float time, float x, float y) Warning: This function has not yet been implemented.
set_pos(float x, float y) Warning: This function has not yet been implemented.
set_mode(string modestring) This function sets the camera mode. Valid values for modestring are "normal" and "manual".
scroll_to(float x, float y, float time) Scrolls the camera to (x, y) within time seconds.

Constants

None