gbrg/.git
2 weeks agomapgen: Added more floor patterns
Lukas Krickl [Fri, 20 Feb 2026 07:23:07 +0000 (08:23 +0100)]
mapgen: Added more floor patterns

makefile: Added clean option that clean all generated files

2 weeks agomapgen: Fixed map seed
Lukas Krickl [Thu, 19 Feb 2026 05:03:22 +0000 (06:03 +0100)]
mapgen: Fixed map seed

Map seeds were not set correctly and restoring was also broken.

3 weeks agomapgen: Added pre-computed seeds in save game.
Lukas Krickl [Wed, 18 Feb 2026 04:32:20 +0000 (05:32 +0100)]
mapgen: Added pre-computed seeds in save game.

This change makes it easier to store which floor used which seed.

3 weeks agomapgen: Room patterns are now randomly chosen.
Lukas Krickl [Tue, 17 Feb 2026 06:59:57 +0000 (07:59 +0100)]
mapgen: Room patterns are now randomly chosen.

Added init code for mapgen seed.

3 weeks agomapgen: Added room drawing for the full map
Lukas Krickl [Mon, 16 Feb 2026 11:40:41 +0000 (12:40 +0100)]
mapgen: Added room drawing for the full map

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

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

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

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

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

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

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

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

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

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

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

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

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

5 weeks 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 :^)

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

5 weeks 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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

8 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

8 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

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

8 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

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

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

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

8 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

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

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

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

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

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

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

2 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

2 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

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

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

2 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

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

2 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

2 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

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

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

2 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

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

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

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

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

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

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

2 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

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

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

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