gbrg/.git
8 hours agoutil: Added strz macro master origin/HEAD origin/master
Lukas Krickl [Mon, 15 Sep 2025 03:36:18 +0000 (05:36 +0200)]
util: Added strz macro

19 hours 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

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

25 hours 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

30 hours 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.

32 hours 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 days 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 days 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks agounit_cpu: wip action attack
Lukas Krickl [Tue, 26 Aug 2025 16:29:27 +0000 (18:29 +0200)]
unit_cpu: wip action attack

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

3 weeks agorooms: Added more template maps
Lukas Krickl [Thu, 21 Aug 2025 10:47:57 +0000 (12:47 +0200)]
rooms: Added more template maps

3 weeks agomapgen: if a player spawns on a door the door tile is now removed
Lukas Krickl [Thu, 21 Aug 2025 10:33:48 +0000 (12:33 +0200)]
mapgen: if a player spawns on a door the door tile is now removed

3 weeks agoplayer: updated exit handling to allow for map cursor movement
Lukas Krickl [Thu, 21 Aug 2025 09:52:41 +0000 (11:52 +0200)]
player: updated exit handling to allow for map cursor movement

3 weeks agodoors: doors are not covered anymore
Lukas Krickl [Thu, 21 Aug 2025 06:58:34 +0000 (08:58 +0200)]
doors: doors are not covered anymore

3 weeks agoexits: removed rerferences to existing exit tables
Lukas Krickl [Thu, 21 Aug 2025 06:56:35 +0000 (08:56 +0200)]
exits: removed rerferences to existing exit tables

This is the first step for the exti system rework.

3 weeks agomapgen: refactored map loader
Lukas Krickl [Thu, 21 Aug 2025 03:58:30 +0000 (05:58 +0200)]
mapgen: refactored map loader

3 weeks agomapgen: wip rework of mapgen
Lukas Krickl [Wed, 20 Aug 2025 21:49:14 +0000 (23:49 +0200)]
mapgen: wip rework of mapgen

3 weeks agoAdded notes for map rework
Lukas Krickl [Wed, 20 Aug 2025 21:35:51 +0000 (23:35 +0200)]
Added notes for map rework

3 weeks agomap: removed seed index
Lukas Krickl [Wed, 20 Aug 2025 03:24:44 +0000 (05:24 +0200)]
map: removed seed index

3 weeks agomapgen: Added door drawing routine
Lukas Krickl [Tue, 19 Aug 2025 16:24:03 +0000 (18:24 +0200)]
mapgen: Added door drawing routine

This is the first step to making a better map generator.

Doors are now placed based on a door exit list for each possible room in a floor.

3 weeks agomaps: wip reworking map system
Lukas Krickl [Tue, 19 Aug 2025 14:50:53 +0000 (16:50 +0200)]
maps: wip reworking map system

3 weeks agoTODO: Added note about mapgen rework
Lukas Krickl [Tue, 19 Aug 2025 14:20:49 +0000 (16:20 +0200)]
TODO: Added note about mapgen rework

4 weeks agoaction: Added tile offset to attack action
Lukas Krickl [Mon, 18 Aug 2025 03:28:22 +0000 (05:28 +0200)]
action: Added tile offset to attack action

4 weeks agoattack: wip added attack animation
Lukas Krickl [Sun, 17 Aug 2025 15:51:17 +0000 (17:51 +0200)]
attack: wip added attack animation

The location is still wrong but the basic idea is there :^)

4 weeks agoaction: Added delay to active after picking an attack direction
Lukas Krickl [Sun, 17 Aug 2025 12:54:42 +0000 (14:54 +0200)]
action: Added delay to active after picking an attack direction

4 weeks agoactions: Added setup for picking directions
Lukas Krickl [Sun, 17 Aug 2025 04:09:15 +0000 (06:09 +0200)]
actions: Added setup for picking directions

4 weeks agoaction: Added ability to abort attack command
Lukas Krickl [Sat, 16 Aug 2025 16:02:49 +0000 (18:02 +0200)]
action: Added ability to abort attack command

4 weeks agoattack: Added direction UI setup.
Lukas Krickl [Sat, 16 Aug 2025 06:20:58 +0000 (08:20 +0200)]
attack: Added direction UI setup.

4 weeks agounit: Added basic stub for handling assinged actions on A or B
Lukas Krickl [Sat, 16 Aug 2025 04:17:34 +0000 (06:17 +0200)]
unit: Added basic stub for handling assinged actions on A or B

4 weeks agoTODO: Added note for menu and actions
Lukas Krickl [Fri, 15 Aug 2025 17:14:12 +0000 (19:14 +0200)]
TODO: Added note for menu and actions

4 weeks agounit: removed dedicated attack state.
Lukas Krickl [Fri, 15 Aug 2025 16:52:21 +0000 (18:52 +0200)]
unit: removed dedicated attack state.

Units now only have an active and idle state they can switch to

4 weeks agoplayer: Added player turn taken flag
Lukas Krickl [Fri, 15 Aug 2025 07:42:04 +0000 (09:42 +0200)]
player: Added player turn taken flag

This flag delays all other units from moving until the player has made
a choice.

4 weeks agounit: Added stubs for attack state
Lukas Krickl [Fri, 15 Aug 2025 07:08:23 +0000 (09:08 +0200)]
unit: Added stubs for attack state

4 weeks agodefs: Added additional note for battle order
Lukas Krickl [Fri, 15 Aug 2025 05:07:13 +0000 (07:07 +0200)]
defs: Added additional note for battle order

4 weeks agodefs: Added battle order to actors
Lukas Krickl [Fri, 15 Aug 2025 05:05:54 +0000 (07:05 +0200)]
defs: Added battle order to actors