gbrg/.git
2 days agoplayer: Added map redraw flag master origin/HEAD origin/master
Lukas Krickl [Fri, 23 Jan 2026 10:10:20 +0000 (11:10 +0100)]
player: Added map redraw flag

3 days agomap: Added blood tile
Lukas Krickl [Thu, 22 Jan 2026 04:48:22 +0000 (05:48 +0100)]
map: Added blood tile

3 days agoplayer: target is now a vector instead of an absolute position
Lukas Krickl [Thu, 22 Jan 2026 04:07:21 +0000 (05:07 +0100)]
player: target is now a vector instead of an absolute position

4 days agoplayer: settarget now also happens in the init call
Lukas Krickl [Wed, 21 Jan 2026 04:39:32 +0000 (05:39 +0100)]
player: settarget now also happens in the init call

6 days agoplayer: Added target positon drawing
Lukas Krickl [Mon, 19 Jan 2026 07:12:27 +0000 (08:12 +0100)]
player: Added target positon drawing

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

8 days 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.

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

8 days 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

9 days 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

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

9 days 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

10 days 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

10 days 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

12 days 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

12 days 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.

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

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

12 days 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

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

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

12 days 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

13 days 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

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

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

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

13 days 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

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

2 weeks 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

2 weeks 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

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

2 weeks 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

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

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

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

3 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

3 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

3 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

5 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