<article>
<h2>Posts</h2>
+ <ul><li><a href="./blog/2025-07-16-background-updates.html">2025-06-27 gbrg movement</a></li></ul>
<ul><li><a href="./blog/2025-06-27-gbrg-movement.html">2025-06-27 gbrg movement</a></li></ul>
<ul><li><a href="./blog/2025-06-22-hello-blog.html">2025-06-22 Hello Blog</a></li></ul>
</article>
--- /dev/null
+# Background updates and map loading
+## 2025-07-16
+
+For the past few days I've been working on a system for updating background tiles and loading maps.
+
+The map loader itself is pretty simple as it stands. Right now it simply disables the LCD and performs tilesheet loads, actor loads and background loads.
+Once the map is fully loaded the player's position is adjusted and the LCD is turned back on.
+
+For some features such as updating the UI, or a planned feature to reveal rooms as doors are opened updating the tilemap during gameplay is required.
+For this I now have a pretty simple linear drawing subroutine that takes in a starting address, number of steps and a BG target address.
+It then copies a set amount of tiles in VBLANK until the step counter is 0.
+
+This system can likely be improved upon a *lot* but for now it is more than enough.
+Next up I'd like to implement the aforementioned door opening system to allow for a more dynamic and surprising map layout.
+
+There was not a lot to report on in terms of gameplay, but things are going in a good direction!
+
+Until next time
+
+Lukas
+