gbrg/.git
3 months agoplayer: Added target positon drawing
Lukas Krickl [Mon, 19 Jan 2026 07:12:27 +0000 (08:12 +0100)]
player: Added target positon drawing

3 months agoattr: added hp calculation
Lukas Krickl [Sat, 17 Jan 2026 15:44:02 +0000 (16:44 +0100)]
attr: added hp calculation

3 months agoplayer: reworked equipment
Lukas Krickl [Sat, 17 Jan 2026 10:17:13 +0000 (11:17 +0100)]
player: reworked equipment

Equipment is now a separate struct and not part of regular actors.
Only the player has equipment.

3 months agomacros: fixed itemdef macro
Lukas Krickl [Sat, 17 Jan 2026 07:49:48 +0000 (08:49 +0100)]
macros: fixed itemdef macro

3 months agostats: stamina is now a stat
Lukas Krickl [Sat, 17 Jan 2026 07:46:32 +0000 (08:46 +0100)]
stats: stamina is now a stat

Added item proficency as a stat requirement
Removed proficency mask

3 months agoupdate: Added auto-ticking
Lukas Krickl [Fri, 16 Jan 2026 07:41:35 +0000 (08:41 +0100)]
update: Added auto-ticking

This might be useful if the game should not be turn-based

3 months agorender: fixed flickering when moving
Lukas Krickl [Fri, 16 Jan 2026 07:34:36 +0000 (08:34 +0100)]
render: fixed flickering when moving

3 months agoactor: fixed rendering
Lukas Krickl [Fri, 16 Jan 2026 06:14:03 +0000 (07:14 +0100)]
actor: fixed rendering

Added tact set and clear to actor movement
Removed act_dir

3 months agomap uncover: uncovering now works when opening a door
Lukas Krickl [Thu, 15 Jan 2026 10:14:36 +0000 (11:14 +0100)]
map uncover: uncovering now works when opening a door

3 months agomap: wip recursive flood map uncover marker
Lukas Krickl [Thu, 15 Jan 2026 07:47:14 +0000 (08:47 +0100)]
map: wip recursive flood map uncover marker

3 months agomap: uncovering now works based entierly on the view range
Lukas Krickl [Tue, 13 Jan 2026 04:55:18 +0000 (05:55 +0100)]
map: uncovering now works based entierly on the view range

3 months agomap: wip map uncovering
Lukas Krickl [Tue, 13 Jan 2026 04:45:37 +0000 (05:45 +0100)]
map: wip map uncovering

The map uncover code will attempt to flood fill a room with uncovered
flags.
It does not work in all cases yet, but is good enough for a first test.

3 months agomaps: maps are now 32x32
Lukas Krickl [Mon, 12 Jan 2026 21:58:13 +0000 (22:58 +0100)]
maps: maps are now 32x32

3 months agotiles: made tile size smaller
Lukas Krickl [Mon, 12 Jan 2026 21:53:21 +0000 (22:53 +0100)]
tiles: made tile size smaller

3 months agomap: Added inner wall tile type
Lukas Krickl [Mon, 12 Jan 2026 16:38:41 +0000 (17:38 +0100)]
map: Added inner wall tile type

3 months agoactor: Added actor rendering
Lukas Krickl [Mon, 12 Jan 2026 15:47:33 +0000 (16:47 +0100)]
actor: Added actor rendering

3 months agodrawing: Added double buffering
Lukas Krickl [Mon, 12 Jan 2026 14:04:01 +0000 (15:04 +0100)]
drawing: Added double buffering

3 months agoplayer: Added basic movement and wall collisions
Lukas Krickl [Mon, 12 Jan 2026 13:38:58 +0000 (14:38 +0100)]
player: Added basic movement and wall collisions

3 months agoplayer: Added basic movement and rendering origin/map-direct-render
Lukas Krickl [Mon, 12 Jan 2026 12:21:44 +0000 (13:21 +0100)]
player: Added basic movement and rendering

3 months agomap: Added basic map rendering
Lukas Krickl [Mon, 12 Jan 2026 07:37:00 +0000 (08:37 +0100)]
map: Added basic map rendering

3 months agomap: wip map rendering
Lukas Krickl [Mon, 12 Jan 2026 06:38:18 +0000 (07:38 +0100)]
map: wip map rendering

3 months agoattr: removed stamina
Lukas Krickl [Mon, 12 Jan 2026 04:01:42 +0000 (05:01 +0100)]
attr: removed stamina

3 months agomap: Added flagging code to mark tiles as visible
Lukas Krickl [Sun, 11 Jan 2026 15:39:58 +0000 (16:39 +0100)]
map: Added flagging code to mark tiles as visible

3 months agowip: map rendering
Lukas Krickl [Sun, 11 Jan 2026 11:12:29 +0000 (12:12 +0100)]
wip: map rendering

3 months agomem: moved tiles to a dedicated ram bank.
Lukas Krickl [Sun, 11 Jan 2026 07:27:54 +0000 (08:27 +0100)]
mem: moved tiles to a dedicated ram bank.
Added tile canary

3 months agomap: tiles are now loaded from the actual tile table
Lukas Krickl [Sun, 11 Jan 2026 04:51:04 +0000 (05:51 +0100)]
map: tiles are now loaded from the actual tile table

3 months agoenabled 8x16 objects
Lukas Krickl [Sat, 10 Jan 2026 16:01:25 +0000 (17:01 +0100)]
enabled 8x16 objects

3 months agoremoved legacy map code and movement code
Lukas Krickl [Sat, 10 Jan 2026 15:57:22 +0000 (16:57 +0100)]
removed legacy map code and movement code

Added tile defs

3 months agoremoved unused maps
Lukas Krickl [Sat, 10 Jan 2026 15:23:33 +0000 (16:23 +0100)]
removed unused maps

3 months agoadded todo
Lukas Krickl [Sat, 10 Jan 2026 14:25:08 +0000 (15:25 +0100)]
added todo

3 months agoadded movement todo
Lukas Krickl [Sat, 10 Jan 2026 04:24:01 +0000 (05:24 +0100)]
added movement todo

3 months 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

3 months 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

3 months 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.

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

3 months 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.

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

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

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

3 months 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

3 months 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

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

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

3 months 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

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

3 months 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

3 months 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

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

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

3 months 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 months agoupdated open door tiles
Lukas Krickl [Sat, 3 Jan 2026 12:34:54 +0000 (13:34 +0100)]
updated open door tiles

3 months 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 months agoplayer: added placeholder weapon drawing
Lukas Krickl [Sat, 3 Jan 2026 10:55:52 +0000 (11:55 +0100)]
player: added placeholder weapon drawing

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

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

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

3 months 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 months agoadded more tiles
Lukas Krickl [Fri, 2 Jan 2026 06:52:47 +0000 (07:52 +0100)]
added more tiles

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

3 months 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 months 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 months 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 months 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 months 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 months 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 months 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 months 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 months agomap: Added direction vector templates
Lukas Krickl [Wed, 31 Dec 2025 14:12:33 +0000 (15:12 +0100)]
map: Added direction vector templates

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

3 months 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 months 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 months 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 months 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 months 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 months agoactor: Added actor die table
Lukas Krickl [Mon, 22 Dec 2025 05:32:03 +0000 (06:32 +0100)]
actor: Added actor die table

4 months 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 months 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

4 months 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

4 months 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

4 months 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

4 months 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.

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

4 months 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

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

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

4 months 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

4 months 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.

4 months 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.

4 months 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

4 months 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

4 months 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

4 months 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

4 months 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

4 months 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

4 months 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

4 months 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

4 months 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

4 months 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

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

4 months 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