Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver1
179いいね 4,868 views回再生

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:
https://github.com/vimichael/inventor...

My old sandbox game:
https://github.com/vimichael/Sandbox-...

Discord:
  / discord  

Patreon:
  / codingwithsphere  

Music from:
   • Lofi Chilled Beats - 12 Hours of DMCA Free...  

コメント