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, duration hours minute second in high quality that is uploaded to the channel Alexander Farrell 28 November 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 312 times and liked it 8 visitors.