gbrg/.git
2 months agomapgen: Added room pattern drawing.
Lukas Krickl [Mon, 16 Feb 2026 07:30:15 +0000 (08:30 +0100)]
mapgen: Added room pattern drawing.

Room patterns are template for possible rooms. For now there is just
one.

2 months agomapgen: Added map section drawing macro
Lukas Krickl [Sat, 14 Feb 2026 16:52:16 +0000 (17:52 +0100)]
mapgen: Added map section drawing macro

2 months agomapgen: added docs for generating rooms
Lukas Krickl [Fri, 13 Feb 2026 07:01:25 +0000 (08:01 +0100)]
mapgen: added docs for generating rooms

2 months agoTODO: Added not for UI
Lukas Krickl [Thu, 12 Feb 2026 11:34:43 +0000 (12:34 +0100)]
TODO: Added not for UI

2 months agomapgen: Added simple room drawing test
Lukas Krickl [Wed, 11 Feb 2026 04:46:12 +0000 (05:46 +0100)]
mapgen: Added simple room drawing test

2 months agodefs: Added tileindex enum
Lukas Krickl [Tue, 10 Feb 2026 15:36:59 +0000 (16:36 +0100)]
defs: Added tileindex enum

2 months agomapgen: the generated map is now loaded
Lukas Krickl [Tue, 10 Feb 2026 12:06:16 +0000 (13:06 +0100)]
mapgen: the generated map is now loaded

All tiles are now walls by default.

2 months agomapgen: Added basic map header
Lukas Krickl [Tue, 10 Feb 2026 10:46:57 +0000 (11:46 +0100)]
mapgen: Added basic map header

2 months agowram: Added new defs for mapgen level
Lukas Krickl [Mon, 9 Feb 2026 07:18:47 +0000 (08:18 +0100)]
wram: Added new defs for mapgen level

2 months agomapgen: wip map buffer
Lukas Krickl [Mon, 9 Feb 2026 06:41:25 +0000 (07:41 +0100)]
mapgen: wip map buffer

This buffer is used to generate a tilemap.
Added buffer clear and map seed management.

2 months agomapgen: wip added mapgen stub
Lukas Krickl [Sun, 8 Feb 2026 13:54:01 +0000 (14:54 +0100)]
mapgen: wip added mapgen stub

2 months agoplayer: target tile is now flickering anymore
Lukas Krickl [Fri, 6 Feb 2026 08:22:10 +0000 (09:22 +0100)]
player: target tile is now flickering anymore

2 months agoactor: when an enemy dies it now changes the tile type
Lukas Krickl [Fri, 6 Feb 2026 06:51:47 +0000 (07:51 +0100)]
actor: when an enemy dies it now changes the tile type

2 months agoactor: fixed actor -> actor collision
Lukas Krickl [Wed, 4 Feb 2026 04:40:19 +0000 (05:40 +0100)]
actor: fixed actor -> actor collision

The stack here was messed up due to an incorrect jump.
It is surprising this did not crash :^)

2 months agoactor: fixed endianess problem when setting actor table
Lukas Krickl [Tue, 3 Feb 2026 14:58:31 +0000 (15:58 +0100)]
actor: fixed endianess problem when setting actor table

Fixed bat not having stamina causing hp to overflow

2 months agom16: Added zero flag. Moved m16 registers to hram.
Lukas Krickl [Tue, 3 Feb 2026 06:26:48 +0000 (07:26 +0100)]
m16: Added zero flag. Moved m16 registers to hram.

2 months agomath: wip 16 bit math
Lukas Krickl [Tue, 3 Feb 2026 05:01:29 +0000 (06:01 +0100)]
math: wip 16 bit math

Reduced tick rate

2 months agomath: Added carry flag for m16
Lukas Krickl [Mon, 2 Feb 2026 16:36:42 +0000 (17:36 +0100)]
math: Added carry flag for m16

2 months agoattr: added sub16 call for attacking
Lukas Krickl [Mon, 2 Feb 2026 13:28:59 +0000 (14:28 +0100)]
attr: added sub16 call for attacking

2 months agomath: Added read m16 macros
Lukas Krickl [Mon, 2 Feb 2026 05:09:36 +0000 (06:09 +0100)]
math: Added read m16 macros

2 months agomath: Added 16 bit sub
Lukas Krickl [Sun, 1 Feb 2026 07:38:06 +0000 (08:38 +0100)]
math: Added 16 bit sub

2 months agomath: Addd 16 bit add
Lukas Krickl [Sun, 1 Feb 2026 07:31:37 +0000 (08:31 +0100)]
math: Addd 16 bit add

Added macros for storing math registers

2 months agomath: added stubs for 16 bit math
Lukas Krickl [Sat, 31 Jan 2026 14:14:22 +0000 (15:14 +0100)]
math: added stubs for 16 bit math

2 months agomath: Added 16 bit math registers
Lukas Krickl [Sat, 31 Jan 2026 11:00:55 +0000 (12:00 +0100)]
math: Added 16 bit math registers

2 months agoattributes: damage is now a 16 bit value
Lukas Krickl [Sat, 31 Jan 2026 06:08:41 +0000 (07:08 +0100)]
attributes: damage is now a 16 bit value

Added wepaon damage attack stub

2 months agoactor: Added default hp setter in tact init
Lukas Krickl [Fri, 30 Jan 2026 06:57:11 +0000 (07:57 +0100)]
actor: Added default hp setter in tact init

2 months agoaction: Added simple actor_die call when an actor is attacked
Lukas Krickl [Thu, 29 Jan 2026 08:37:48 +0000 (09:37 +0100)]
action: Added simple actor_die call when an actor is attacked

2 months agoaction: Added actor getter
Lukas Krickl [Tue, 27 Jan 2026 16:26:13 +0000 (17:26 +0100)]
action: Added actor getter

2 months agoaction: added tile getter to attack action
Lukas Krickl [Mon, 26 Jan 2026 03:22:23 +0000 (04:22 +0100)]
action: added tile getter to attack action

2 months agoplayer: Added b button action
Lukas Krickl [Sun, 25 Jan 2026 15:38:42 +0000 (16:38 +0100)]
player: Added b button action

2 months agoactions: Added stub for action calling
Lukas Krickl [Sun, 25 Jan 2026 13:54:27 +0000 (14:54 +0100)]
actions: Added stub for action calling

3 months agoplayer: Added map redraw flag
Lukas Krickl [Fri, 23 Jan 2026 10:10:20 +0000 (11:10 +0100)]
player: Added map redraw flag

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

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

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

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