Added new post
authorLukas Krickl <lukas@krickl.dev>
Wed, 16 Jul 2025 09:14:51 +0000 (11:14 +0200)
committerLukas Krickl <lukas@krickl.dev>
Wed, 16 Jul 2025 09:14:51 +0000 (11:14 +0200)
blog.html
blog/2025-07-16-background-updates.md [new file with mode: 0644]

index e6be47f3abf03dd4fa00dd0d6712ad91c8769c22..0377394defec08c3963bfe6e9c88fa82af49227c 100644 (file)
--- a/blog.html
+++ b/blog.html
@@ -15,6 +15,7 @@
   
   <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>
diff --git a/blog/2025-07-16-background-updates.md b/blog/2025-07-16-background-updates.md
new file mode 100644 (file)
index 0000000..8f8f40a
--- /dev/null
@@ -0,0 +1,21 @@
+# 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
+