summary refs log tree commit diff stats
path: root/src/game.h
Commit message (Collapse)AuthorAgeFilesLines
* Added simple AI implementationKelly Rauchenberger2018-05-031-1/+8
| | | | | | | | The new AutomatingSystem and AutomatableComponent are responsible for simple AI tasks. This currently is limited to moving entities at a certain speed for certain periods of time. These tasks are arranged as a set of behaviors, which are picked randomly when automation starts or when a behavior finishes executing. A behavior is a sequence of actions that run one after another. Currently, if an automated entity is blocked from moving by a collision, it will be coerced out of its intended path. This is because the automation parameters are stored as a speed and a duration, rather than a starting location and an ending location. This may end up being changed, or made configurable, as this is an early implementation of this feature and will need to be more complex later. Added an RNG object to the Game class, so that the AutomatingSystem can pick behaviors at random.
* Restructured the way the world is loadedKelly Rauchenberger2018-04-281-7/+0
| | | | | | | | | | The World class was removed and replaced by the RealizingSystem and RealizableComponent. The realizable entity is intended to be a singleton and to represent the world. The Map class was also removed and integrated into the MappableComponent. These changes are to facilitate implementation of map objects without needing special intermediary objects (including the Map class). Now, map entities are created as soon as the world is created, and map object entities will be as well. They will simply be deactivated while the map is not active. Multiple players are now slightly better supported, which will be important in the future. This will likely become inefficient as the world becomes bigger, and some sort of sector-loading process will have to be designed. This also reduces the usefulness of EntityManager's entity-searching capabilities (which are not the most efficiently implemented currently anyway), and will likely in the future require some added functionality to better search subsets of entities. A lot of the components were also rewritten to use bare member variables instead of accessor methods, as they never had special functionality and just took up space. These components were also documented.
* Refactored rendererKelly Rauchenberger2018-02-161-3/+8
| | | | | | Renderer is basically now more C++'y, as it makes more use of classes (a lot of GL types have been wrapped), and the renderer itself is now a class. The monitor mesh is also now indexed. Tweaked the NTSC artifacting after inadvertently fixing a bug with the way the image was loaded.
* Implemented map rendering and basic collisionKelly Rauchenberger2018-02-111-1/+8
| | | | Only wall and platform collision currently works, and map edges are not currently implemented.
* Introduced animated spritesKelly Rauchenberger2018-02-081-10/+26
| | | | Also restyled a lot of the code.
* Whitespace changesKelly Rauchenberger2018-02-051-3/+3
|
* Player now movesKelly Rauchenberger2015-06-261-0/+24
|
* Wrote EntityManagerKelly Rauchenberger2015-06-111-45/+0
|
* Wrote an XML Schema describing maps file and also changed the spec a bitKelly Rauchenberger2015-03-181-4/+3
|
* Game can now read map file from map editor (also added new map)Kelly Rauchenberger2015-03-181-13/+8
|
* Started writing map editorKelly Rauchenberger2015-03-141-1/+1
|
* Added sound when you hit the groundKelly Rauchenberger2015-03-141-1/+2
| | | | Also split up components.cpp into files for each class, fixed a bug concerning falling off the screen when you change maps, and converted collision data into doubles.
* Removed some unnecessary parameters from methodsKelly Rauchenberger2015-03-141-2/+3
|
* Removed some unnecessary header transculsionsKelly Rauchenberger2015-03-141-4/+5
|
* Removed explicit map loading from Game since maps load each other nowKelly Rauchenberger2015-03-141-2/+0
|
* Wrote simple factory to read map and entity data from XML filesKelly Rauchenberger2015-03-141-3/+3
|
* Fixed my timestep!Kelly Rauchenberger2015-03-131-2/+2
| | | | http://gafferongames.com/game-physics/fix-your-timestep/
* Fixed bug that would prevent player from continuing to move after dying, and ↵Kelly Rauchenberger2015-03-121-1/+1
| | | | also refactored collisions and dying a bit
* Added death sound effectKelly Rauchenberger2015-03-121-1/+1
|
* Added death to my gameKelly Rauchenberger2015-03-121-0/+3
|
* Const correctness!Kelly Rauchenberger2015-03-101-1/+9
| | | | Also created savefile and refactored collisions a bit.
* C++11'd everything!Kelly Rauchenberger2015-03-101-21/+17
| | | | Also moved location information from physics components into entity.
* Created entity-component systemKelly Rauchenberger2015-03-071-0/+43
Also tweaked the bloom flicker, tweaked the scanline texture, created a second test map, and created some currently unused sound effects.