summary refs log tree commit diff stats
path: root/src/game.h
Commit message (Collapse)AuthorAgeFilesLines
* Added a debug consoleKelly Rauchenberger2021-02-211-0/+7
| | | | | | | | Open it by pressing backtick, close it by hitting escape. Pressing backtick does not open it in release builds. Current shortcomings: opening it for the first time also types a backtick for some reason, but not on subsequent times. Also, it doesn't create a coroutine, so any script function that yields is going to fail. This also added a "is gameplay paused" flag to Game, which will be useful for adding a pause menu.
* Added a randomly wandering Ionia to the mapKelly Rauchenberger2021-02-201-1/+5
|
* Made some sprites persist between map changesKelly Rauchenberger2021-02-171-3/+3
| | | | | | The player party characters are now initialised at the start of the game and are no longer re-created after every map change. The script system takes care of moving the player into the correct position on the new map. Deleted sprite IDs are now reused the next time a sprite is created, instead of throwing out everything between maps.
* Added map fadeoutsKelly Rauchenberger2021-02-141-5/+0
| | | | Screen fadeouts and map fadeouts are now handled by the effect system.
* Added lightning sprite to mailbox eventKelly Rauchenberger2021-02-131-2/+5
| | | | | | | | Sprites can be destroyed now, which really just means that their index is removed from the list of active sprites. The actual memory is not freed until all sprites are deleted on map change. Sprite layers are introduced. All sprites by default are on layer 0 (Normal) which renders them in between the lower and upper map layers. There is also a layer 1 (Above) that renders above the upper map layer, and the sprite for the lightning strike uses this layer in order to not be hidden by the trees. Fixed a bug where waiting for the end of a non-looping animation would trip the flag immediately upon the final frame activating, instead of waiting the length of the last frame.
* loadMap requires a direction now, so party trails are set up correctlyKelly Rauchenberger2021-02-101-1/+1
|
* Added fade out around map changeKelly Rauchenberger2021-02-101-0/+5
| | | | Also moved script system first in the loop so that the camera can catch up before rendering. Also added a map change from map 2 back to map 1.
* Map changing!Kelly Rauchenberger2021-02-091-1/+3
| | | | Also removed some dependencies on the Renderer. More changes need to be made. Fading to black before the change would be good. And making sure the characters are facing the right direction. Maybe that code shouldn't live in Game, either. Later we also want to combine the tilesets for these two maps (and any others that are on Tanetane).
* Added sound and animation changes to scriptingKelly Rauchenberger2021-02-061-1/+6
|
* Added text boxesKelly Rauchenberger2021-02-041-0/+8
| | | | | | Text now reveals itself and scrolls! Yay! It even plays speaker beeps. TODO: the arror indicating an A press is needed. Bullets on lines that need bullets. The header that says who the speaker is, if relevant.
* Added input systemKelly Rauchenberger2021-02-031-7/+10
|
* Added animation systemKelly Rauchenberger2021-02-031-13/+5
|
* Added camera systemKelly Rauchenberger2021-02-031-27/+21
|
* Pulled transform stuff into a system (starting to do ECS stuff)Kelly Rauchenberger2021-02-031-9/+13
|
* Added moving cameraKelly Rauchenberger2021-02-021-0/+21
|
* Using tmxlite instead of TilesonKelly Rauchenberger2021-02-021-7/+5
|
* Map rendering Works but I don't want to use Tileson so I'm gonna change thatKelly Rauchenberger2021-02-021-0/+9
| | | | Mainly bc Tileson requires std::filesystem, which my clang is too old for apparently, and while I can use gcc instead I just want to not, I suppose. Also Tileson's API is very weird RE const correctness? Idk. And also being able to parse the tmx files rather than exporting to json would be preferable.
* Sprite animations are more generic than still/walk nowKelly Rauchenberger2021-01-301-2/+2
|
* Added standing/walking animationsKelly Rauchenberger2021-01-301-0/+14
|
* Added sprite Y sortingKelly Rauchenberger2021-01-301-7/+20
|
* Encapsulated some player movement stuffKelly Rauchenberger2021-01-301-0/+7
| | | | Imported vector from therapy5
* Game now renders an image of LucasKelly Rauchenberger2021-01-301-0/+29