From 222724fc8b618c8fba65d532f7272351096e4ac3 Mon Sep 17 00:00:00 2001 From: feroult Date: Tue, 1 Jan 2019 20:23:51 -0200 Subject: [PATCH] tiled --- doc/components.md | 6 ++++++ examples/tiled/pubspec.yaml | 4 ++-- pubspec.yaml | 3 +-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/doc/components.md b/doc/components.md index 3b78fc556..c99acfe8c 100644 --- a/doc/components.md +++ b/doc/components.md @@ -85,3 +85,9 @@ The whole concept of a box2d's World is mapped to the `Box2DComponent` component So you can have HUD and other non-physics-related components in your game list, and also as many `Box2DComponents` as you'd like (normally one, I guess), and then add your physical entities to your Components instance. When the Component is updated, it will use box2d physics engine to properly update every child. You can see a more complete example of box2d usage on [this WIP game](https://github.com/feroult/haunt) made by @feroult (beware, though, it uses 0.6.x version of flame, but the Box2D related apis are unchanged). + +## Tiled Component + +Currently we have a very basic implementation of a Tiled component. This API uses the lib [Tiled](https://github.com/feroult/tiled.dart) to parse map files and render visible layers. + +A example of how to use the API can be found [here](https://github.com/luanpotter/flame/tree/master/examples/tiled). diff --git a/examples/tiled/pubspec.yaml b/examples/tiled/pubspec.yaml index fc393ac23..c6be49d77 100644 --- a/examples/tiled/pubspec.yaml +++ b/examples/tiled/pubspec.yaml @@ -1,5 +1,5 @@ -name: tiled -description: A new Flutter project. +name: tiled_example +description: A simple tiled example version: 1.0.0+1 diff --git a/pubspec.yaml b/pubspec.yaml index 2f4c4aa78..e14eb6ecb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,8 +15,7 @@ dependencies: path_provider: ^0.4.1 box2d_flame: ^0.4.2 synchronized: ^1.5.1+1 - tiled: - path: ../tiled.dart + tiled: any convert: ^2.0.1 dev_dependencies: