Lukas Krickl [Mon, 23 Dec 2024 13:28:51 +0000 (14:28 +0100)]
Added ability to flag room loading
When a player collides with a door a special flag is set that
allows the engine to initiate a room load during the next vblank
Lukas Krickl [Mon, 23 Dec 2024 08:02:49 +0000 (09:02 +0100)]
WIP: exit direction selection
Lukas Krickl [Sat, 21 Dec 2024 05:33:18 +0000 (06:33 +0100)]
Added notes about scrolling
Lukas Krickl [Fri, 20 Dec 2024 18:32:27 +0000 (19:32 +0100)]
WIP: room transition loader
Lukas Krickl [Fri, 20 Dec 2024 10:02:31 +0000 (11:02 +0100)]
Bat actors now use direction constants for movement
Lukas Krickl [Fri, 20 Dec 2024 10:01:33 +0000 (11:01 +0100)]
Added special exit flag
Lukas Krickl [Sun, 15 Dec 2024 18:41:27 +0000 (19:41 +0100)]
Added notes for room transitions
Lukas Krickl [Sun, 15 Dec 2024 18:11:52 +0000 (19:11 +0100)]
Added docs for room transitions
Lukas Krickl [Sun, 15 Dec 2024 18:07:55 +0000 (19:07 +0100)]
Removed unused map function
Lukas Krickl [Sun, 15 Dec 2024 10:00:21 +0000 (11:00 +0100)]
Removed test room loader code and replaced it with an actual memcpy call
The test loader for a hard coded room was still present in video init.
This lead to an incorrect assumption being made in the map converter.
Rooms are now loaded directly from the actual base struct.
The base struct now also always points to an empty room exit table.
Lukas Krickl [Sun, 15 Dec 2024 09:28:54 +0000 (10:28 +0100)]
WIP: exit table for rooms
Lukas Krickl [Thu, 12 Dec 2024 05:23:42 +0000 (06:23 +0100)]
Removed redundant comparison in actor update
Lukas Krickl [Wed, 11 Dec 2024 13:07:57 +0000 (14:07 +0100)]
Added docs for map flags
Lukas Krickl [Wed, 11 Dec 2024 10:32:51 +0000 (11:32 +0100)]
Added new rand table.
Re-worked rand to use the table as a source of prng
Lukas Krickl [Tue, 10 Dec 2024 16:59:39 +0000 (17:59 +0100)]
Added actor collision checking
The bat actor now correctly checks for walls and doors and will
refuse to leave the screen.
Lukas Krickl [Mon, 9 Dec 2024 12:54:39 +0000 (13:54 +0100)]
Added def for -TILE_SIZE
Lukas Krickl [Mon, 9 Dec 2024 12:08:30 +0000 (13:08 +0100)]
Added dedicated memory space for animation target coordinates
Lukas Krickl [Sun, 8 Dec 2024 17:33:50 +0000 (18:33 +0100)]
Fixed bug that caused actors to incorrectly end their turn under certain
conditions.
This was caused by actor_update_bat setting the zero flag which caused
call nz, update_actor_null to be executed
Lukas Krickl [Sun, 8 Dec 2024 08:47:27 +0000 (09:47 +0100)]
Added basic calls to clear animation memory whenever null actors update
Lukas Krickl [Sun, 8 Dec 2024 07:32:13 +0000 (08:32 +0100)]
Improved who_next performance
unlink2 [Sat, 7 Dec 2024 13:11:40 +0000 (13:11 +0000)]
Merge pull request 'enemy-behaviour' (#2) from simple-enemy-behavior into master
Reviewed-on: https://codeberg.org/unlink2/gbrg/pulls/2
Lukas Krickl [Sat, 7 Dec 2024 05:39:37 +0000 (06:39 +0100)]
Added assert macro
Lukas Krickl [Wed, 4 Dec 2024 12:45:29 +0000 (13:45 +0100)]
Fixed enum value for doors
Lukas Krickl [Wed, 4 Dec 2024 09:54:02 +0000 (10:54 +0100)]
Added BREAK macro
Lukas Krickl [Wed, 4 Dec 2024 09:49:17 +0000 (10:49 +0100)]
Moved flag reading to map
Lukas Krickl [Wed, 4 Dec 2024 07:43:15 +0000 (08:43 +0100)]
Added door flags to base room
Lukas Krickl [Wed, 4 Dec 2024 07:11:11 +0000 (08:11 +0100)]
WIP: reworking room flag access
Lukas Krickl [Mon, 2 Dec 2024 05:01:25 +0000 (06:01 +0100)]
WIP: flag setting for maps
Lukas Krickl [Fri, 29 Nov 2024 17:22:31 +0000 (18:22 +0100)]
Added constant rand call to main loop
Lukas Krickl [Fri, 29 Nov 2024 09:05:34 +0000 (10:05 +0100)]
Added test animation for bats
Lukas Krickl [Fri, 29 Nov 2024 08:10:39 +0000 (09:10 +0100)]
WIP: bat movement
Lukas Krickl [Fri, 29 Nov 2024 05:00:01 +0000 (06:00 +0100)]
Added basic 'rng' function
Lukas Krickl [Tue, 26 Nov 2024 14:07:01 +0000 (15:07 +0100)]
Added simple player animation
Lukas Krickl [Tue, 26 Nov 2024 13:33:12 +0000 (14:33 +0100)]
Moved animation load macro to macro defs
Lukas Krickl [Tue, 26 Nov 2024 07:28:59 +0000 (08:28 +0100)]
Moved animation loading to a macro
Lukas Krickl [Mon, 25 Nov 2024 14:24:28 +0000 (15:24 +0100)]
Added bat tiles for simple animations
Lukas Krickl [Mon, 25 Nov 2024 12:44:11 +0000 (13:44 +0100)]
Optimized call_tbl a bit
Lukas Krickl [Mon, 25 Nov 2024 11:41:42 +0000 (12:41 +0100)]
Added template for plot
Lukas Krickl [Mon, 25 Nov 2024 10:50:07 +0000 (11:50 +0100)]
Updated map converter to align actors to the tile grid
Lukas Krickl [Mon, 25 Nov 2024 09:12:39 +0000 (10:12 +0100)]
WIP: actor table update
Lukas Krickl [Wed, 20 Nov 2024 15:52:35 +0000 (16:52 +0100)]
Added basic bat rendering
Lukas Krickl [Wed, 20 Nov 2024 15:14:18 +0000 (16:14 +0100)]
wip: Added bat actor and move duplicate actor code to macros
Lukas Krickl [Tue, 19 Nov 2024 18:40:48 +0000 (19:40 +0100)]
Added bat sprite
Lukas Krickl [Tue, 19 Nov 2024 14:01:19 +0000 (15:01 +0100)]
Added test noise for walking
Lukas Krickl [Tue, 19 Nov 2024 13:16:49 +0000 (14:16 +0100)]
Updted readme.
Added built instructions as well as a reference to ulas
Lukas Krickl [Tue, 19 Nov 2024 08:24:25 +0000 (09:24 +0100)]
Added audio register definitions
Lukas Krickl [Tue, 19 Nov 2024 08:02:27 +0000 (09:02 +0100)]
Added audio init code
Lukas Krickl [Mon, 18 Nov 2024 18:18:33 +0000 (19:18 +0100)]
Added skip turn code to all other actor types for now
Lukas Krickl [Mon, 18 Nov 2024 17:48:26 +0000 (18:48 +0100)]
The player's turn is now ended after a move
for now now other actor is handling turns so the player can only move
once
Lukas Krickl [Mon, 18 Nov 2024 17:40:54 +0000 (18:40 +0100)]
Added system for ending turns
Lukas Krickl [Mon, 18 Nov 2024 17:04:04 +0000 (18:04 +0100)]
Added who_next call
Lukas Krickl [Mon, 18 Nov 2024 15:17:52 +0000 (16:17 +0100)]
Fixed take damage debug buttons
Lukas Krickl [Mon, 18 Nov 2024 13:41:05 +0000 (14:41 +0100)]
Added collision check for new movement
Lukas Krickl [Mon, 18 Nov 2024 12:55:32 +0000 (13:55 +0100)]
Added new movement for player.
- TODO: collision is still not implemented again
Lukas Krickl [Sun, 17 Nov 2024 20:05:44 +0000 (21:05 +0100)]
Reworking player input handling for turn-based movement
Lukas Krickl [Sun, 17 Nov 2024 17:09:47 +0000 (18:09 +0100)]
WIP: turn based movement
Lukas Krickl [Sun, 17 Nov 2024 07:39:29 +0000 (08:39 +0100)]
Removed unused collision code
Lukas Krickl [Sun, 17 Nov 2024 06:33:39 +0000 (07:33 +0100)]
Added todo txt
Lukas Krickl [Sun, 17 Nov 2024 06:25:51 +0000 (07:25 +0100)]
WIP: sram functionality
Lukas Krickl [Sun, 17 Nov 2024 05:45:02 +0000 (06:45 +0100)]
WIP: mbc1 ram access
Lukas Krickl [Sat, 16 Nov 2024 18:22:52 +0000 (19:22 +0100)]
WIP: map struct
Lukas Krickl [Sat, 16 Nov 2024 16:22:11 +0000 (17:22 +0100)]
Added docs for maps and rooms
Lukas Krickl [Sun, 10 Nov 2024 19:04:08 +0000 (20:04 +0100)]
Updated ulas -i flag to -I
Lukas Krickl [Tue, 5 Nov 2024 17:51:19 +0000 (18:51 +0100)]
Added player tile with new collision box
Lukas Krickl [Fri, 1 Nov 2024 17:44:41 +0000 (18:44 +0100)]
Moved rec collision check to a macro to avoid copy-paste issues
Lukas Krickl [Fri, 1 Nov 2024 06:14:11 +0000 (07:14 +0100)]
wip: point rectangle collision
Lukas Krickl [Fri, 1 Nov 2024 04:41:52 +0000 (05:41 +0100)]
wip: rectangle collision
Lukas Krickl [Tue, 29 Oct 2024 09:16:34 +0000 (10:16 +0100)]
Updated makefile
Lukas Krickl [Mon, 28 Oct 2024 05:00:18 +0000 (06:00 +0100)]
Added basic docs for how to handle collision
Lukas Krickl [Mon, 28 Oct 2024 04:50:22 +0000 (05:50 +0100)]
Added stub for point/rectangle collision
Lukas Krickl [Fri, 25 Oct 2024 17:29:49 +0000 (19:29 +0200)]
Actors from the map table are now positions correctly
Lukas Krickl [Fri, 25 Oct 2024 16:34:49 +0000 (18:34 +0200)]
Testing actor tile assignment
Lukas Krickl [Fri, 25 Oct 2024 14:55:21 +0000 (16:55 +0200)]
room load now directly loads the room structs into its respective ptrs
Lukas Krickl [Fri, 25 Oct 2024 09:45:46 +0000 (11:45 +0200)]
Updated room script to also output a room struct
Lukas Krickl [Fri, 25 Oct 2024 04:17:16 +0000 (06:17 +0200)]
Fixed actor table loader
Lukas Krickl [Thu, 24 Oct 2024 18:24:09 +0000 (20:24 +0200)]
wip: map actor loading
Lukas Krickl [Thu, 24 Oct 2024 15:45:12 +0000 (17:45 +0200)]
Added basic script to convert actor layers
Lukas Krickl [Wed, 23 Oct 2024 17:35:47 +0000 (19:35 +0200)]
wip: room loading
Lukas Krickl [Wed, 23 Oct 2024 16:00:44 +0000 (18:00 +0200)]
wip: actor system
Lukas Krickl [Mon, 21 Oct 2024 18:38:34 +0000 (20:38 +0200)]
Added script that converts tiled csv maps to in-game maps
Lukas Krickl [Sun, 20 Oct 2024 08:10:02 +0000 (10:10 +0200)]
Added new floor tiles
unlink2 [Sun, 20 Oct 2024 07:49:11 +0000 (07:49 +0000)]
Merge pull request 'Initial setup for engine' (#1) from engine-setup into master
- Added basic map loader
- Added player controller
- Added simple tile collision
Lukas Krickl [Sun, 20 Oct 2024 07:47:54 +0000 (09:47 +0200)]
Tweaking collision shape for player
Lukas Krickl [Sun, 20 Oct 2024 07:28:52 +0000 (09:28 +0200)]
Updated door tileset to align with collision
Lukas Krickl [Sat, 19 Oct 2024 14:54:33 +0000 (16:54 +0200)]
Added basic left/right collision
Lukas Krickl [Sat, 19 Oct 2024 05:36:32 +0000 (07:36 +0200)]
Moved player collision call to a macro
Lukas Krickl [Sat, 19 Oct 2024 05:09:58 +0000 (07:09 +0200)]
Fixed tile -> player collision by using the correct shift
instructions.
For future reference sra did not do it because bit 7 might be set in
normal gameplay we needed srl
Lukas Krickl [Sat, 19 Oct 2024 04:31:16 +0000 (06:31 +0200)]
player -> tile collision from top
Lukas Krickl [Sat, 19 Oct 2024 03:33:11 +0000 (05:33 +0200)]
collision pointer loading
Lukas Krickl [Sat, 19 Oct 2024 03:13:20 +0000 (05:13 +0200)]
Adding collision tile mask
Lukas Krickl [Fri, 18 Oct 2024 18:25:43 +0000 (20:25 +0200)]
wip: collision with tiles
Lukas Krickl [Mon, 14 Oct 2024 12:11:58 +0000 (14:11 +0200)]
Removed redundant hl push from collison routine
Lukas Krickl [Mon, 14 Oct 2024 11:59:09 +0000 (13:59 +0200)]
wip: collision bounds checking for tiles
Lukas Krickl [Fri, 11 Oct 2024 11:13:48 +0000 (13:13 +0200)]
wip: map tile flag lookup
Lukas Krickl [Thu, 10 Oct 2024 17:51:26 +0000 (19:51 +0200)]
wip: added static location for collision check inputs
Lukas Krickl [Thu, 10 Oct 2024 16:41:41 +0000 (18:41 +0200)]
Renamed wall flag
Lukas Krickl [Thu, 10 Oct 2024 14:52:34 +0000 (16:52 +0200)]
Added collision tile lut
Lukas Krickl [Thu, 10 Oct 2024 11:18:18 +0000 (13:18 +0200)]
Added basic layout for map collision and room flags
Lukas Krickl [Thu, 10 Oct 2024 03:52:51 +0000 (05:52 +0200)]
Added tempalte for collision shapes
Lukas Krickl [Thu, 10 Oct 2024 03:25:38 +0000 (05:25 +0200)]
Moved ptr tbl call to its own sub routine