diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-17 20:34:59 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-17 20:34:59 -0500 |
commit | aac57db782718bf40a7adea15baf8d6b899ea925 (patch) | |
tree | c9f32563cdb9a06e6e24343946c5bb35dc254b76 /src/system.h | |
parent | b3720c4a401f345c49eadabdb852968e273e7077 (diff) | |
download | tanetane-aac57db782718bf40a7adea15baf8d6b899ea925.tar.gz tanetane-aac57db782718bf40a7adea15baf8d6b899ea925.tar.bz2 tanetane-aac57db782718bf40a7adea15baf8d6b899ea925.zip |
Made some sprites persist between map changes
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.
Diffstat (limited to 'src/system.h')
-rw-r--r-- | src/system.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/system.h b/src/system.h index 0cdc205..01d6cec 100644 --- a/src/system.h +++ b/src/system.h | |||
@@ -18,8 +18,6 @@ public: | |||
18 | virtual void tick(double dt) {} | 18 | virtual void tick(double dt) {} |
19 | 19 | ||
20 | virtual void destroySprite(int spriteId) {} | 20 | virtual void destroySprite(int spriteId) {} |
21 | |||
22 | virtual void clearSpriteCache() {} | ||
23 | }; | 21 | }; |
24 | 22 | ||
25 | #endif /* end of include guard: SYSTEM_H_6B40E1B9 */ | 23 | #endif /* end of include guard: SYSTEM_H_6B40E1B9 */ |