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

Difference between revisions of "ScriptingCamera"

From SuperTux
Jump to: navigation, search
m (Methods)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
  
= Summary =
+
== Summary ==
 
<tt>Camera</tt> is an interface to manipulate the camera.
 
<tt>Camera</tt> is an interface to manipulate the camera.
  
= Methods =
+
== Instances ==
 +
An instance named <tt>Camera</tt> (<tt>sector.Camera</tt> 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 ==
 
{| class="objectlist"
 
{| class="objectlist"
 
! class="method"| shake(float time, float x, float y)
 
! class="method"| shake(float time, float x, float y)
Line 19: Line 22:
 
|}
 
|}
  
= Constants =
+
== Constants ==
  
 
None
 
None
  
 
[[Category:Scripting Reference]]
 
[[Category:Scripting Reference]]

Revision as of 05:42, 25 June 2007


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