]> git.tdb.fi Git - libs/game.git/log
libs/game.git
17 months agoProvide a way to request events for existing entities and components
Mikko Rasa [Sat, 12 Nov 2022 15:49:27 +0000 (17:49 +0200)]
Provide a way to request events for existing entities and components

The iterate_objects function does not account for derived classes, so
iterating over all Entity instances might not actually give all entities
on the stage.

17 months agoCosmetic tweaks
Mikko Rasa [Sat, 12 Nov 2022 15:40:28 +0000 (17:40 +0200)]
Cosmetic tweaks

17 months agoAdd some useful constructors for TransformValues
Mikko Rasa [Sat, 12 Nov 2022 15:34:32 +0000 (17:34 +0200)]
Add some useful constructors for TransformValues

17 months agoImplement a simple physics system in Bassteroids
Mikko Rasa [Sat, 12 Nov 2022 11:35:41 +0000 (13:35 +0200)]
Implement a simple physics system in Bassteroids

A more comprehensive physics system will be implemented in the game
engine later.

17 months agoBegin creating an example game
Mikko Rasa [Wed, 9 Nov 2022 20:58:23 +0000 (22:58 +0200)]
Begin creating an example game

17 months agoAdd setters for the individual parts of Transform
Mikko Rasa [Wed, 9 Nov 2022 20:57:15 +0000 (22:57 +0200)]
Add setters for the individual parts of Transform

18 months agoCosmetic fixes
Mikko Rasa [Fri, 4 Nov 2022 22:42:06 +0000 (00:42 +0200)]
Cosmetic fixes

18 months agoAdd a way for systems to do things at the end of a tick
Mikko Rasa [Fri, 4 Nov 2022 22:40:55 +0000 (00:40 +0200)]
Add a way for systems to do things at the end of a tick

Objects should not be created or destroyed mid-tick.

18 months agoAdd components for giving entities a visual appearance
Mikko Rasa [Wed, 2 Nov 2022 22:49:09 +0000 (00:49 +0200)]
Add components for giving entities a visual appearance

18 months agoRecursively add subdirectories of the data directory to resources
Mikko Rasa [Wed, 2 Nov 2022 22:19:21 +0000 (00:19 +0200)]
Recursively add subdirectories of the data directory to resources

18 months agoAdd less-than comparison for handles
Mikko Rasa [Wed, 2 Nov 2022 22:00:47 +0000 (00:00 +0200)]
Add less-than comparison for handles

This allows them to be used as keys for maps or binary search.

18 months agoAdd a view sub-library, including a Camera component
Mikko Rasa [Sat, 29 Oct 2022 22:16:18 +0000 (01:16 +0300)]
Add a view sub-library, including a Camera component

18 months agoAdd a function to remove a system from a stage
Mikko Rasa [Sat, 29 Oct 2022 21:13:27 +0000 (00:13 +0300)]
Add a function to remove a system from a stage

18 months agoPut Director's destructor in the .cpp file
Mikko Rasa [Sat, 29 Oct 2022 18:46:28 +0000 (21:46 +0300)]
Put Director's destructor in the .cpp file

18 months agoAdd resource container references to Director and Stage
Mikko Rasa [Sat, 29 Oct 2022 18:30:25 +0000 (21:30 +0300)]
Add resource container references to Director and Stage

18 months agoAdd some useful accessors
Mikko Rasa [Sat, 29 Oct 2022 17:46:04 +0000 (20:46 +0300)]
Add some useful accessors

18 months agoTweak the constructors of Owned
Mikko Rasa [Sat, 29 Oct 2022 17:24:39 +0000 (20:24 +0300)]
Tweak the constructors of Owned

This makes it not break if an Owned is passed as the first argument.

18 months agoUse template lambdas to avoid repetition of types
Mikko Rasa [Sat, 29 Oct 2022 17:20:55 +0000 (20:20 +0300)]
Use template lambdas to avoid repetition of types

18 months agoMake it possible to retrieve components and systems of a particular type
Mikko Rasa [Tue, 25 Oct 2022 21:17:06 +0000 (00:17 +0300)]
Make it possible to retrieve components and systems of a particular type

18 months agoAdd stage activation and events
Mikko Rasa [Tue, 25 Oct 2022 21:16:04 +0000 (00:16 +0300)]
Add stage activation and events

18 months agoAdd a transform component and propagation system
Mikko Rasa [Sat, 22 Oct 2022 19:52:04 +0000 (22:52 +0300)]
Add a transform component and propagation system

18 months agoAllow null handles to be created from nullptr
Mikko Rasa [Sat, 22 Oct 2022 16:04:53 +0000 (19:04 +0300)]
Allow null handles to be created from nullptr

18 months agoFix some pointer/reference mismatches in EventBus
Mikko Rasa [Sat, 22 Oct 2022 16:02:57 +0000 (19:02 +0300)]
Fix some pointer/reference mismatches in EventBus

18 months agoAdjust component ticking
Mikko Rasa [Sat, 22 Oct 2022 15:44:01 +0000 (18:44 +0300)]
Adjust component ticking

Running pre_tick() for all systems before running tick() for any of
them is too inflexible.  Also remove the virtual tick() function from
Component and use a concept for BasicSystem instead.

18 months agoEmit events on entity and component creation and destruction
Mikko Rasa [Thu, 20 Oct 2022 21:29:23 +0000 (00:29 +0300)]
Emit events on entity and component creation and destruction

18 months agoAdd an event bus for delivering events
Mikko Rasa [Thu, 20 Oct 2022 21:02:25 +0000 (00:02 +0300)]
Add an event bus for delivering events

18 months agoMake the parent handle in Owned templated
Mikko Rasa [Wed, 19 Oct 2022 08:07:44 +0000 (11:07 +0300)]
Make the parent handle in Owned templated

It may be useful for some components designed to be used with certain
entity types.

18 months agoAdjust some things to make header dependencies easier to manage
Mikko Rasa [Wed, 19 Oct 2022 08:01:30 +0000 (11:01 +0300)]
Adjust some things to make header dependencies easier to manage

18 months agoImplement a basic ECS
Mikko Rasa [Tue, 18 Oct 2022 20:34:10 +0000 (23:34 +0300)]
Implement a basic ECS