gbrg/.git
2 weeks agoadded movement todo
Lukas Krickl [Sat, 10 Jan 2026 04:24:01 +0000 (05:24 +0100)]
added movement todo

2 weeks agoadded TODO for new map drawing routine
Lukas Krickl [Sat, 10 Jan 2026 04:19:38 +0000 (05:19 +0100)]
added TODO for new map drawing routine

2 weeks agomap: reverted render buffer to use 14x20 tiles
Lukas Krickl [Sat, 10 Jan 2026 04:14:16 +0000 (05:14 +0100)]
map: reverted render buffer to use 14x20 tiles

2 weeks agowram: moved render buffer to 0xD000. Increased the render buffer size to
Lukas Krickl [Fri, 9 Jan 2026 15:46:43 +0000 (16:46 +0100)]
wram: moved render buffer to 0xD000. Increased the render buffer size to
fit an actual tile map.

2 weeks agorender: Added stub for rendering
Lukas Krickl [Fri, 9 Jan 2026 04:57:37 +0000 (05:57 +0100)]
render: Added stub for rendering

2 weeks agomap: removed hard coded map renderer
Lukas Krickl [Thu, 8 Jan 2026 18:00:57 +0000 (19:00 +0100)]
map: removed hard coded map renderer

Reduced map viewport to 16x10 tiles.
Removed map rendering code for hard coded viewport.

2 weeks agoadded assets as module
Lukas Krickl [Thu, 8 Jan 2026 17:30:36 +0000 (18:30 +0100)]
added assets as module

2 weeks agomap: Added pillar sprite
Lukas Krickl [Wed, 7 Jan 2026 04:58:30 +0000 (05:58 +0100)]
map: Added pillar sprite

2 weeks agoTODO: Added map todos
Lukas Krickl [Tue, 6 Jan 2026 17:02:22 +0000 (18:02 +0100)]
TODO: Added map todos

2 weeks agodoors: reverted doors to be blank
Lukas Krickl [Tue, 6 Jan 2026 14:27:49 +0000 (15:27 +0100)]
doors: reverted doors to be blank

2 weeks agoplayer: Added overlay drawing for player weapon
Lukas Krickl [Tue, 6 Jan 2026 04:53:46 +0000 (05:53 +0100)]
player: Added overlay drawing for player weapon

2 weeks agoLICENSE: Updated year
Lukas Krickl [Mon, 5 Jan 2026 06:17:22 +0000 (07:17 +0100)]
LICENSE: Updated year

2 weeks agosprite overlay: Added oam alloc
Lukas Krickl [Mon, 5 Jan 2026 06:15:49 +0000 (07:15 +0100)]
sprite overlay: Added oam alloc

2 weeks agotiles: bank8800 is now not assuming 8x16 objects anymore
Lukas Krickl [Sun, 4 Jan 2026 16:30:40 +0000 (17:30 +0100)]
tiles: bank8800 is now not assuming 8x16 objects anymore

2 weeks agosprite: Added overlay sprite def
Lukas Krickl [Sun, 4 Jan 2026 15:20:42 +0000 (16:20 +0100)]
sprite: Added overlay sprite def

2 weeks agosprites: Added build step for sprite overlays
Lukas Krickl [Sun, 4 Jan 2026 11:35:39 +0000 (12:35 +0100)]
sprites: Added build step for sprite overlays

2 weeks agotiles: Added comment to tile banks indicating that they were generated
Lukas Krickl [Sun, 4 Jan 2026 11:27:37 +0000 (12:27 +0100)]
tiles: Added comment to tile banks indicating that they were generated
by a tool

2 weeks agocleanup of directory structure
Lukas Krickl [Sun, 4 Jan 2026 11:25:49 +0000 (12:25 +0100)]
cleanup of directory structure

3 weeks agoupdated l1
Lukas Krickl [Sat, 3 Jan 2026 15:53:43 +0000 (16:53 +0100)]
updated l1

3 weeks agomap: reworked door tiles to give a better viewport
Lukas Krickl [Sat, 3 Jan 2026 15:32:17 +0000 (16:32 +0100)]
map: reworked door tiles to give a better viewport

