Город МОСКОВСКИЙ
00:18:55

PyGame Beginner Tutorial in Python - Adding Buttons

Аватар
Игры и Виртуальная Реальность
Просмотры:
68
Дата загрузки:
27.10.2023 20:25
Длительность:
00:18:55
Категория:
Обучение

Описание

In this video I will explain how to easily create buttons in PyGame using classes and object orientated programming.
I am going to explain how to setup a Button class, how to create different button instances and how to detect if they have been clicked. Finally I show how to turn this into a module that can be easily added into a project.

Code and assets on github:
https://github.com/russs123/pygame_tutorials/tree/main/Button

Check out my other PyGame tutorials:
Space Invaders coding tutorial: https://youtu.be/f4coFYbYQzw
Flappy Bird coding tutorial: https://youtu.be/GiUGVOqqCKg

Рекомендуемые видео