You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+44-40
Original file line number
Diff line number
Diff line change
@@ -17,61 +17,65 @@ Please note that this package depends on openfl-tiled.
17
17
18
18
To install the current development version you just need to run this in your terminal:
19
19
20
-
haxelib git openfl-tiled-flixel git@github.com:kasoki/openfl-tiled-flixel.git dev
20
+
haxelib git openfl-tiled-flixel https://github.com/kasoki/openfl-tiled-flixel dev
21
21
22
22
### Usage
23
23
24
24
You just need to use FlxTiledMap instead of TiledMap:
25
25
26
-
var map = FlxTiledMap.fromAssets("assets/map.tmx");
27
-
28
-
this.add(map); // FlxTiledMap is a FlxGroup
26
+
```haxe
27
+
var map = FlxTiledMap.fromAssets("assets/map.tmx");
28
+
29
+
this.add(map); // FlxTiledMap is a FlxGroup
30
+
```
29
31
30
32
Each layer is a FlxGroup of FlxSprites (each tile is a FlxSprite) which are not active (which means that the update method is not called). If you want to make a layer active to use it e.g. for collision detection read the snippet below:
0 commit comments