3 weeks agoupdated open door tiles
Lukas Krickl [Sat, 3 Jan 2026 12:34:54 +0000 (13:34 +0100)]
updated open door tiles

3 weeks agoui: the UI window is now taller.
Lukas Krickl [Sat, 3 Jan 2026 12:05:06 +0000 (13:05 +0100)]
ui: the UI window is now taller.

3 weeks agoplayer: added placeholder weapon drawing
Lukas Krickl [Sat, 3 Jan 2026 10:55:52 +0000 (11:55 +0100)]
player: added placeholder weapon drawing

3 weeks agomaps: adjusting wall templates
Lukas Krickl [Sat, 3 Jan 2026 10:16:26 +0000 (11:16 +0100)]
maps: adjusting wall templates

3 weeks agobank: Added more banks
Lukas Krickl [Sat, 3 Jan 2026 09:58:05 +0000 (10:58 +0100)]
bank: Added more banks

3 weeks agoAdded basic story.md
Lukas Krickl [Sat, 3 Jan 2026 03:53:20 +0000 (04:53 +0100)]
Added basic story.md

3 weeks agofar center door is now making distance more clear
Lukas Krickl [Fri, 2 Jan 2026 09:15:31 +0000 (10:15 +0100)]
far center door is now making distance more clear

3 weeks agoadded more tiles
Lukas Krickl [Fri, 2 Jan 2026 06:52:47 +0000 (07:52 +0100)]
added more tiles

3 weeks agomap: Added far wall rendering
Lukas Krickl [Fri, 2 Jan 2026 06:21:16 +0000 (07:21 +0100)]
map: Added far wall rendering

3 weeks agomap: Added more wall templates
Lukas Krickl [Fri, 2 Jan 2026 06:02:54 +0000 (07:02 +0100)]
map: Added more wall templates

Fixed east/west direction vectors.

3 weeks agomap: Added new rendering templates.
Lukas Krickl [Fri, 2 Jan 2026 04:49:26 +0000 (05:49 +0100)]
map: Added new rendering templates.

The new templates are for walls that should be in the viewport to the
left and right of the player.

3 weeks agoupdate: fixed rendering of actors...
Lukas Krickl [Thu, 1 Jan 2026 16:51:14 +0000 (17:51 +0100)]
update: fixed rendering of actors...

The code was in fact not correctly checking if an exit was present.

3 weeks agoupdate: actors now do not render anymore when the path is blocked. origin/map-render-rework
Lukas Krickl [Thu, 1 Jan 2026 16:32:11 +0000 (17:32 +0100)]
update: actors now do not render anymore when the path is blocked.

3 weeks agomaps: rendering now works as before
Lukas Krickl [Thu, 1 Jan 2026 16:05:59 +0000 (17:05 +0100)]
maps: rendering now works as before

actors can still be seen and attacked through walls.

3 weeks agomaps: Added near center wall drawing
Lukas Krickl [Thu, 1 Jan 2026 11:45:58 +0000 (12:45 +0100)]
maps: Added near center wall drawing

3 weeks agomap: Fixed tile march for far wall/door rendering
Lukas Krickl [Thu, 1 Jan 2026 07:45:21 +0000 (08:45 +0100)]
map: Fixed tile march for far wall/door rendering

3 weeks agomap: wip rewriting renderer
Lukas Krickl [Wed, 31 Dec 2025 16:19:27 +0000 (17:19 +0100)]
map: wip rewriting renderer

Removed all references to old system of storing near and far tiles.
Replaced it with direction vectors.
Added map get tile n steps in a direction.
Added macro to easily load directions and actor locations.

3 weeks agomap: Added direction vector templates
Lukas Krickl [Wed, 31 Dec 2025 14:12:33 +0000 (15:12 +0100)]
map: Added direction vector templates

3 weeks agomap: wip refactor map drawing
Lukas Krickl [Wed, 31 Dec 2025 12:09:29 +0000 (13:09 +0100)]
map: wip refactor map drawing

3 weeks agomap: Added stub for tile props
Lukas Krickl [Tue, 30 Dec 2025 06:03:41 +0000 (07:03 +0100)]
map: Added stub for tile props

3 weeks agotmx2map: the tool now only converts bg layers to a bg map
Lukas Krickl [Mon, 29 Dec 2025 06:10:08 +0000 (07:10 +0100)]
tmx2map: the tool now only converts bg layers to a bg map

