From: Lukas Krickl Date: Wed, 16 Jul 2025 09:14:51 +0000 (+0200) Subject: Added new post X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=f9b229e50d2cd1a051fa24c2091dbcf610aefd2c;p=website%2F.git Added new post --- diff --git a/blog.html b/blog.html index e6be47f..0377394 100644 --- a/blog.html +++ b/blog.html @@ -15,6 +15,7 @@

Posts

+
diff --git a/blog/2025-07-16-background-updates.md b/blog/2025-07-16-background-updates.md new file mode 100644 index 0000000..8f8f40a --- /dev/null +++ b/blog/2025-07-16-background-updates.md @@ -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 +