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
Watch video Coding an Inventory - Pygame Adventure Game 11 online, duration hours minute second in high quality that is uploaded to the channel Alexander Farrell 12 December 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 981 times and liked it 35 visitors.