Adjust documentation

This commit is contained in:
oakes
2014-04-09 12:16:59 -04:00
parent cd9cebb8e0
commit 1c28968d20
2 changed files with 4 additions and 4 deletions

View File

@@ -118,11 +118,11 @@
"joint!" :methods}
"Label" {"label" :methods
"label!" :methods}
"MapLayer" {"basic-map-layer" :methods
"basic-map-layer!" :methods}
"Material" {"material" :methods
"material!" :methods}
"MathUtils" {"math!" :static-methods}
"MapLayer" {"basic-map-layer" :methods
"basic-map-layer!" :methods}
"Matrix3" {"matrix-3" :methods
"matrix-3!" :methods}
"Matrix4" {"matrix-4" :methods

View File

@@ -166,7 +166,7 @@ from the tiled map in `screen` from the given `layer` and position `x` and `y`.
from the tiled map in `screen` that matches `layer`. This is necessary for
non-tile layers, like object and image layers.
(basic-map-layer screen \"water\")"
(basic-map-layer screen \"objects\")"
[screen layer & options]
`(let [^MapLayer object# (basic-map-layer* ~screen ~layer)]
(u/calls! object# ~@options)))
@@ -174,7 +174,7 @@ non-tile layers, like object and image layers.
(defmacro basic-map-layer!
"Calls a single method on a `basic-map-layer`.
(basic-map-layer! (basic-map-layer screen \"water\")
(basic-map-layer! (basic-map-layer screen \"objects\")
:set-visible false)"
[object k & options]
`(u/call! ^MapLayer ~object ~k ~@options))