Friday, 15 February 2013

scoreboard that saves after sketch is restarted?- Processing -



scoreboard that saves after sketch is restarted?- Processing -

is there way create scoreboard in processing saves after sketch closed , reopened? , there way create work on android?

here little sample using savestrings():

class="lang-java prettyprint-override">//random scores int[] scores = {01,20,40,60,30,25}; void setup(){ //convert , save string[] s = str(scores); savestrings("sco.txt",s); //load in different array... // path saved data, string path = "/users/vk/documents/processing/_forum/savescore/sco.txt"; int[] loadedscores = int(loadstrings(path)); // ensure there... println(loadedscores); }

processing

No comments:

Post a Comment