You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

geemudesu.pde 545B

12345678910111213141516171819202122232425262728
  1. String gameID = "giers";
  2. public void setup() {
  3. size(400, 240);
  4. initGamepad();
  5. saveStates(gameID);
  6. loadSave(gameID);
  7. }
  8. float ellipsex, ellipsey;
  9. public void draw() {
  10. getUserInput();
  11. background(255);
  12. ellipsex+=LSTICK.x;
  13. ellipsey-=LSTICK.y;
  14. circle(width/2+ellipsex,height/2+ellipsey,10);
  15. }
  16. void loadSave(String gid){
  17. byte[] savedStates = loadBytes(dataPath("") + "/saves/" + gid + ".sav");
  18. }
  19. void saveStates(String gid){
  20. byte[] savebytes = new byte[1];
  21. saveBytes(dataPath("") + "/saves/" + gid + ".sav", savebytes);
  22. }