From 1d066decb568551619a386b04f7c353cb1179f6e Mon Sep 17 00:00:00 2001 From: Isaiah Weidl <2137144+IWeidl@users.noreply.github.com> Date: Tue, 11 Jan 2022 12:01:36 +1100 Subject: [PATCH 1/3] Update 07-6-loading-the-tilemap.html.md Added line showing required include for FlxTilemap. I found that using vscode it didn't detect this dependency automatically so I had to manually add. --- documentation/01_tutorial/07-6-loading-the-tilemap.html.md | 1 + 1 file changed, 1 insertion(+) diff --git a/documentation/01_tutorial/07-6-loading-the-tilemap.html.md b/documentation/01_tutorial/07-6-loading-the-tilemap.html.md index dea0b1d35..2a974013e 100644 --- a/documentation/01_tutorial/07-6-loading-the-tilemap.html.md +++ b/documentation/01_tutorial/07-6-loading-the-tilemap.html.md @@ -33,6 +33,7 @@ One of the great things about using Ogmo with HaxeFlixel is that there is alread var map:FlxOgmo3Loader; var walls:FlxTilemap; ``` + (`import flixel.tile.FlxTilemap;`) We're basically just creating an object to hold our Ogmo map, and then another one to hold the `FlxTilemap` that we will generate from the Ogmo map. From ea5f2b782a554e94074e48eec02fd71ce3f01bfe Mon Sep 17 00:00:00 2001 From: Isaiah Weidl <2137144+IWeidl@users.noreply.github.com> Date: Tue, 11 Jan 2022 12:08:00 +1100 Subject: [PATCH 2/3] Update 07-6-loading-the-tilemap.html.md flixel.addons.editors.ogmo.FlxOgmo3Loader is also required. --- documentation/01_tutorial/07-6-loading-the-tilemap.html.md | 1 + 1 file changed, 1 insertion(+) diff --git a/documentation/01_tutorial/07-6-loading-the-tilemap.html.md b/documentation/01_tutorial/07-6-loading-the-tilemap.html.md index 2a974013e..ed7e0d307 100644 --- a/documentation/01_tutorial/07-6-loading-the-tilemap.html.md +++ b/documentation/01_tutorial/07-6-loading-the-tilemap.html.md @@ -34,6 +34,7 @@ One of the great things about using Ogmo with HaxeFlixel is that there is alread var walls:FlxTilemap; ``` (`import flixel.tile.FlxTilemap;`) + (`import flixel.addons.editors.ogmo.FlxOgmo3Loader;`) We're basically just creating an object to hold our Ogmo map, and then another one to hold the `FlxTilemap` that we will generate from the Ogmo map. From d65b100e34ffa0f758c5668fce4d59cf141f786a Mon Sep 17 00:00:00 2001 From: Isaiah Weidl <2137144+IWeidl@users.noreply.github.com> Date: Tue, 11 Jan 2022 14:30:57 +1100 Subject: [PATCH 3/3] Update 07-6-loading-the-tilemap.html.md flixel.FlxG required for FlxG.collide() --- documentation/01_tutorial/07-6-loading-the-tilemap.html.md | 1 + 1 file changed, 1 insertion(+) diff --git a/documentation/01_tutorial/07-6-loading-the-tilemap.html.md b/documentation/01_tutorial/07-6-loading-the-tilemap.html.md index ed7e0d307..e57056d41 100644 --- a/documentation/01_tutorial/07-6-loading-the-tilemap.html.md +++ b/documentation/01_tutorial/07-6-loading-the-tilemap.html.md @@ -85,6 +85,7 @@ One of the great things about using Ogmo with HaxeFlixel is that there is alread ```haxe FlxG.collide(player, walls); ``` + (`import flixel.FlxG;`) All this does is check for overlaps between our player and the walls tilemap each `update()` call. If there are any overlaps, the objects are automatically separated from each other.