0 Members and 1 Guest are viewing this topic.
If you want to add a method to export save games or something, you could use the clipboard. Basically, when you want to export, serialize the data in a format that you can put into a string. Copy it to the clipboard and display a message to the user that he needs to open a 'save game' document in order to save. The 'save game' document is something that fetches the data out of the clipboard (and checks if it's valid of course) and stores it to a local variable.
Quote from: Jim Bauwens on November 23, 2013, 05:42:50 amIf you want to add a method to export save games or something, you could use the clipboard. Basically, when you want to export, serialize the data in a format that you can put into a string. Copy it to the clipboard and display a message to the user that he needs to open a 'save game' document in order to save. The 'save game' document is something that fetches the data out of the clipboard (and checks if it's valid of course) and stores it to a local variable.If im not mistaken, its what he did in the first place, look at the previous page.
@Hayleia: Ah, thanks for pointing out, I certainly would have forgotten it! My plan was to upload minecraft 2D to ticalc when it's finished but this is the first contest I'll participate! I'm so excited! Edit: Ok, file is uploaded and email is sent to [email protected] (?) Now let's hope that it was still in time... when is the deadline?