gbrg/.git
7 weeks agoenemy: added demo actor draw
Lukas Krickl [Sat, 20 Sep 2025 06:07:10 +0000 (08:07 +0200)]
enemy: added demo actor draw

7 weeks agoMerge pull request 'position rework and movement rework' (#6) from movement-rework...
unlink2 [Sat, 20 Sep 2025 05:14:24 +0000 (07:14 +0200)]
Merge pull request 'position rework and movement rework' (#6) from movement-rework into master

Reviewed-on: https://codeberg.org/unlink2/gbrg/pulls/6

7 weeks agoactor: wip 16 bit positions origin/movement-rework
Lukas Krickl [Sat, 20 Sep 2025 04:22:11 +0000 (06:22 +0200)]
actor: wip 16 bit positions

8 weeks agoactor: Added generic actor draw function
Lukas Krickl [Fri, 19 Sep 2025 16:27:17 +0000 (18:27 +0200)]
actor: Added generic actor draw function

8 weeks agoactor: wip actor drawing
Lukas Krickl [Fri, 19 Sep 2025 15:45:07 +0000 (17:45 +0200)]
actor: wip actor drawing

8 weeks agomap: Added initial pattern page draw
Lukas Krickl [Fri, 19 Sep 2025 14:52:03 +0000 (16:52 +0200)]
map: Added initial pattern page draw

8 weeks agomap: Added def macros for various structs
Lukas Krickl [Fri, 19 Sep 2025 12:32:36 +0000 (14:32 +0200)]
map: Added def macros for various structs

8 weeks agomap: Re-added tile bank loader
Lukas Krickl [Fri, 19 Sep 2025 09:23:24 +0000 (11:23 +0200)]
map: Re-added tile bank loader

8 weeks agodefs: wip rowpatterns
Lukas Krickl [Fri, 19 Sep 2025 08:48:34 +0000 (10:48 +0200)]
defs: wip rowpatterns

8 weeks agoremoved most test maps
Lukas Krickl [Fri, 19 Sep 2025 07:58:35 +0000 (09:58 +0200)]
removed most test maps

8 weeks agorework: Removed existing map setup and actor code
Lukas Krickl [Fri, 19 Sep 2025 07:32:56 +0000 (09:32 +0200)]
rework: Removed existing map setup and actor code

8 weeks agoupdated todo
Lukas Krickl [Fri, 19 Sep 2025 06:40:50 +0000 (08:40 +0200)]
updated todo

8 weeks agoTODO: Added todo for mapobjects
Lukas Krickl [Fri, 19 Sep 2025 06:25:02 +0000 (08:25 +0200)]
TODO: Added todo for mapobjects

8 weeks agoadded more todos
Lukas Krickl [Fri, 19 Sep 2025 05:14:40 +0000 (07:14 +0200)]
added more todos

8 weeks agoTODO: Added note
Lukas Krickl [Fri, 19 Sep 2025 05:12:20 +0000 (07:12 +0200)]
TODO: Added note

8 weeks agomovement: Fixed tile collision checks and exits
Lukas Krickl [Fri, 19 Sep 2025 05:00:04 +0000 (07:00 +0200)]
movement: Fixed tile collision checks and exits

8 weeks agoposition rework: positions are now absolute pixels
Lukas Krickl [Fri, 19 Sep 2025 03:50:31 +0000 (05:50 +0200)]
position rework: positions are now absolute pixels

This of course broke various components

8 weeks agoadded more todos
Lukas Krickl [Thu, 18 Sep 2025 17:09:11 +0000 (19:09 +0200)]
added more todos

8 weeks agoTODO: Added todo note
Lukas Krickl [Thu, 18 Sep 2025 03:33:57 +0000 (05:33 +0200)]
TODO: Added todo note

8 weeks agoremoved BREAK
Lukas Krickl [Tue, 16 Sep 2025 10:07:48 +0000 (12:07 +0200)]
removed BREAK

8 weeks agomapgen: fixed hl being corruped when setting actor positions.
Lukas Krickl [Tue, 16 Sep 2025 10:07:09 +0000 (12:07 +0200)]
mapgen: fixed hl being corruped when setting actor positions.

8 weeks agomapgen: disabled act sg during initial map load
Lukas Krickl [Tue, 16 Sep 2025 09:53:56 +0000 (11:53 +0200)]
mapgen: disabled act sg during initial map load

8 weeks agomapgen: fixed typo
Lukas Krickl [Tue, 16 Sep 2025 07:05:25 +0000 (09:05 +0200)]
mapgen: fixed typo

8 weeks agoaudio: Added simple attack noise
Lukas Krickl [Mon, 15 Sep 2025 20:06:28 +0000 (22:06 +0200)]
audio: Added simple attack noise

8 weeks agoaudio: Added walk and door open sound
Lukas Krickl [Mon, 15 Sep 2025 19:12:58 +0000 (21:12 +0200)]
audio: Added walk and door open sound

8 weeks agoutil: Added strz macro
Lukas Krickl [Mon, 15 Sep 2025 03:36:18 +0000 (05:36 +0200)]
util: Added strz macro

2 months agodebug: Added jump to debug routines
Lukas Krickl [Sun, 14 Sep 2025 16:58:46 +0000 (18:58 +0200)]
debug: Added jump to debug routines

2 months agodebug: made debug menu interactive
Lukas Krickl [Sun, 14 Sep 2025 15:59:11 +0000 (17:59 +0200)]
debug: made debug menu interactive

2 months agodebug: Added stub for debug menu
Lukas Krickl [Sun, 14 Sep 2025 10:34:57 +0000 (12:34 +0200)]
debug: Added stub for debug menu

2 months agoanimation: fixed timer sometimes skipping the end frame
Lukas Krickl [Sun, 14 Sep 2025 05:21:56 +0000 (07:21 +0200)]
animation: fixed timer sometimes skipping the end frame

This fix simply replaced the equality check with a greater than check.

2 months agoanimations: Added new attack animations to all unit types
Lukas Krickl [Sun, 14 Sep 2025 03:40:57 +0000 (05:40 +0200)]
animations: Added new attack animations to all unit types

Currently there seems to be an issue where the animations play longer than the timer.

2 months agoanimations: Added animation loading based on tables
Lukas Krickl [Sat, 13 Sep 2025 05:03:29 +0000 (07:03 +0200)]
animations: Added animation loading based on tables

This replaced the old hard-coded animations for attacks.

2 months agoanimations: Added stub for animation switching
Lukas Krickl [Sat, 13 Sep 2025 03:52:30 +0000 (05:52 +0200)]
animations: Added stub for animation switching

2 months agoanimation: Added frame wait state
Lukas Krickl [Tue, 9 Sep 2025 03:28:56 +0000 (05:28 +0200)]
animation: Added frame wait state

2 months agoanimation: added basic delay for animation
Lukas Krickl [Mon, 8 Sep 2025 21:10:39 +0000 (23:10 +0200)]
animation: added basic delay for animation

This probably needs a real animation timer per frame

2 months agoanimation: Refactored animation code
Lukas Krickl [Mon, 8 Sep 2025 21:00:38 +0000 (23:00 +0200)]
animation: Refactored animation code

The new system allows defintion of tables.
Tables can be loaded and contain up to 3 objects.

2 months agoanimation: Added defs for new animation system
Lukas Krickl [Mon, 8 Sep 2025 18:31:17 +0000 (20:31 +0200)]
animation: Added defs for new animation system

2 months agoremoved debug BREAK
Lukas Krickl [Mon, 8 Sep 2025 15:20:18 +0000 (17:20 +0200)]
removed debug BREAK

2 months agoanimation: Added actor runtime tile offsets
Lukas Krickl [Mon, 8 Sep 2025 15:18:46 +0000 (17:18 +0200)]
animation: Added actor runtime tile offsets

2 months agoactor: removed prev input rt variable
Lukas Krickl [Mon, 8 Sep 2025 14:29:55 +0000 (16:29 +0200)]
actor: removed prev input rt variable

2 months agoact: Added new rt value for previous inputs
Lukas Krickl [Mon, 8 Sep 2025 03:57:29 +0000 (05:57 +0200)]
act: Added new rt value for previous inputs

2 months agoshoot: Added stub for shoot action
Lukas Krickl [Mon, 8 Sep 2025 03:20:18 +0000 (05:20 +0200)]
shoot: Added stub for shoot action

2 months agoTODO: Added todo for combat animations
Lukas Krickl [Sun, 7 Sep 2025 14:24:45 +0000 (16:24 +0200)]
TODO: Added todo for combat animations

2 months agoactors: renamed demo actors
Lukas Krickl [Sun, 7 Sep 2025 04:33:53 +0000 (06:33 +0200)]
actors: renamed demo actors

removed dialog entry from actor def

2 months agoaction: moved more functions to attack.s
Lukas Krickl [Sun, 7 Sep 2025 04:11:14 +0000 (06:11 +0200)]
action: moved more functions to attack.s

2 months agoaction: moved melee attack to attack.s
Lukas Krickl [Sun, 7 Sep 2025 04:08:41 +0000 (06:08 +0200)]
action: moved melee attack to attack.s

2 months agoUpdated spritework
Lukas Krickl [Sat, 6 Sep 2025 17:33:05 +0000 (19:33 +0200)]
Updated spritework

2 months agoAdded another note
Lukas Krickl [Sat, 6 Sep 2025 15:21:24 +0000 (17:21 +0200)]
Added another note

2 months agoTODO: Added todo notes
Lukas Krickl [Sat, 6 Sep 2025 15:19:25 +0000 (17:19 +0200)]
TODO: Added todo notes

2 months agoui: Added basic mp display
Lukas Krickl [Sat, 6 Sep 2025 03:57:21 +0000 (05:57 +0200)]
ui: Added basic mp display

2 months agorest: Added healded for display
Lukas Krickl [Fri, 5 Sep 2025 04:23:38 +0000 (06:23 +0200)]
rest: Added healded for display

2 months agoactions: Added basic rest action
Lukas Krickl [Thu, 4 Sep 2025 15:58:52 +0000 (17:58 +0200)]
actions: Added basic rest action

For now this action always heals the player for 1 and skips the turn.

2 months agowram: Removed unused status text buffer
Lukas Krickl [Thu, 4 Sep 2025 07:19:22 +0000 (09:19 +0200)]
wram: Removed unused status text buffer

2 months agoreworked arrow tiles
Lukas Krickl [Tue, 2 Sep 2025 15:49:33 +0000 (17:49 +0200)]
reworked arrow tiles

2 months agoupdated font
Lukas Krickl [Tue, 2 Sep 2025 03:52:02 +0000 (05:52 +0200)]
updated font

2 months agounit: Fixed a crash when exiting the select menu
Lukas Krickl [Mon, 1 Sep 2025 03:04:17 +0000 (05:04 +0200)]
unit: Fixed a crash when exiting the select menu

This crash was caused by the player state being set incorrectly.

2 months agoaction_menu: The initial draw now correctly takes the table lenth into account
Lukas Krickl [Sun, 31 Aug 2025 15:16:30 +0000 (17:16 +0200)]
action_menu: The initial draw now correctly takes the table lenth into account

2 months agoselect menu: the menu now renders an arrow to indicate available options
Lukas Krickl [Sun, 31 Aug 2025 15:15:10 +0000 (17:15 +0200)]
select menu: the menu now renders an arrow to indicate available options

2 months agoaction menu: it is now possible to select an action
Lukas Krickl [Sun, 31 Aug 2025 06:53:31 +0000 (08:53 +0200)]
action menu: it is now possible to select an action

The player then gets forced into the action state upon confirmation

2 months agoselect menu: The menu can now scroll quickly
Lukas Krickl [Sun, 31 Aug 2025 05:38:52 +0000 (07:38 +0200)]
select menu: The menu can now scroll quickly

2 months agoaction_menu: Added basic text menu
Lukas Krickl [Sun, 31 Aug 2025 04:40:18 +0000 (06:40 +0200)]
action_menu: Added basic text menu

2 months agoaction menu: Added initial text drawing
Lukas Krickl [Sat, 30 Aug 2025 18:02:20 +0000 (20:02 +0200)]
action menu: Added initial text drawing

2 months agoaction menu: Added stubs for text drawing
Lukas Krickl [Sat, 30 Aug 2025 16:10:19 +0000 (18:10 +0200)]
action menu: Added stubs for text drawing

2 months agoselect menu: added stub for select menu
Lukas Krickl [Sat, 30 Aug 2025 06:44:45 +0000 (08:44 +0200)]
select menu: added stub for select menu

2 months agounit_cpu: Added left and right attacks
Lukas Krickl [Sat, 30 Aug 2025 04:26:15 +0000 (06:26 +0200)]
unit_cpu: Added left and right attacks

2 months agoattack: replaced binary flag for ongoing attacks with a counter
Lukas Krickl [Sat, 30 Aug 2025 03:27:13 +0000 (05:27 +0200)]
attack: replaced binary flag for ongoing attacks with a counter

2 months agounit: dealy to active now automatically sets player turn done when the player is...
Lukas Krickl [Thu, 28 Aug 2025 07:59:50 +0000 (09:59 +0200)]
unit: dealy to active now automatically sets player turn done when the player is delaying

2 months agomapgen: Fixed crash caused by relative address absolute jump
Lukas Krickl [Thu, 28 Aug 2025 04:17:10 +0000 (06:17 +0200)]
mapgen: Fixed crash caused by relative address absolute jump

I have no idea how this did not crash every time.

2 months agoBUGS: Added note about file select crash
Lukas Krickl [Wed, 27 Aug 2025 16:40:34 +0000 (18:40 +0200)]
BUGS: Added note about file select crash

2 months agoattack: Added player UI redraw to attack
Lukas Krickl [Wed, 27 Aug 2025 16:31:57 +0000 (18:31 +0200)]
attack: Added player UI redraw to attack

2 months agoaction: delay to active after attack now uses template
Lukas Krickl [Wed, 27 Aug 2025 16:06:13 +0000 (18:06 +0200)]
action: delay to active after attack now uses template

2 months agounit: if delay to active waits for the attack to finish it now reruns delay to active...
Lukas Krickl [Wed, 27 Aug 2025 16:04:37 +0000 (18:04 +0200)]
unit: if delay to active waits for the attack to finish it now reruns delay to active fast

2 months agounit: Added a simple delay flag for when an attack is ongoing
Lukas Krickl [Wed, 27 Aug 2025 15:49:24 +0000 (17:49 +0200)]
unit: Added a simple delay flag for when an attack is ongoing

2 months agoattack: reduced attack animation to 1 frame for now
Lukas Krickl [Wed, 27 Aug 2025 15:37:46 +0000 (17:37 +0200)]
attack: reduced attack animation to 1 frame for now

hp UI is not redrawing but hits are registered

2 months agounit: units now attack
Lukas Krickl [Wed, 27 Aug 2025 15:16:38 +0000 (17:16 +0200)]
unit: units now attack

This does not work well yet. Only one unit should be able to attack.
The attack direction is broken.

2 months agounit_cpu: wip action attack
Lukas Krickl [Tue, 26 Aug 2025 16:29:27 +0000 (18:29 +0200)]
unit_cpu: wip action attack

2 months agounit_cpu: Added stub for attack state
Lukas Krickl [Tue, 26 Aug 2025 03:48:35 +0000 (05:48 +0200)]
unit_cpu: Added stub for attack state

2 months agomapgen: Fixed units spawnning in bad spots
Lukas Krickl [Tue, 26 Aug 2025 03:28:06 +0000 (05:28 +0200)]
mapgen: Fixed units spawnning in bad spots

2 months agomapgen: actor spawning now checks if an actor already exists at the selected position
Lukas Krickl [Mon, 25 Aug 2025 17:24:42 +0000 (19:24 +0200)]
mapgen: actor spawning now checks if an actor already exists at the selected position

2 months agomapgen: The player now spawns in a random spot
Lukas Krickl [Mon, 25 Aug 2025 12:29:47 +0000 (14:29 +0200)]
mapgen: The player now spawns in a random spot

2 months agomapgen: wip placing player randomly
Lukas Krickl [Sun, 24 Aug 2025 20:38:22 +0000 (22:38 +0200)]
mapgen: wip placing player randomly

2 months agomapgen: player spawn map is now selected randomly
Lukas Krickl [Sun, 24 Aug 2025 17:21:26 +0000 (19:21 +0200)]
mapgen: player spawn map is now selected randomly

2 months agoaction: Added miss text
Lukas Krickl [Sun, 24 Aug 2025 06:33:02 +0000 (08:33 +0200)]
action: Added miss text

Fixed actor lookup returning actors of type NULL

2 months agoui: Added max hp display
Lukas Krickl [Sat, 23 Aug 2025 18:45:18 +0000 (20:45 +0200)]
ui: Added max hp display

2 months agostats: Added basic hp display
Lukas Krickl [Sat, 23 Aug 2025 12:52:42 +0000 (14:52 +0200)]
stats: Added basic hp display

2 months agostrings: Added decimal printing
Lukas Krickl [Sat, 23 Aug 2025 05:43:53 +0000 (07:43 +0200)]
strings: Added decimal printing

2 months agoaction: fixed stack error when no unit is hit
Lukas Krickl [Sat, 23 Aug 2025 03:37:31 +0000 (05:37 +0200)]
action: fixed stack error when no unit is hit

2 months agoaction: added basic display for damage value
Lukas Krickl [Sat, 23 Aug 2025 03:34:57 +0000 (05:34 +0200)]
action: added basic display for damage value

Currently we print in hex this will need to be decimal eventually

2 months agoactsave: fixed bug when calculating act sg pointer
Lukas Krickl [Fri, 22 Aug 2025 17:34:50 +0000 (19:34 +0200)]
actsave: fixed bug when calculating act sg pointer

2 months agoact_sg: now saving type as well to prevent actors from rendering for a frame when...
Lukas Krickl [Fri, 22 Aug 2025 16:00:30 +0000 (18:00 +0200)]
act_sg: now saving type as well to prevent actors from rendering for a frame when loading a map

2 months agoact_save: actsave now stores mp and hp
Lukas Krickl [Fri, 22 Aug 2025 15:53:09 +0000 (17:53 +0200)]
act_save: actsave now stores mp and hp

Added damage calculation to attack.

Fixed a bug in act_sg that caused the previous slot to be re-read by the wrong map.
This was fixed by storign the previous frame's player map cursor. This allows us to use the previous frame
as a save location and the current value as a restore location.

2 months agostats: Added basic damage calculation
Lukas Krickl [Fri, 22 Aug 2025 12:35:17 +0000 (14:35 +0200)]
stats: Added basic damage calculation

2 months agostats: added stubs for calculating some stats
Lukas Krickl [Thu, 21 Aug 2025 19:11:17 +0000 (21:11 +0200)]
stats: added stubs for calculating some stats

2 months agounit_cpu: Made the default AI follow the player a little bit less
Lukas Krickl [Thu, 21 Aug 2025 18:27:24 +0000 (20:27 +0200)]
unit_cpu: Made the default AI follow the player a little bit less

2 months agoaction: Added basic attack effect
Lukas Krickl [Thu, 21 Aug 2025 17:17:15 +0000 (19:17 +0200)]
action: Added basic attack effect

For now it simply deletes the hit actor

2 months agomapgen: fixed most issues with the current door placement implementation
Lukas Krickl [Thu, 21 Aug 2025 16:17:55 +0000 (18:17 +0200)]
mapgen: fixed most issues with the current door placement implementation

2 months agomapgen: Fixed various small issues in door placement
Lukas Krickl [Thu, 21 Aug 2025 15:31:13 +0000 (17:31 +0200)]
mapgen: Fixed various small issues in door placement

2 months agomapgen: wip mapgen
Lukas Krickl [Thu, 21 Aug 2025 13:58:27 +0000 (15:58 +0200)]
mapgen: wip mapgen

2 months agomapgen: wip door generator
Lukas Krickl [Thu, 21 Aug 2025 13:47:19 +0000 (15:47 +0200)]
mapgen: wip door generator

2 months agoremoving doors now does not set the exit flag anymore but instead clears all other...
Lukas Krickl [Thu, 21 Aug 2025 10:53:21 +0000 (12:53 +0200)]
removing doors now does not set the exit flag anymore but instead clears all other flags