Is there an easier way to deploy assets?

Général

NeoTechni

il y a 6 ans

On Android, I just leave any files in a directory and they get copied over when I run the app. 

From what I've gathered, I either have to copy the files manually to the microSD card, or encode images as code. Which really doesn't appeal to the lazy slob in me.

alxm

NEW il y a 6 ans

My approach was to write a Makefile with a rule that runs a code generation script on all image files in my game's graphics folder. You could also look into writing a small script to copy files to your game's known location on the SD card, to save time copying things manually.

NeoTechni

NEW il y a 6 ans

Is there a specific command line for this? The gamebuino sadly doesn't show as a USB hard drive (which would make this much easier)

alxm

NEW il y a 6 ans

If you want to use BMP files instead of embedding the images in your code, you have to use a card reader to transfer them. The script idea was to just copy the files to where the SD reader shows up on your computer, so you don't have to gather and update them by hand every time.

NeoTechni

NEW il y a 6 ans

Aww, dang. Thank you.