To archive images, go into the tools/ directory and run game_archive_images.bat. This will archive all of the png, gif, and jpg images in the game directory. You also need to add the lines:
Code: Select all
init:
$ config.archives = [ 'images' ]
to your game. You can then move the png, gif, and jpg files out of the game directory, run your game, and the game will still work.
To obfuscate script files, just ship the .rpyc files instead of the .rpy files. The .rpyc files are an obfuscated form of the .rpy files. .rpyc files are automatically generated when .rpy files change, but if the .rpy files are not present, Ren'Py will operate fine from just the .rpyc files.
You can add music to the archive by editing game_archive_images.bat, and changing it so that *.mp3, *.ogg, or whatever extensions you use are added to the archive. Once that's done, you can run the batch file, and everything will be archived.
Oh, and make backups. When moving stuff around like this, you could inadvertently delete something. Making backups is a good way to prevent this. Only you can prevent data loss.