Lukas Krickl [Fri, 7 Mar 2025 14:16:38 +0000 (15:16 +0100)]
TODO: reworded todo item for stats
Lukas Krickl [Fri, 7 Mar 2025 14:06:22 +0000 (15:06 +0100)]
TODO: Added todo for new stats system
Lukas Krickl [Thu, 6 Mar 2025 20:10:37 +0000 (21:10 +0100)]
bat: bats now pick a random direction to walk in again
Bats can now move on their own again, but they do not perform collision
checks nor mark tiles as occupied yet.
Lukas Krickl [Mon, 3 Mar 2025 06:30:35 +0000 (07:30 +0100)]
TODO: Added note about actor spawning
Lukas Krickl [Sat, 1 Mar 2025 22:38:10 +0000 (23:38 +0100)]
chore: Updated gitignore
Lukas Krickl [Sat, 1 Mar 2025 18:31:27 +0000 (19:31 +0100)]
symbols: Changed default symbol format
Lukas Krickl [Thu, 27 Feb 2025 19:50:32 +0000 (20:50 +0100)]
actor/player: Added basic cursor tile
This tile indicate which actor is currently moving.
Lukas Krickl [Thu, 27 Feb 2025 05:04:10 +0000 (06:04 +0100)]
base_room: re-generated room
Lukas Krickl [Wed, 26 Feb 2025 19:10:38 +0000 (20:10 +0100)]
maps: Fixed bug that caused the mapgen script to palce actors wrongly.
Actor position rounding was incorrect causing actors to be in the wrong
spot.
Lukas Krickl [Wed, 26 Feb 2025 04:47:39 +0000 (05:47 +0100)]
BUGS: Added note about actor positions
Lukas Krickl [Mon, 24 Feb 2025 05:03:24 +0000 (06:03 +0100)]
TODO: Added cursor note
Lukas Krickl [Sun, 23 Feb 2025 13:56:56 +0000 (14:56 +0100)]
actor: removed bat update code
This is now replaced with a never ending state machine update.
Lukas Krickl [Sun, 23 Feb 2025 11:16:14 +0000 (12:16 +0100)]
state machine: every actor now has its own state machine memory area
Each actor gets 3 bytes. the sm load ptr macro now loads the correct
offset.
When a turn is ended the sm offset is advanced by sm_size. If the actor
table is reset to 0, sm offset is also reset.
Lukas Krickl [Sun, 23 Feb 2025 06:26:43 +0000 (07:26 +0100)]
actor: Renamed player_go to actor_go states
Lukas Krickl [Fri, 21 Feb 2025 17:19:06 +0000 (18:19 +0100)]
actors rework: cleanup
Lukas Krickl [Tue, 18 Feb 2025 15:59:03 +0000 (16:59 +0100)]
sram: Fixed sram_rand allocation
Lukas Krickl [Sat, 15 Feb 2025 14:17:18 +0000 (15:17 +0100)]
rand: Replaced rand with a very basic feedback shift register
This is by no means perfect but it is more random than what was here
before
unlink2 [Sat, 15 Feb 2025 08:40:44 +0000 (08:40 +0000)]
Merge pull request 'state: Removed old player input handling - replaced with new state machine' (#3) from state-machine-movement into master
Reviewed-on: https://codeberg.org/unlink2/gbrg/pulls/3
Lukas Krickl [Sat, 15 Feb 2025 05:49:04 +0000 (06:49 +0100)]
rand: srand is now stored in sram
This makes it so srand is not always the same value on boot.
Lukas Krickl [Sat, 15 Feb 2025 04:37:22 +0000 (05:37 +0100)]
TODO: Added extra note about combat
Lukas Krickl [Fri, 14 Feb 2025 16:59:18 +0000 (17:59 +0100)]
TODO: Added combat note
Lukas Krickl [Thu, 6 Feb 2025 15:56:53 +0000 (16:56 +0100)]
state: adding states for bat enemy
Lukas Krickl [Sun, 2 Feb 2025 09:58:41 +0000 (10:58 +0100)]
animation: made walk speed more easily adjustable
Lukas Krickl [Sun, 2 Feb 2025 06:55:51 +0000 (07:55 +0100)]
TODO: Added notes about items
Lukas Krickl [Sun, 2 Feb 2025 05:30:32 +0000 (06:30 +0100)]
state: Removed old player input handling - replaced with new state
machine
The new implmenetation is a more modular approach to handling actor
states.
It works by swapping a simple state parameter out and calling
functions from a table.
The table to call is still left up to the actors.
Lukas Krickl [Sat, 1 Feb 2025 13:43:16 +0000 (14:43 +0100)]
state: Added docs for state machine call params
Lukas Krickl [Sat, 1 Feb 2025 12:28:37 +0000 (13:28 +0100)]
state: Added first call to state machine in player
Lukas Krickl [Sat, 1 Feb 2025 12:07:30 +0000 (13:07 +0100)]
state: Added state machine stub for future acotr/player updates
Lukas Krickl [Sat, 1 Feb 2025 06:34:51 +0000 (07:34 +0100)]
anim: Documented use of animation calls
Lukas Krickl [Fri, 31 Jan 2025 04:36:51 +0000 (05:36 +0100)]
animation: Added animation ptr handling
Lukas Krickl [Thu, 30 Jan 2025 04:37:45 +0000 (05:37 +0100)]
animation: Removed animation setup
The first re-write will be replaced with a simpler approach.
Lukas Krickl [Wed, 29 Jan 2025 18:58:49 +0000 (19:58 +0100)]
TODO: Added note about animations
Lukas Krickl [Wed, 29 Jan 2025 17:59:37 +0000 (18:59 +0100)]
TODO: Added notes about combat
Lukas Krickl [Mon, 27 Jan 2025 13:32:24 +0000 (14:32 +0100)]
player: moved collision check to subroutine
Lukas Krickl [Mon, 27 Jan 2025 12:31:16 +0000 (13:31 +0100)]
anim: added static animation step variable
Lukas Krickl [Mon, 27 Jan 2025 09:25:36 +0000 (10:25 +0100)]
anim: Added setup for movement animation
Lukas Krickl [Mon, 27 Jan 2025 04:23:41 +0000 (05:23 +0100)]
warm: made player pointer compatible with code expecting actors
Lukas Krickl [Sun, 26 Jan 2025 18:43:51 +0000 (19:43 +0100)]
collision: Removed dead code
Lukas Krickl [Sun, 26 Jan 2025 18:29:50 +0000 (19:29 +0100)]
animation: reduced walk animation call to a single function instead of 4
Lukas Krickl [Sun, 26 Jan 2025 18:14:06 +0000 (19:14 +0100)]
animation: removed ready flag
Instead if no animation is playing simply set the type to nop
Lukas Krickl [Sun, 26 Jan 2025 17:53:00 +0000 (18:53 +0100)]
animation: added basic setup for new animation system
Lukas Krickl [Sun, 26 Jan 2025 06:35:57 +0000 (07:35 +0100)]
anim: Added struct for animations
Lukas Krickl [Sun, 26 Jan 2025 05:46:28 +0000 (06:46 +0100)]
animation: Added basic animation update table
This will limit us to 127 animations but I think this will be
plenty for now. If there is every a point where the table
might run out we might need to introduce a new system.
Lukas Krickl [Sun, 26 Jan 2025 05:17:07 +0000 (06:17 +0100)]
animation: Added basic docs for animations
Lukas Krickl [Sun, 26 Jan 2025 05:08:34 +0000 (06:08 +0100)]
animation: Added new animation file
This will replace the existing manual playback of animations
with a more general system.
Lukas Krickl [Sun, 26 Jan 2025 04:53:23 +0000 (05:53 +0100)]
TODO: updated todo
Lukas Krickl [Sat, 25 Jan 2025 15:11:44 +0000 (16:11 +0100)]
map: Added docs for room traversal
Lukas Krickl [Sat, 25 Jan 2025 10:55:03 +0000 (11:55 +0100)]
map: Added the ability to have branching paths in rooms
This is simply done by following door pointers when a direction with
an existing door is picked.
Lukas Krickl [Sat, 25 Jan 2025 05:51:52 +0000 (06:51 +0100)]
map: Fixed de not being preserved when re-trying room door placement
Lukas Krickl [Sat, 25 Jan 2025 05:17:56 +0000 (06:17 +0100)]
map: Added note about future dungeon generation
Lukas Krickl [Sun, 19 Jan 2025 16:23:57 +0000 (17:23 +0100)]
gitignore: Added .patch to gitignore
Lukas Krickl [Sun, 19 Jan 2025 15:59:18 +0000 (16:59 +0100)]
defs: moved defs from wram.s to defs.s
Lukas Krickl [Sun, 19 Jan 2025 09:47:47 +0000 (10:47 +0100)]
mapram: Removed .section from mapram to avoid mlb generation being wrong
Lukas Krickl [Sun, 19 Jan 2025 07:05:20 +0000 (08:05 +0100)]
defs: Move .section to their proper locations
Lukas Krickl [Sun, 19 Jan 2025 06:34:57 +0000 (07:34 +0100)]
sections: Renamed sections to more style apropriate names
Lukas Krickl [Sun, 19 Jan 2025 06:26:54 +0000 (07:26 +0100)]
defs: Added new def file for structs
TODO: move all structs to this file.
Added new .section keyword to places where it makes sense
Lukas Krickl [Sat, 18 Jan 2025 05:58:24 +0000 (06:58 +0100)]
actor: moved rf flag setter to a macro
This allows it to also be used as a copy-paste for palyer flag purposes.
Lukas Krickl [Fri, 17 Jan 2025 20:03:31 +0000 (21:03 +0100)]
actor: Added player version of rf flag update sub
Lukas Krickl [Wed, 15 Jan 2025 17:03:16 +0000 (18:03 +0100)]
BUGS: Added bug note for anim_move
Lukas Krickl [Wed, 15 Jan 2025 16:31:35 +0000 (17:31 +0100)]
actor: Fixed actors clearing their position whenever they move
Lukas Krickl [Wed, 15 Jan 2025 04:48:43 +0000 (05:48 +0100)]
actor: added mask for tile postions
Lukas Krickl [Tue, 14 Jan 2025 20:42:57 +0000 (21:42 +0100)]
actor: Fixed actor tile flagging
Actors now flag the correct tile, but they will unflag during their next
turn. This means that collision is till broken, but less broken than
before :^)
The actors flagged the wrong tile due to a missing offset for the target
position.
Lukas Krickl [Tue, 14 Jan 2025 05:07:50 +0000 (06:07 +0100)]
map: removed map_set and map_unset_flag
Lukas Krickl [Mon, 13 Jan 2025 08:36:44 +0000 (09:36 +0100)]
actor: Added code for allowing actors to set RF_ACTOR
This seems to still be a bit broken, but actors are now setting up their
room flags when they move.
Lukas Krickl [Sun, 12 Jan 2025 17:54:56 +0000 (18:54 +0100)]
actor: wip code for setting RF_ACTOR flag
Lukas Krickl [Mon, 6 Jan 2025 07:14:10 +0000 (08:14 +0100)]
map: Mapgen now loads the table entries correctly.
Before this was rather broken and the fact that it did not crash was
just luck. It was not reading room pointers correctly nor was the room
max mask not masking correctly due to an off-by-one-error :^)
Lukas Krickl [Mon, 6 Jan 2025 06:37:05 +0000 (07:37 +0100)]
map: mapgen now will not generate the same room twice in a row
This is simply done by calling rand again if the room is the same as the
previous room.
Lukas Krickl [Mon, 6 Jan 2025 06:28:06 +0000 (07:28 +0100)]
map: Fixed f1 room table size calculation.
This was an off-by-one error due to the placement of the start label
which included the table length itself.
Lukas Krickl [Sat, 4 Jan 2025 10:31:42 +0000 (11:31 +0100)]
maps: Added 2 additional base maps
Lukas Krickl [Sat, 4 Jan 2025 06:44:35 +0000 (07:44 +0100)]
base_room2/tileset1: Added new floor and block tiles
Lukas Krickl [Fri, 3 Jan 2025 18:43:01 +0000 (19:43 +0100)]
wram: Added first flag for player
Lukas Krickl [Fri, 3 Jan 2025 09:27:48 +0000 (10:27 +0100)]
map: renamed base room table to f1 room table
Lukas Krickl [Thu, 2 Jan 2025 21:50:21 +0000 (22:50 +0100)]
map: Maps can now swap room tables based on the current floor
Lukas Krickl [Thu, 2 Jan 2025 21:40:43 +0000 (22:40 +0100)]
tiles: Added placeholder door tiles
Lukas Krickl [Thu, 2 Jan 2025 20:01:36 +0000 (21:01 +0100)]
map: Added ability to re-roll exit if direction is already taken
This is still lacking a fallback in case all 4 directions are taken.
This should not be possible right now anyway though.
Added .sav to girignore :^)
Lukas Krickl [Thu, 2 Jan 2025 18:57:34 +0000 (19:57 +0100)]
make: Added maps/ to the include search path list
Lukas Krickl [Thu, 2 Jan 2025 18:56:24 +0000 (19:56 +0100)]
make: Removed verbose setting from build flags
Lukas Krickl [Thu, 2 Jan 2025 14:52:04 +0000 (15:52 +0100)]
map: Refactored actor table in base maps
Base maps now always include the entire actor table to make the copy
operatin easier and more clear.
This now allows us to save the actor table back.
The initial copy is now also easier :^)
Lukas Krickl [Thu, 2 Jan 2025 14:34:40 +0000 (15:34 +0100)]
map: WIP actor table saving
Lukas Krickl [Thu, 2 Jan 2025 14:15:31 +0000 (15:15 +0100)]
map: Added randomness to room linking to make sure all linking cases
work
Lukas Krickl [Thu, 2 Jan 2025 12:19:14 +0000 (13:19 +0100)]
map: Rooms now dynamically add doors
This is done by writing the flags and tiles when linking.
Also added a memcpy that will skip copying if the value is not zero.
Lukas Krickl [Wed, 1 Jan 2025 15:47:12 +0000 (16:47 +0100)]
map: rooms are now generate in a basic recursive manner
Rooms can generate until a pre-set max is reached
They alwys link north-south for now.
Lukas Krickl [Wed, 1 Jan 2025 11:14:10 +0000 (12:14 +0100)]
map: room linking is now generic
Lukas Krickl [Wed, 1 Jan 2025 10:25:20 +0000 (11:25 +0100)]
map: added rotuine to link two rooms to each other
Lukas Krickl [Wed, 1 Jan 2025 09:30:10 +0000 (10:30 +0100)]
map: Added reverse look-up-table for directions
Lukas Krickl [Wed, 1 Jan 2025 09:20:30 +0000 (10:20 +0100)]
map: Removed clearing code for exits since they should be zeroed anyway
Lukas Krickl [Wed, 1 Jan 2025 04:20:49 +0000 (05:20 +0100)]
LICENSE: Updated year to 2025
Lukas Krickl [Tue, 31 Dec 2024 18:45:48 +0000 (19:45 +0100)]
preproc: Added DEBUG guard around map load panic
Lukas Krickl [Tue, 31 Dec 2024 16:19:21 +0000 (17:19 +0100)]
map: Added proof of concept for linking rooms in ram
Lukas Krickl [Tue, 31 Dec 2024 15:35:49 +0000 (16:35 +0100)]
map: Added basic panic handler that is called when the map ptr is NULL
Lukas Krickl [Tue, 31 Dec 2024 10:51:42 +0000 (11:51 +0100)]
map: Added base room copy routine
Lukas Krickl [Tue, 31 Dec 2024 07:26:23 +0000 (08:26 +0100)]
Moved stack to end of DXXX wram bank
Lukas Krickl [Tue, 31 Dec 2024 07:07:02 +0000 (08:07 +0100)]
map: maps now set the correct tile ptr for a newly generate map
Lukas Krickl [Mon, 30 Dec 2024 18:38:55 +0000 (19:38 +0100)]
map: wip map copy
Lukas Krickl [Mon, 30 Dec 2024 14:16:29 +0000 (15:16 +0100)]
map: Added basic structure and docs for mapgen
This implementation is not yet functional, but the basic idea is taking
shape :^)
Lukas Krickl [Mon, 30 Dec 2024 07:28:04 +0000 (08:28 +0100)]
Added floor usae to map_gen docs
Lukas Krickl [Mon, 30 Dec 2024 07:27:05 +0000 (08:27 +0100)]
Added wram defs
Lukas Krickl [Sun, 29 Dec 2024 10:41:31 +0000 (11:41 +0100)]
Renamed room_struct to room_header
Lukas Krickl [Sat, 28 Dec 2024 09:14:56 +0000 (10:14 +0100)]
WIP: Added placeholders for map generator
Lukas Krickl [Sat, 28 Dec 2024 07:12:57 +0000 (08:12 +0100)]
hram: Added hram section