Page 1112 - 3-2
P. 1112

red = (200,0,0)
            green = (0,200,0)
            black = (0, 0, 0)


            bright_red = (255,0,0)
            bright_green = (0,255,0)


            pygame.display.flip()
            screen.blit(face1, (0,0))


            panel_switch=0


            find=0
            fan=0
            bath=0
            bed=0
            curtain=0


            # 글자 설정
            def text_objects(text, font):
                textSurface = font.render(text, True, black)
                return textSurface, textSurface.get_rect()




            # 버튼 정의
            def button(msg,x,y,w,h,ic,ac,action=None):
                global err
                global panel_switch
                global find
                global fan
                global bath
                global bed
                global curtain




                mouse = pygame.mouse.get_pos()
                click = pygame.mouse.get_pressed()


                if x+w > mouse[0] > x and y+h > mouse[1] > y:
                    pygame.draw.rect(screen, ac,(x,y,w,h))


                    if click[0] == 1 and action != None:
                        if action == "play":


                                                        - 1112 -
   1107   1108   1109   1110   1111   1112   1113   1114   1115   1116   1117