3 weeks agomap: Added flags1 to tiles
Lukas Krickl [Mon, 29 Dec 2025 05:11:39 +0000 (06:11 +0100)]
map: Added flags1 to tiles

Fixed a bug that caused the tile loader to break when the tile struct is
modified.

4 weeks agoitems: Added damage type to items
Lukas Krickl [Mon, 22 Dec 2025 07:08:38 +0000 (08:08 +0100)]
items: Added damage type to items

4 weeks agocombat: moved combat info to a struct
Lukas Krickl [Mon, 22 Dec 2025 06:04:08 +0000 (07:04 +0100)]
combat: moved combat info to a struct

4 weeks agoactor: Added actor die table
Lukas Krickl [Mon, 22 Dec 2025 05:32:03 +0000 (06:32 +0100)]
actor: Added actor die table

4 weeks agoplayer: Fixed attribute table in init
Lukas Krickl [Sun, 21 Dec 2025 16:01:58 +0000 (17:01 +0100)]
player: Fixed attribute table in init

4 weeks agoactor: added init attr code for player
Lukas Krickl [Sun, 21 Dec 2025 11:38:56 +0000 (12:38 +0100)]
actor: added init attr code for player

5 weeks agoactor: Attributes are now stored as a ptr in the actor struct
Lukas Krickl [Sun, 21 Dec 2025 11:00:44 +0000 (12:00 +0100)]
actor: Attributes are now stored as a ptr in the actor struct

5 weeks agoattr: Added getter for actor attr table
Lukas Krickl [Sat, 20 Dec 2025 22:19:32 +0000 (23:19 +0100)]
attr: Added getter for actor attr table

5 weeks agoattr: added stub for attack damage calculation
Lukas Krickl [Sat, 20 Dec 2025 18:07:02 +0000 (19:07 +0100)]
attr: added stub for attack damage calculation

5 weeks agoactor: it is now possible for the player to remove actor
Lukas Krickl [Sat, 20 Dec 2025 17:51:43 +0000 (18:51 +0100)]
actor: it is now possible for the player to remove actor

This will eventually be turned into an attack system.

5 weeks agodefs: Added item struct
Lukas Krickl [Sat, 20 Dec 2025 07:18:45 +0000 (08:18 +0100)]
defs: Added item struct

5 weeks agoactor: Added proficiency and item equipment slots
Lukas Krickl [Sat, 20 Dec 2025 06:21:36 +0000 (07:21 +0100)]
actor: Added proficiency and item equipment slots

5 weeks agoattrs: wip attribute management
Lukas Krickl [Fri, 19 Dec 2025 18:08:25 +0000 (19:08 +0100)]
attrs: wip attribute management

5 weeks agoattr: added attribute stubs
Lukas Krickl [Fri, 19 Dec 2025 16:00:45 +0000 (17:00 +0100)]
attr: added attribute stubs

5 weeks agomap: turning now causes oam to be cleared
Lukas Krickl [Fri, 19 Dec 2025 15:02:28 +0000 (16:02 +0100)]
map: turning now causes oam to be cleared

This prevents actors from drawing on top of a wall when turning

5 weeks agoactor: Adjusted draw routine y and x coordinates
Lukas Krickl [Fri, 19 Dec 2025 12:28:08 +0000 (13:28 +0100)]
actor: Adjusted draw routine y and x coordinates

This makes the perspective look better.

5 weeks agol1: changed map layout
Lukas Krickl [Fri, 19 Dec 2025 11:27:29 +0000 (12:27 +0100)]
l1: changed map layout

map render: Added some constants for door states instead of using magic numbers.

5 weeks agodrawing: Added furthest tile to allow actor visibility 2 tiles ahead
Lukas Krickl [Fri, 19 Dec 2025 04:43:02 +0000 (05:43 +0100)]
drawing: Added furthest tile to allow actor visibility 2 tiles ahead

5 weeks agoactors are now rendered using a near and far tile system rather than pointers
Lukas Krickl [Thu, 18 Dec 2025 22:03:29 +0000 (23:03 +0100)]
actors are now rendered using a near and far tile system rather than pointers

