Pygame (Python Game Development) Tutorial - 46 - Button Intro

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Suggestion - make the positioning of the buttons dynamic so if you decide to change the frame size, you don't have to edit the buttons. For example:

        pygame.draw.rect(gameDisplay, Green, ((display_width/2)-160, (display_height/2) + 50, 100, 50))
        pygame.draw.rect(gameDisplay, Yellow, ((display_width/2)-50, (display_height/2) + 50, 100, 50))
        pygame.draw.rect(gameDisplay, Red, ((display_width/2)+60, (display_height/2) + 50, 100, 50))

kristian
Автор

"Hey I'm a button you can click me"
LOL

bioweapon
Автор

Hey can you do the game making by C or C++? This looks so cool!!!!

zendao
Автор

how come its sentdex! I am your biggest fan, btw why is this here and not on your main channel?

Prithvidiamond
Автор

thenewboston 46th video of pygame tutorial is broken, chance of fixing it?

kubabest
Автор

Can't we use a Tkinter button in pygame?

rohanjacob
welcome to shbcf.ru