#Asset loading

13 messages · Page 1 of 1 (latest)

twin lagoon
#

I am creating a minecraft clone and I am wondering if I should load a texture every time a block is placed or if I should save the handle as a resource somewhere. I am thinking I should create a handleID hashmap and load in all assets upon startup. Is this a common pattern?

scenic cape
wintry tree
#

For a voxel game you probably just want to load one big tile-map once when the game starts.

glacial parcel
#

^ this is what minecraft does. You can sometimes see this whole texture on blocks when loading a broken shader

twin lagoon
#

I’m struggling quite a bit with making this tbh

#

I made this originally with the intention of just a proof of concept that I can do it in rust

#

So I have an array of blocks that stores all the data

#

Like red stone signal and stuff

#

Then I want a gui for it

#

So I looked at bevy and gave it a shot

#

But it’s actually really hard to integrate with the existing code

wintry tree
#

I don’t have a tilemap example, but I believe there is a tile map crate floating around somewhere.