diff --git a/index.html b/index.html
index ae1f9fd..7ceaf9e 100644
--- a/index.html
+++ b/index.html
@@ -42,9 +42,12 @@
.functionlist a { text-decoration: none; font-weight:bold; color: #506060; }
.functionlist a:hover { color: black; }
+ td, th { vertical-align: top; }
.doc table { margin-top: 5px; }
+ td, th { border-top: 1px dashed #ddd; }
th { text-align: left; font-weight: normal; font-style: italic; text-decoration: underline; }
- td { padding-left: 1em; }
+ td { padding-left: 1em; margin: 0; }
+ td.p { text-align: right; }
.doc td em { font-size: .8em; font-weight:bold; font-style:normal; padding-right: .6em;}
.doc pre, code { color: black; padding: 0; font-family: fixed; border: 1px solid #ddd; background: #e7ecec; }
@@ -121,8 +124,8 @@ module by clicking these:
function vector(x,y)^ top
Creates a new vector. Element access with
v.x
and
v.y
.
- Parameters: | [number]x : | x coordinate |
- | [number]y : | y coordinate |
+ Parameters: | [number]x : | x coordinate |
+ | [number]y : | y coordinate |
Returns: | the vector |
@@ -131,7 +134,7 @@ module by clicking these:
function isvector(v)^ top
Tests for vector type.
- Parameters: | v | variable to test |
+ Parameters: | v : | variable to test |
Returns: | true if v is a vector |
@@ -217,7 +220,7 @@ print(a:dist(b)) -- prints 1.4142135623731
function vector:rotated(phi)^ top
Get rotated vector. The original vector remains unchanged.
- Parameters: | [number]phi : | Rotation angle in radians. |
+ Parameters: | [number]phi : | Rotation angle in radians. |
@@ -250,7 +253,7 @@ print(a:dist(b)) -- prints 1.4142135623731
function Class(constructor)^ top
Creates a new unnamed class.
- Parameters: | [optional function]constructor |
+
---|
Parameters: | [optional function]constructor |
A function used to construct the class. The first parameter of this function
is the object, the others are parameters given upon construction. |
Returns: | the new class |
@@ -380,15 +383,15 @@ result:foo() -- error: method does not exist
function Camera(pos, zoom, rotation)^ top
- Create a new camera with position pos, zoom zoom and rotation rotation. Parameters:
+ Create a new camera with position pos, zoom zoom and rotation rotation.
- Parameters: | [optional vector]pos : |
+
---|
Parameters: | [optional vector]pos : |
Initial position of the camera. Defaults to (0,0) . |
- | [optional number]zoom : |
+
| [optional number]zoom : |
Initial zoom. Defaults to 1 . |
- | [optional number]rotation : |
+
| [optional number]rotation : |
Initial rotation in radians. Defaults to 0 . |
- Returns: | a new camera object | |
+ Returns: | a new camera object |
@@ -481,8 +484,8 @@ camera:deapply()
is the gamestate before the switch and ...
are the additionals arguments given
to Gamestate.switch
.
- Parameters: | [gamestate]to : | target gamestate. |
- | ... : | additional arguments to pass |
+ Parameters: | [gamestate]to : | target gamestate. |
+ | ... : | additional arguments to pass |
Returns: | the result of to:enter(current, ...) |
@@ -522,27 +525,25 @@ camera:deapply()
- List of callbacks
- Each gamestate can have a list of callbacks:^ top
-
- enter(previous, ...) |
- Gets called upon entering the state. Don't call this yourself, use
- Gamestate.switch instead. |
- leave() |
- Gets called upon leaving the state. The same warning as with enter applies. |
- update(dt) |
- Manully called by Gamestate.update , or automatically like love.update
- when using Gamestate.registerEvents() . |
- draw() |
- Manully called by Gamestate.draw , or automatically like love.draw |
- keypressed(key, unicode) |
- Manully called by Gamestate.keypressed , or automatically like love.keypressed |
- keyreleased(key) |
- Manully called by Gamestate.keyreleased , or automatically like love.keyreleased |
- mousereleased(x,y,btn) |
- Manully called by Gamestate.mousereleased , or automatically like love.mousereleased |
-
-
+ List of callbacks^ top
+
+ enter(previous, ...) |
+ Gets called upon entering the state. Don't call this yourself, use
+ Gamestate.switch instead. |
+ leave() |
+ Gets called upon leaving the state. The same warning as with enter applies. |
+ update(dt) |
+ Manully called by Gamestate.update , or automatically like love.update
+ when using Gamestate.registerEvents() . |
+ draw() |
+ Manully called by Gamestate.draw , or automatically like love.draw |
+ keypressed(key, unicode) |
+ Manully called by Gamestate.keypressed , or automatically like love.keypressed |
+ keyreleased(key) |
+ Manully called by Gamestate.keyreleased , or automatically like love.keyreleased |
+ mousereleased(x,y,btn) |
+ Manully called by Gamestate.mousereleased , or automatically like love.mousereleased |
+