Coding an Inventory - Pygame Adventure Game 11

Опубликовано: 12 Декабрь 2023
на канале: Alexander Farrell
981
35

In this video, we code an inventory which holds stackable items, can have weight, value, and can display to the screen. We also integrate the inventory with our Adventure Game written in Python and uses Pygame.

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

Starting Code (Code from Previous Video):
https://github.com/AlexanderFarrell/a...

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

Image of Inventory Slot and Diamond:
https://www.alexanderfarrell.com/arti...

My Website for More Info:
https://www.alexanderfarrell.com/

Timestamps
00:00 - Intro
00:47 - Architecture of Inventory Classes
02:26 - Inventory Class Overview
06:25 - Inventory Code - Constructor
07:03 - Inventory Code - Has Item Method
08:06 - Inventory Code - Remove Item Method
10:11 - Inventory Code - Add Item Method
13:26 - Inventory Code - Other Helpful Methods
14:53 - Inventory Code - Weights and Values
15:27 - Inventory Thoughts
15:50 - Pick Up Items from the World
17:47 - Window and Engine Extension
20:11 - Architecture of Inventory View
22:07 - Inventory View - Constructor
24:43 - Inventory View - Clear Method
25:06 - Inventory View - Rendering Everything!
27:37 - If you run into bugs
28:39 - Adding Items to Our Game
29:02 - Adding Dropped Items
29:46 - Integration
31:19 - Add Shadows to Text
32:32 - Image Files to Add
32:53 - Giving the Player an Inventory!
33:48 - Fix one Small Bug
34:22 - Adding Items to Worlds
35:46 - Testing
36:06 - Thank you


Смотрите видео Coding an Inventory - Pygame Adventure Game 11 онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Alexander Farrell 12 Декабрь 2023. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 981 раз и оно понравилось 35 посетителям.