Something went wrong. Try again.
Something went wrong. Try again.
Files
- GDScript 100%
README.md
README #
GDRL is a toy roguelike project built in Godot. The goal of the framework is
- A Resource-driven logical layer, providing simple save, load & undo
- Right now I just serialize a resource hierarchy to save. Smart cookies could serialize to JSON if they were worried about the usual problems with loading resources.
- I deep copy the entire state before taking a turn. this is how Undo currently works.
- I don't aim for huge single-scene worlds. if you do, you'd likebly be better off saving "action deltas" to save space.
- I also don't aim to support
Undoin any larger project in my mind, so if this sounds like a sellign point to you, take it with a grain of salt.
- A engine-forward flexible view layer
- each action has an action view. actions are performed in the logic layer, then each tick hands its action list to the view. for each action (an ephemeral RefCounted object) with an action view (a godot scene), we load the view and trigger it.
- Action Views are scenes with a root scripts with a single awaitable
trigger(Action)function. - the binding between an action and its view is held in a resource, allowing, eventually, entities or environments to override the view of specific actions, if desired.
- A "Runner" that combines input, the logical layer, and the view layer.
- Actors take turns
- Enemy Actors are simple random movements for now
- the Player Actor yields to player input.
- The logical layer responds to an Actor's intent with action generators
- action generators are simulated, 1 tick at a time. the logical layer updates, then the view layer, on repeat until the action generators have "completed"
- The view layer responds to the generate actions with action views, if applicable.
- A
Utilobject holds functions that need cross the boundaries or don't currently fit in a specific home.
- Actors take turns
- Ideally, A framework that allows expressive content creation with minimal friction
- Schemas define how an object gets made
- map schemas are a big list of "generator steps" that act on a shared black board dictionary.
- the map schema also has a list of parsing layers that define how those BB entries get turned into the Map object used at runtime.
- entity schemas have some root properties (name, icon), but generally are composed from several entity schemas.
- map schemas are a big list of "generator steps" that act on a shared black board dictionary.
- Schemas define how an object gets made
- eventually, a small finished game
TODO #
- UI Views
- persistent(?) health bar
- mouse interaction
- minimap
- (ordering issue?) inventory bar
- Items & Inventory
- Items are entities
- Inventory is a system
- Component solution for various uses
- UsableComponent
- DrinkableComponent
- ThrowableComponent
- DroppableComponent
- PickupComponent
- Flesh out how we define which enemies, items spawn on which maps.
- there should be a "sentient" component on sentitent entities that generates an actor for them
- the
genreate_move_entitygenerator has too much logic. make it dumber and move (all?) the contextual thought to the Actors
- Menu & flow
- Death
- Victory
- Save & Load UI
- Key Rebinding
- Cinematic System
- make example game
How Its Made #
I'm building GDRL slowly, in a meandering way. I work full time and this something of a digital bonsai tree for me to sit with when time avails. I'm not sure if I'll make a demo game or just keep stacking systems up forever. I do know some things for sure though:
- Even alone, I like working in very simple feature branches
- I don't use test-driven development (yet)
- no AI
Changelog #
- November 2026 (so far): entity's component system. Combat system. Entity view updates. assorted architecture changes. Big cleanup of the View<->Logic relationship with the fov update. FOVs as components on entities, with a view for player-specific tilemap. whittling away at the README.
- October 2026: FOV first steps. action binding rework. nuke the old test ui, primarily use the Runner scene for iteration. Introduced entity schemas and map schemas. there's a map testing scene called map Drawer you can use to peek at map generation results layer by layer. simple Mystery-dungeon style map generation, as well as a backtrack maze. whittling away at the README.
- September 2026: Updates to the game's serialized version. committing to keeping cell resources shared until modified. Options save split off from game save. Implemented View Layer. Starting to work out "Schemas" for authoring design data.Added KDLog, as singleton named RLog. Added Util for simplifying verbose/repetitive calls. Implement awaited_set for awaiting a set of tasks. whittling away at the README.
- August 2026: The initial Resource-driven logical layer is mostly complete, though barebones. you can simulate a very simple world and there are examples of Map Generation, Entities, Actions, Action Generators and a simple test scene to see how it all comes together. if for some reason you are here, you can check out
test_ui.gdfor a very simple gameloop or peak atworld_state.gdfor the data representation.
Attribution #
using Dungeon Crawl Stone Soup assets from http://opengameart.org/content/dungeon-crawl-32x32-tiles-supplemental