mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 20:13:50 +08:00
tiled
This commit is contained in:
@ -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).
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
name: tiled
|
||||
description: A new Flutter project.
|
||||
name: tiled_example
|
||||
description: A simple tiled example
|
||||
|
||||
version: 1.0.0+1
|
||||
|
||||
|
||||
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user