This will help prevent stale actor data being rendered

5 weeks agoactor: Added simple bat script
Lukas Krickl [Thu, 18 Dec 2025 16:54:21 +0000 (17:54 +0100)]
actor: Added simple bat script

Added actor update call when player moves

5 weeks agoactors: Added basic drawing routine for bats
Lukas Krickl [Thu, 18 Dec 2025 08:54:27 +0000 (09:54 +0100)]
actors: Added basic drawing routine for bats

5 weeks agoactor: added collision checks for tiles that contain an active actor
Lukas Krickl [Thu, 18 Dec 2025 08:41:10 +0000 (09:41 +0100)]
actor: added collision checks for tiles that contain an active actor

5 weeks agoactor: Added actor init code and tables for update and draw calls
Lukas Krickl [Thu, 18 Dec 2025 08:14:24 +0000 (09:14 +0100)]
actor: Added actor init code and tables for update and draw calls

5 weeks agoactor: Added act nearby and prop nearby
Lukas Krickl [Thu, 18 Dec 2025 05:47:52 +0000 (06:47 +0100)]
actor: Added act nearby and prop nearby

Added stubs for updating and drawing actors

5 weeks agoactor: act_move_frward and back now perform collision checks internally
Lukas Krickl [Wed, 17 Dec 2025 13:52:21 +0000 (14:52 +0100)]
actor: act_move_frward and back now perform collision checks internally

5 weeks agoplayer: actors can now write their pointer to the tile they are located at
Lukas Krickl [Wed, 17 Dec 2025 13:44:16 +0000 (14:44 +0100)]
player: actors can now write their pointer to the tile they are located at

5 weeks agotiles: Added prop ptr to tiles
Lukas Krickl [Wed, 17 Dec 2025 10:09:14 +0000 (11:09 +0100)]
tiles: Added prop ptr to tiles

5 weeks agoplayer: fixed turn direction
Lukas Krickl [Wed, 17 Dec 2025 07:15:32 +0000 (08:15 +0100)]
player: fixed turn direction

5 weeks agoui: minimap is now a regular UI element rendered with tiles
Lukas Krickl [Wed, 17 Dec 2025 05:05:54 +0000 (06:05 +0100)]
ui: minimap is now a regular UI element rendered with tiles

5 weeks agomap: doors are now rendered using templates
Lukas Krickl [Tue, 16 Dec 2025 21:46:22 +0000 (22:46 +0100)]
map: doors are now rendered using templates

This makes it easier to change the door style later on.

5 weeks agomaps: wip map rendering with doors
Lukas Krickl [Tue, 16 Dec 2025 17:33:14 +0000 (18:33 +0100)]
maps: wip map rendering with doors

5 weeks agomap: wip rendering ahead and doors
Lukas Krickl [Tue, 16 Dec 2025 16:08:49 +0000 (17:08 +0100)]
map: wip rendering ahead and doors

5 weeks agomap: Added template maps for dungeon drawing
Lukas Krickl [Tue, 16 Dec 2025 13:28:26 +0000 (14:28 +0100)]
map: Added template maps for dungeon drawing

Added example of map draw loader

5 weeks agodebug: Added debug minimap
Lukas Krickl [Tue, 16 Dec 2025 06:38:44 +0000 (07:38 +0100)]
debug: Added debug minimap

5 weeks agomaps: Changed map layout loader
Lukas Krickl [Tue, 16 Dec 2025 05:46:55 +0000 (06:46 +0100)]
maps: Changed map layout loader

The map data now contains only flags.
The loader only loads flags into memory. All other tile data is cleared on load.

5 weeks agoactor: fixed west and east direction mixup
Lukas Krickl [Mon, 15 Dec 2025 22:04:42 +0000 (23:04 +0100)]
actor: fixed west and east direction mixup

5 weeks agomap: wip mapeditor tile loader and directional movement
Lukas Krickl [Mon, 15 Dec 2025 21:15:20 +0000 (22:15 +0100)]
map: wip mapeditor tile loader and directional movement

5 weeks agomap: Added test map
Lukas Krickl [Mon, 15 Dec 2025 15:22:25 +0000 (16:22 +0100)]
map: Added test map

