FrederikTobner / tobot-engine

A simple 2D game engine built on top of SDL2
https://frederiktobner.github.io/tobot-engine/
GNU General Public License v3.0
2 stars 0 forks source link

feat: Define assets for example #35

Closed jksevend closed 1 year ago

jksevend commented 1 year ago
jksevend commented 1 year ago

lgtm for now, but in the future we should handle this in the engine, so the client doesn't need to use cmake for his project and our implementation is independent of the build system that is used. Or we generate / alter the cmake files with our cli tool or a config file.

E.g.

  • tobot add_assets ./folder
  • tobot add_asset ./folder/asset.png

I think we can use our build/config file instead like flutter does? https://docs.flutter.dev/development/ui/assets-and-images

FrederikTobner commented 1 year ago

lgtm for now, but in the future we should handle this in the engine, so the client doesn't need to use cmake for his project and our implementation is independent of the build system that is used. Or we generate / alter the cmake files with our cli tool or a config file. E.g.

  • tobot add_assets ./folder
  • tobot add_asset ./folder/asset.png

I think we can use our build/config file instead like flutter does? https://docs.flutter.dev/development/ui/assets-and-images

We could alter the config file with the cli tool as well, if we want to add a whole folder of assets for example.