summary refs log tree commit diff stats
path: root/src/script_system.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Started adding event where Claus joins the partyKelly Rauchenberger2021-02-181-2/+5
|
* Made some sprites persist between map changesKelly Rauchenberger2021-02-171-2/+9
| | | | | | 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 expressions (currently just surprise)Kelly Rauchenberger2021-02-171-1/+9
|
* Added scriptable camera panningKelly Rauchenberger2021-02-161-0/+14
|
* Added camera shake to lightning eventKelly Rauchenberger2021-02-151-1/+3
|
* Added map fadeoutsKelly Rauchenberger2021-02-141-6/+15
| | | | Screen fadeouts and map fadeouts are now handled by the effect system.
* Added lightning sprite to mailbox eventKelly Rauchenberger2021-02-131-0/+33
| | | | | | | | 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.
* Added non-looping animationsKelly Rauchenberger2021-02-131-1/+2
| | | | Lucas can get electrocuted now.
* Scripts are organised per-map nowKelly Rauchenberger2021-02-121-6/+6
|
* Added choice promptsKelly Rauchenberger2021-02-111-1/+3
| | | | "A presses" are also no longer special values in the lines list, but are rather a field on the MessageLine object.
* Player movement/input is halted during cutscenesKelly Rauchenberger2021-02-101-1/+2
|
* Player is no longer controllable during map transitionsKelly Rauchenberger2021-02-101-3/+4
|
* loadMap requires a direction now, so party trails are set up correctlyKelly Rauchenberger2021-02-101-2/+2
|
* Running is preserved across screen transitionsKelly Rauchenberger2021-02-101-1/+13
|
* Direction is preserved across map transitions nowKelly Rauchenberger2021-02-101-1/+25
|
* Added fade out around map changeKelly Rauchenberger2021-02-101-2/+8
| | | | 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-0/+6
| | | | 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-0/+29
|
* Created script systemKelly Rauchenberger2021-02-051-0/+65