1
Programs / Re: Space shooter - full game in development
« on: August 14, 2020, 06:27:31 pm »One thing I am really not comfortable with in QB64 up to this point is that all my image and sound files are just sitting in plain sight, any end user can go in and inspect the sprite sheet and mess with stuff or replace it with their own files. Is there a way to convert these asset files into some kind of binary file, so the compiled package won't have any recognizable bits?
I am on my phone typing so if someone could help with full code, thank you.
Let me toss out a possible solution that will solve your problem. This will work with any file.
First use Open "filename.ext" and use LOF() to get the file length. GET #f,,strData$ to grab the entire file contents and finally close the original file.
Here is the work around you can keep it simpme or make it more complex depending on your preference. Either reverse the Data, or scramble the Data and save the new Data to a new file. As mentioned before you can also use zlib for compression.
Make sure you open the input and output
files as binary otherwise you may loose data.