Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Draw card sprites from the deck
- xx = 100; //starting x pos
- yy = 100; //starting y pos
- position = 0;
- for (var i = 0; i <= width; i++) //cards i
- {
- for (var j = 1; j<= height; j++) // cards j
- {
- for (var k = 0; k < repetitions; k++)
- {
- var current = ds_list_find_value(cards[i,j],position)
- with (current)
- {
- x = obj_controller.xx;
- y = obj_controller.yy;
- }
- yy += 50;
- position++;
- }
- position=0; //reset to beginning of list for next iteration
- repetitions++;
- yy = 100; //reset y position for next iteration
- xx += 100; //move along the width
- }
- }
- repetitions = 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement