| 123456789101112131415161718192021222324252627282930 |
- /// @description init menu
- win_width = window_get_width();
- win_height = window_get_height();
- // Cards in hand
- card_hand = [];
- selected_card = 0;
- card_change = 0;
- // Spawn Card
- for(i=0; i<=4; i+=1)
- {
- card = instance_create_depth(0, 0, -600, obj_card);
- array_push(card_hand, card);
- spacing = i * 4;
-
- with(card)
- {
- x = other.i * width + other.spacing + 50;
- y = other.win_height - height;
-
- if (other.i == 0)
- selected = true;
- }
- }
- // Spawn Mob
- instance_create_depth(0, 0, -500, obj_enemy);
|