Creating a Minecraft style menu in Python [Ursina]

preview_player
Показать описание
A tutorial about creating a Minecraft style menu in Python with Ursina. The project somewhat follows from my previous tutorial on how to create a basic Minecraft setup in Python.

About 20 more videos until I get to all of Minecraft :D

Timestamps:
0:00:00 Intro
0:01:03 The Logic of the project
0:02:25 Creating the screen and menu background
0:06:30 Creating a basic draggable Item
0:11:27 Creating the grid
0:15:47 Connecting the Draggable to the grid
0:22:06 Snapping the Draggable into the cell
0:36:27 Adding Item textures
0:40:47 Adding items by pressing a button
0:52:10 Swapping overlapping items
Рекомендации по теме
Комментарии
Автор

No you made this 😁 I was watching your videos yesterday, needed some pong collision logic 😜 Definitely the best Python content on the internet man!

mixlaproduction
Автор

31:10 self.x+self.scale_x/2 is the center position of the Entity, in the round operation you are just removing the remainder on an integer division, it could also work similarly with the mod % operator
def center(entity):
return entity.position + Vec2(entity.scale.x, -entity.scale.y)/2
def snap(pos, tile_size):
xsnap = pos.x - pos.x % tile_size[0]
ysnap = pos.y - pos.y % -tile_size[1]
return (xsnap, ysnap)
Then you call it with the center of your item: newposition=snap(center(item), item.scale)
Awesome tutorials by the way, I enjoy watching them

luvtv
Автор

best python content creator. full stop end of discussion. you can't even compete. So clear and simple, dosen't waste my time.

sammple
Автор

this is the best, i really hope that you keep making ursina tutorials, that would be nice, greetings from Chile!

exoditore
Автор

A smile appeard in my face when I saw the video

calitts
Автор

Let's your the most underrated youtuber

stephencurry
Автор

Keep Up the Good Work Brother,
We always support you,
Come up with all good tutorials and projects,
People really need it,
& none explains better than you!!❣

snowman_student
Автор

Niceeee! Hope you dont give up on ursina!

shadofermusic
Автор

Please upload more tutorials on ursina engine regularly.

muhammadaarizimam
Автор

How do I make the inventory interact with the game itself

armcannon
Автор

In the Item class constructor, if you add a z=-0.01, make item slightly above the grid, you can avoid the bug. I think the bug is related to the display order of background, grid and items.

davidli
Автор

Thank you for all the Tutorial, really enjoyed all of it, hope you can make more video on Ursina

obatmaagtv
Автор

I think your Community is world wide(i Hope i spelled ist right😜), greeting from germany

thepaulcraft
Автор

Where can I get the textures you used for this project?

mohiuddinsyed
Автор

Awsome video, I am a big fan of Python & Blender addons. One of the best videos so far.

simplegregg
Автор

Please make a tutorial on tiled map editor and pytmx

atharvapatil
Автор

thanks God he remember his youtube channel password

SanjayKumar-xnxm
Автор

I liked it really so much..this engine and pyhton combination is superb..really helpful ...

sandippankhaniya
Автор

can you show us how to put the minecraft menu into the minecraft that you created

avengersworld
Автор

I don't find the textures anywhere. Where can I find them?

AlejandroSanchez-gnvg