Twinklebear / LPCGame

Working on a C++ tile based 'engine' using SDL
MIT License
18 stars 1 forks source link

Loading/Saving Data and Prefabs #11

Open Twinklebear opened 11 years ago

Twinklebear commented 11 years ago

Images/Animations should be described through their own json file that would be loaded as needed, instead of directly in the state's json file

Loading/Saving changes system

Twinklebear commented 11 years ago

Done so far:

There is also the JsonHandler class available for usage for simplifying interactions with json files.

Twinklebear commented 11 years ago

Working on cleaning up loading, Image, AnimatedImge and LuaScript now just load from filenames and can be saved as filenames. Save() still exists but will be migrated to being used for saving entities to seperate JSON files from the editor so DO NOT USE IT for Image/AnimatedImage. Unless you're adding in saving editor created data, but that's a ways off.