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!
Watch video Adding a Main Menu - Pygame Adventure Game - 10 online without registration, duration hours minute second in high quality. This video was added by user Alexander Farrell 28 November 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 312 once and liked it 8 people.