Войти
  • 6604Просмотров
  • 9 месяцев назадОпубликованоCoding with Sphere

How to Make a Minecraft-like Inventory System | Golang Tutorial

Minecraft-like Inventory System Tutorial This tutorial was designed to be applicable to game libraries like Raylib, SDL, Love2D, pygame, Ebitengine, and similar tools. Thanks for watching! If you have any questions, please leave them in the comments! BTW, if you want cell amount limits (like 64 in minecraft), just change the PlaceItems to calculate the amount of space left in the cell, and subtract that from the hand. If the hand is empty, then make it empty. Also, in PlaceOneItem, change it to only place if the cell is not full. Timestamps: 00:00 Start 00:22 Planning 00:50 Coding Time 06:00 Testing Our Code 08:39 UI 20:29 Mouse Interaction 29:57 Drawing the Hand 34:05 Right Click Functionality 39:02 Example Game I made with this Source code: My old sandbox game: Discord: Patreon: Music from: