Skip to content

Commit 3505c9e

Browse files
committed
Ensure that the tilemap region is updated
1 parent 38c0b10 commit 3505c9e

File tree

1 file changed

+4
-0
lines changed
  • articles/tutorials/building_2d_games/21_customizing_gum_ui

1 file changed

+4
-0
lines changed

articles/tutorials/building_2d_games/21_customizing_gum_ui/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ The slime and bat sprites are no longer in the same position, and we have some n
132132

133133
[!code-csharp[](./snippets/atlas-definition.xml?highlight=5-16,29-32)]
134134

135+
The same is now true for the tiles in the texture atlas. Since they have been repositioned in the new texture atlas, we need to update the `region` attribute for the tilemap XML configuration file. Open the `tilemap-definition.xml` configuration file and update it to the following:
136+
137+
[!code-csharp[](./snippets/tilemap-definition.xml?highlight=3)]
138+
135139
### Adding Bitmap Fonts
136140

137141
While MonoGame natively uses [**SpriteFont**](xref:Microsoft.Xna.Framework.Graphics.SpriteFont) to draw text, Gum uses the [AngelCode Bitmap Font (.fnt)](https://www.angelcode.com/products/bmfont/) font file format. This means we will need to supply Gum with the *.fnt* file that defines our font.

0 commit comments

Comments
 (0)