-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgacha.py
31 lines (29 loc) · 936 Bytes
/
gacha.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import pygame
import random
from settings import *
def gacha_eventcard():
for i in range(74):
screen.blit(images[i], (0, 0))
pygame.display.update()
clock.tick(FPS / 2)
draw_text("화면을 클릭해주세요", center=(SCREEN_WIDTH / 2, SCREEN_HEIGHT - 100), size=30, color="#000000")
pygame.display.update()
click = False
while not click:
for event in pygame.event.get():
if event.type == pygame.MOUSEBUTTONDOWN:
click = True
for i in range(74, 281):
screen.blit(images[i], (0, 0))
pygame.display.update()
clock.tick(FPS)
for img, pos in tmp_arr_char:
screen.blit(img, pos)
pygame.display.update()
clock.tick(FPS)
click = False
while not click:
for event in pygame.event.get():
if event.type == pygame.MOUSEBUTTONDOWN:
click = True
return gacha, ()