Adding a Main Menu - Pygame Adventure Game - 10

Опубликовано: 28 Ноябрь 2023
на канале: Alexander Farrell
312
8

In this video, we add a main menu with two buttons to our game, and add a background! We talk about switching states from our menus to gameplay. Using our engine class from the last video, this makes it much easier.

Full Adventure Game in Pygame Playlist:
   • Tiles and Sprites in Pygame - Adventu...  

Starting Code (from the previous video):
https://github.com/AlexanderFarrell/a...

Completed Source Code:
https://github.com/AlexanderFarrell/a...

Link to Background:
https://www.alexanderfarrell.com/arti...

Timestamps
00:00 - Intro
00:20 - Programming a Button
02:25 - Get the Size of Text
03:21 - Coding the Main Menu
05:31 - Position Things on Menu
07:16 - Fix bug - Transitioning to Gameplay
08:09 - Testing
08:39 - Add a Background
10:21 - Testing!


Смотрите видео Adding a Main Menu - Pygame Adventure Game - 10 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Alexander Farrell 28 Ноябрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 312 раз и оно понравилось 8 людям.