Skip to content

Commit

Permalink
Add documentation and CHANGELOG
Browse files Browse the repository at this point in the history
Modify error message
  • Loading branch information
GRL78 committed Jul 7, 2021
1 parent 41c6057 commit 64c569c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
- New scripting API features :
- Use `WA.room.showLayer(): void` to show a layer
- Use `WA.room.hideLayer(): void` to hide a layer
- Use `WA.room.setProperty() : void` to add or change existing property of a layer
- Use `WA.room.setProperty() : void` to add, delete or change existing property of a layer
- Use `WA.player.onPlayerMove(): void` to track the movement of the current player
- Use `WA.room.getCurrentUser(): Promise<User>` to get the ID, name and tags of the current player
- Use `WA.room.getCurrentRoom(): Promise<Room>` to get the ID, JSON map file, url of the map of the current room and the layer where the current player started
- Use `WA.ui.registerMenuCommand(): void` to add a custom menu
- Use `WA.room.setTiles(): void` to change an array of tiles
- Use `WA.room.setTiles(): void` to add, delete or change an array of tiles
- Users blocking now relies on UUID rather than ID. A blocked user that leaves a room and comes back will stay blocked.

## Version 1.4.3 - 1.4.4 - 1.4.5
Expand Down
1 change: 1 addition & 0 deletions docs/maps/api-room.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ If `tile` is a string, it's not the id of the tile but the value of the property

**Important !** : If you use `tile` as a number, be sure to add the `firstgid` of the tileset of the tile that you want to the id of the tile in Tiled Editor.

Note: If you want to unset a tile, use `setTiles` with `tile` set to `null`.

Example :
```javascript
Expand Down
6 changes: 1 addition & 5 deletions front/src/Phaser/Game/GameMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,7 @@ export class GameMap {
console.error("The tile '" + tile + "' that you want to place doesn't exist.");
}
} else {
console.error(
"The layer '" +
layer +
"' that you want to change is not a tilelayer. Tile can only be put in tilelayer."
);
console.error("The layer '" + layer + "' does not exist (or is not a tilelaye).");
}
}

Expand Down

0 comments on commit 64c569c

Please sign in to comment.