# Tiled maps: examples updated (see the new "strategy game demo"), API and docs improvements (how to determine tile picked by mouse, and more)

**URL:** https://forum.castle-engine.io/t/tiled-maps-examples-updated-see-the-new-strategy-game-demo-api-and-docs-improvements-how-to-determine-tile-picked-by-mouse-and-more/815
**Category:** News
**Created:** [May 21, 2023, 9:35am UTC](https://forum.castle-engine.io/t/tiled-maps-examples-updated-see-the-new-strategy-game-demo-api-and-docs-improvements-how-to-determine-tile-picked-by-mouse-and-more/815 "2023-05-21T09:35:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)
#### Post date: [May 21, 2023, 9:35am UTC](https://forum.castle-engine.io/t/tiled-maps-examples-updated-see-the-new-strategy-game-demo-api-and-docs-improvements-how-to-determine-tile-picked-by-mouse-and-more/815/1 "2023-05-21T09:35:06Z")

</div>

| [![Strategy game demo](https://forum.castle-engine.io/uploads/default/original/2X/3/3c288fe93fa48d06f44eb748de93fc48100e2832.png)](https://castle-engine.io/wp/wp-content/uploads/2023/05/screenshot-3.png "Strategy game demo") |
| [![Tiled map](https://forum.castle-engine.io/uploads/default/original/2X/6/6b3008184cd2fa7515338911066e814fa917fe56.png)](https://castle-engine.io/wp/wp-content/uploads/2023/05/screenshot-2.png "Tiled map") |

1. Example [examples/tiled/strategy\_game\_demo](https://github.com/castle-engine/castle-engine/tree/master/examples/tiled/strategy_game_demo) was upgraded to use our new [TCastleTiledMap](https://castle-engine.io/tiled_maps) component. This is a complete turn-based strategy game using our Tiled integration!

2. `TCastleTiledMap.TileRectangle` method added. Useful to position something at given map tile.

3. [Tiled docs have been extended](https://castle-engine.io/tiled_maps) to describe some new features, and in particular new section [Determine tile indicated by mouse](https://castle-engine.io/tiled_maps#tile_under_mouse) was added. It’s rather easy, but there are at least 2 approaches to do it and they deserve proper explanation 🙂

4. Small thing: `TCastleTiledMap.Map` is now `TCastleTiledMap.Data`, it’s just a better property name. Old name is deprecated.

5. Small thing: The `examples/tiled/map_viewer_in_viewport` has been renamed to just [examples/tiled/map\_viewer](https://github..com/castle-engine/castle-engine/tree/master/examples/tiled/map_viewer).
