Skip to content

Commit 1414821

Browse files
authored
Fix typos in tile-maps.md (endx -> endX, index on -> index 0) (#259)
1 parent 720d25e commit 1414821

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wiki/graphics/2d/tile-maps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ mapRenderer.setView(camera);
114114
Alternatively you can also specify a projection matrix and the view boundaries manually:
115115

116116
```java
117-
mapRenderer.setView(projectionMatrix, startX, startY, endx, endY);
117+
mapRenderer.setView(projectionMatrix, startX, startY, endX, endY);
118118
```
119119

120120
The view boundaries are given in the x/y plane, with the y-axis pointing upwards. The units used are specific to the map and format it was loaded from.
@@ -151,7 +151,7 @@ Layers with tiles in them are stored in
151151

152152
```java
153153
TiledMap tiledMap = loadMap(); // see below for this
154-
TiledMapTileLayer layer = (TiledMapTileLayer)tiledMap.getLayers().get(0); // assuming the layer at index on contains tiles
154+
TiledMapTileLayer layer = (TiledMapTileLayer)tiledMap.getLayers().get(0); // assuming the layer at index 0 contains tiles
155155
```
156156

157157
A TiledMapTileLayer has all the same attributes as the generic MapLayer, e.g. properties, objects and so on.

0 commit comments

Comments
 (0)