This commit is contained in:
feroult
2019-01-01 20:23:51 -02:00
parent b1f1011053
commit 222724fc8b
3 changed files with 9 additions and 4 deletions

View File

@ -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).

View File

@ -1,5 +1,5 @@
name: tiled
description: A new Flutter project.
name: tiled_example
description: A simple tiled example
version: 1.0.0+1

View File

@ -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: