Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. //Draw card sprites from the deck
  2. xx = 100; //starting x pos
  3. yy = 100; //starting y pos
  4. position = 0;
  5.  
  6. for (var i = 0; i <= width; i++) //cards i
  7. {
  8. for (var j = 1; j<= height; j++) // cards j
  9. {
  10. for (var k = 0; k < repetitions; k++)
  11. {
  12. var current = ds_list_find_value(cards[i,j],position)
  13. with (current)
  14. {
  15. x = obj_controller.xx;
  16. y = obj_controller.yy;
  17. }
  18. yy += 50;
  19. position++;
  20. }
  21. position=0; //reset to beginning of list for next iteration
  22. repetitions++;
  23. yy = 100; //reset y position for next iteration
  24. xx += 100; //move along the width
  25. }
  26. }
  27. repetitions = 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement