Ethosa 3 år sedan
förälder
incheckning
8f2819a73b
2 ändrade filer med 4 tillägg och 2 borttagningar
  1. 2 1
      README.md
  2. 2 1
      src/nodesnim/nodes2d/tilemap.nim

+ 2 - 1
README.md

@@ -67,7 +67,7 @@ This section contains links to documentation for all nodes.
 |[Enums][]       |[AudioStreamPlayer][]|[Label][]             |[YSort][]           |                    |                    |
 |[Exceptions][]  |[AnimationPlayer][]  |[Button][]            |[CollisionShape2D][]|                    |                    |
 |[Image][]       |                     |[EditText][]          |[Camera2D][]        |                    |                    |
-|[Input][]       |                     |[Box][]               |                    |                    |                    |
+|[Input][]       |                     |[Box][]               |[TileMap][]         |                    |                    |
 |[Rect2][]       |                     |[HBox][]              |                    |                    |                    |
 |[Vector2][]     |                     |[VBox][]              |                    |                    |                    |
 |[Circle2][]     |                     |[GridBox][]           |                    |                    |                    |
@@ -183,6 +183,7 @@ Use the [`Nim compiler user guide`](https://nim-lang.org/docs/nimc.html#dynlibov
 [KinematicBody2D]:https://ethosa.github.io/nodesnim/nodesnim/nodes2d/kinematic_body2d.html
 [Camera2D]:https://ethosa.github.io/nodesnim/nodesnim/nodes2d/camera2d.html
 [Node2D]:https://ethosa.github.io/nodesnim/nodesnim/nodes2d/node2d.html
+[TileMap]:https://ethosa.github.io/nodesnim/nodesnim/nodes2d/tilemap.html
 
 [Node3D]:https://ethosa.github.io/nodesnim/nodesnim/nodes3d/node3d.html
 [GeometryInstance]:https://ethosa.github.io/nodesnim/nodesnim/nodes3d/geometry_instance.html

+ 2 - 1
src/nodesnim/nodes2d/tilemap.nim

@@ -22,7 +22,7 @@ type
 proc TileMap*(name: string = "TileMap"): TileMapRef =
   ## Creates a new TileMap object.
   runnableExamples:
-    var tilemap = TileMap("MyTileMap")
+    var mytilemap = TileMap("MyTileMap")
   nodepattern(TileMapRef)
   node2dpattern()
   result.map_size = (x: 25, y: 25)
@@ -33,6 +33,7 @@ proc TileMap*(name: string = "TileMap"): TileMapRef =
 
 
 method draw*(self: TileMapRef, w, h: GLfloat) =
+  ## this method uses in the `window.nim`.
   {.warning[LockLevel]: off.}
   procCall self.Node2DRef.draw(w, h)
   let