5 weeks agoplayer: Added basic movement
Lukas Krickl [Mon, 15 Dec 2025 14:58:22 +0000 (15:58 +0100)]
player: Added basic movement

5 weeks agoplayer: wip movement on grid
Lukas Krickl [Mon, 15 Dec 2025 12:48:29 +0000 (13:48 +0100)]
player: wip movement on grid

5 weeks agotiles: Added tiles for drawing the map
Lukas Krickl [Mon, 15 Dec 2025 09:49:20 +0000 (10:49 +0100)]
tiles: Added tiles for drawing the map

5 weeks agoplayer: Added turning mechanics
Lukas Krickl [Mon, 15 Dec 2025 07:31:08 +0000 (08:31 +0100)]
player: Added turning mechanics

5 weeks agomap: refactoring added direction vecotrs and directions to actor
Lukas Krickl [Mon, 15 Dec 2025 05:34:53 +0000 (06:34 +0100)]
map: refactoring added direction vecotrs and directions to actor

Reworking tile defs

5 weeks agoAdded TODO
Lukas Krickl [Mon, 15 Dec 2025 04:20:10 +0000 (05:20 +0100)]
Added TODO

5 weeks agochore: removed player collision and gravity routines
Lukas Krickl [Sun, 14 Dec 2025 21:46:52 +0000 (22:46 +0100)]
chore: removed player collision and gravity routines

5 weeks agomap: reworked tile bank in map header to use a bank table instead
Lukas Krickl [Sun, 14 Dec 2025 15:47:46 +0000 (16:47 +0100)]
map: reworked tile bank in map header to use a bank table instead

6 weeks agomap: map transitioon loads now fixes player position
Lukas Krickl [Sun, 14 Dec 2025 07:21:19 +0000 (08:21 +0100)]
map: map transitioon loads now fixes player position

map transitions now use the correct map for flag reads.

6 weeks agomap: Added full reload code
Lukas Krickl [Sat, 13 Dec 2025 06:49:55 +0000 (07:49 +0100)]
map: Added full reload code

6 weeks agomap loader: wip added full redraw flag
Lukas Krickl [Sat, 13 Dec 2025 05:10:10 +0000 (06:10 +0100)]
map loader: wip added full redraw flag

6 weeks agomap: Added map settings load call to allow loading maps for partial redraws
Lukas Krickl [Fri, 12 Dec 2025 08:47:26 +0000 (09:47 +0100)]
map: Added map settings load call to allow loading maps for partial redraws

6 weeks agomap: wip map transitons
Lukas Krickl [Fri, 12 Dec 2025 06:57:43 +0000 (07:57 +0100)]
map: wip map transitons

6 weeks agocollision: moved collision data to hram
Lukas Krickl [Thu, 11 Dec 2025 04:41:15 +0000 (05:41 +0100)]
collision: moved collision data to hram

6 weeks agoactor: Added more collision points
Lukas Krickl [Wed, 10 Dec 2025 04:45:07 +0000 (05:45 +0100)]
actor: Added more collision points

This allows tile collision to sample more points for better collision detection.

6 weeks agoplayer: improved collision box
Lukas Krickl [Tue, 9 Dec 2025 14:32:06 +0000 (15:32 +0100)]
player: improved collision box

gravity: gravity now peaks jump if it is being applied

6 weeks agodebug: Added debug collision display
Lukas Krickl [Tue, 9 Dec 2025 04:24:29 +0000 (05:24 +0100)]
debug: Added debug collision display

6 weeks agoplayer: Added player max jump
Lukas Krickl [Mon, 8 Dec 2025 10:41:57 +0000 (11:41 +0100)]
player: Added player max jump

6 weeks agoplayer: wip jumping
Lukas Krickl [Mon, 8 Dec 2025 08:49:16 +0000 (09:49 +0100)]
player: wip jumping

6 weeks agomap: Added single wall tile
Lukas Krickl [Mon, 8 Dec 2025 05:10:37 +0000 (06:10 +0100)]
map: Added single wall tile

tmx2map now warns if a tile is not mapped.

6 weeks agosys: optimized oamalloc slightly
Lukas Krickl [Mon, 8 Dec 2025 04:50:15 +0000 (05:50 +0100)]
sys: optimized oamalloc slightly