filmov
tv
How to make Minesweeper in Pygame - Step-by-Step Tutorial for beginner

Показать описание
In this video we will be creating the classic minesweeper game using pygame and Object Oriented Programming.
In this tutorial, we will create the classic Minesweeper game using the Python, Pygame library, and Object-Oriented Programming principles. We will start by designing the game window and then move on to building the game logic, adding the images, and creating all the events.
We will also cover some advanced techniques, such as recursion, to implement the game mechanics. By the end of this video, you will have a good understanding of how to develop a complete game using Pygame and OOP concepts.
I hope you guys enjoy it!
👍 Like to show your support!
⭐ Subscribe for more pygame content!
00:00 - Intro / Game explanation
03:42 - Game class
05:57 - Setting up the Settings file
12:25 - Tile Class
15:24 - Board Class
19:48 - Drawing the Tiles
22:05 - Placing the mines
26:51 - Placing the Clues
35:04 - Testing the mines and clues
37:05 - Redefining Tile draw function
28:45 - Mouse Events
43:03 - Dig Algorithm
51:07 - Finishing up the events
55:20 - Check win function
58:23 - End screen function
59:48 - Final tests
1:00:05 - Outro
In this tutorial, we will create the classic Minesweeper game using the Python, Pygame library, and Object-Oriented Programming principles. We will start by designing the game window and then move on to building the game logic, adding the images, and creating all the events.
We will also cover some advanced techniques, such as recursion, to implement the game mechanics. By the end of this video, you will have a good understanding of how to develop a complete game using Pygame and OOP concepts.
I hope you guys enjoy it!
👍 Like to show your support!
⭐ Subscribe for more pygame content!
00:00 - Intro / Game explanation
03:42 - Game class
05:57 - Setting up the Settings file
12:25 - Tile Class
15:24 - Board Class
19:48 - Drawing the Tiles
22:05 - Placing the mines
26:51 - Placing the Clues
35:04 - Testing the mines and clues
37:05 - Redefining Tile draw function
28:45 - Mouse Events
43:03 - Dig Algorithm
51:07 - Finishing up the events
55:20 - Check win function
58:23 - End screen function
59:48 - Final tests
1:00:05 - Outro
Комментарии