Тёмный

I remade my voxel game 3 times, this is why 

Tantan
Подписаться 41 тыс.
Просмотров 120 тыс.
50% 1

I remade my voxel game 3 times. Unity, Rust, Bevy.
Download Core to create games for FREE at bit.ly/Core-Tantan
☝️😀
I went from Unity, to pure Rust (no game engine), to then moving all my code into bevy (a Rust game engine).
The latest move, was promted due to having some project architecture challanges, that I felt could be solved easily with Bevy. Their entity component system is also one of the front runner in innovation I think, which is very exciting to work with.
My discord group:
/ discord
Want to support me?
Patreon: / tantandev
Monero: 43Ktj1Bd4Nkaj4fdx6nPvBZkJewcPjxPB9nafnepM7SdGtcU6rhpxyLiV9w3k92rE1UqHTr4BNqe2ScsK1eEENvZDC3W1ur
Resources (The tech I'm using)!
Bevy game engine: bevyengine.org/
for gui stuff: github.com/jakobhellermann/be...
^ I made my own inspector so I can use midi controller. (but egui is the ui library)
other rust libraries, that I recommend:
Graphics rendering api: wgpu.rs/
multithreading: github.com/zesterer/lagoon
benchmarking: github.com/bheisler/criterion.rs
profiling: crates.io/crates/profiling, using Optick feature
My other game framework of choice: github.com/not-fl3/macroquad

Наука

Опубликовано:

 

28 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 227   
@Tantandev
@Tantandev 2 года назад
Download Core for FREE at bit.ly/Core-Tantan ^ I was actually surprised how quickly I could make the flower gun. (can now do it within 5min without any coding) It's just a matter of time till someone remakes Splatoon but with flowers in Core 😂 Also Bevy, Bevy, Bevy, Bevy!
@amosnimos
@amosnimos 2 года назад
C# i dont use game engine, C no classes, Cpp ugh memory, python too slow, js i don't whant a web app, java fvck oracle and jdk, Assambly too involved, basic limited graphics, yep i hate every language that exists...
@cub1cc
@cub1cc 2 года назад
@@amosnimos you didnt even mention rust!?!?!!
@amosnimos
@amosnimos 2 года назад
@@cub1cc exactly
@hahayes7205
@hahayes7205 2 года назад
Remaking a project because of a single obstacle is probably the most relatable thing ever
@wumwum42
@wumwum42 2 года назад
I had a project where I tried to make a wrapper for pacman (the arch Linux package manager). While it taught me a lot and was fun, I was horrible in project management... The history: 1. Started it as a bash script 2. Switched to Python because bash argument parsing sucks 3. Decided to use a "database" of commands based structure which is parsed by an Python script 4. Realised json has no multiline support so I decided to use a python function returning a dictionary instead. 5. Had to still make a list of all my commands because I couldn't find a good way to feed my "database" into the argument parser 6. I Constantly switched between the database, the database parser and a Python logging library 7. Decided to add multiple command subvariations afterwards (like if the package database should be refreshed or not when this command is ran.) -> rewrote the entire parser and database 8. Realized the way my database was structured didn't allow a certain option > restructured database and parser 9. Repated step 8 at least 5 times 10. Temporally Forgot every good commenting practice I ever learned 11. Somehow managed to regularly forget to commit and named nearly all my commits "update" Ended up with a broken concept and code and a good logging library ... Looking back I am surprised it sometimes somewhat worked ... I probabatly gonna rewrite it in rust and use a real sqlite database instead
@elzearcontelly2651
@elzearcontelly2651 2 года назад
@@wumwum42 ahah, I did the exact same (pacman/apt wrapper), bash then Kotlin. Despite being much faster and convenient, the Kotlin version is so buggy that I just use the bash one on the daily
@nahfamimgood
@nahfamimgood 2 года назад
haha yes
@poggybitz513
@poggybitz513 Год назад
​@@elzearcontelly2651 yes! recently, i wrote a live wallpaper utility for mac that downloaded video from yt and set it as live wallpaper in python. ate like 100 gigs of ram, wrote in go ate like 40 gigs of ram, 200 mb in rust, 30 in swift and then wrote simple bash script that all that, eats like 19 mb ram. shell is powerful than we realize.
@420moby
@420moby Год назад
finishing that project tho lowkey is actually satisfying asf
@colorfulchew
@colorfulchew 2 года назад
Can't wait for more Rust tools like Bevy to push game dev forward. It feels like Rust has a lot of promising sprouts, just need to care for the ecosystem and turn it into a beautiful forest.
@badradish2116
@badradish2116 2 года назад
im way more excited by bevy than amethyst
@shinobuoshino5066
@shinobuoshino5066 Год назад
I'm way more excited by real programmers who know what they're doing doing awesome things than amateurs who think that Rust and some library will make them into a real gamedev.
@okie9025
@okie9025 9 месяцев назад
@@shinobuoshino5066 Agreed - Rust won't make your programs better, being a better programmer will make your programs better.
@pinekel8987
@pinekel8987 13 дней назад
@@shinobuoshino5066 Such a strawman argument. No one here thinks Rust and some library will make them "into a real gamedev". It is the exploration of tools that work that leads to progress. Also, there is no "real gamedev", sure one can be successful, but no one is perfect.
@jdh
@jdh 2 года назад
looking forward to the next video when you move it to VBScript!
@adytm
@adytm 2 года назад
Oh hi jdh GO BACK WORK ON THE WIRING (jk)
@HackerMan1010
@HackerMan1010 2 года назад
One of the best ways to learn is repetition and trying new things , so remaking the game again in an engine is just giving you experience 😁👍
@rosaliom.s.2382
@rosaliom.s.2382 2 года назад
Man is xp grinding in different realms
@turkym7md5
@turkym7md5 2 года назад
@@rosaliom.s.2382 lmao
@LimitedWard
@LimitedWard 2 года назад
This video feels so well-timed. Yesterday was the first time I decided to really sit down and learn Rust. I decided I wanted to try to make a fluid simulation similar to one I had made using C++ back in college. Ended up using Bevy since I didn't want to deal with learning Rust *and* game design *and* [relearning] graphics programming all at the same time. So far the Bevy ECS has been mind-blowing from the perspective of a caveman OO programmer like myself.
@andreskushnir2356
@andreskushnir2356 2 года назад
Have you heard of Veloren? It is a CubeWorld-like game developed by community. Written in Rust too. Perhaps you will be interested in contributing to the Project too :)
@user-uz6ys3jb8i
@user-uz6ys3jb8i 2 года назад
I can relate to this a lot! Don't think I've ever managed to do project where I got the code architecture right the first time 😅
@rootwayder77
@rootwayder77 2 года назад
Rust is always been my favourite programming language ❤️
@DanKaschel
@DanKaschel 2 года назад
Inspired by some of your videos, I set about to make my own 3d engine in rust as my first major rust project (I just worked through the rust book and rustlings). It’s going terribly! I picked the wrong tutorial; it took literally > 500 lines of code to make a triangle appear on the screen with wgpu and I had no idea what was going on most of the time. Time to take a step back and find something simpler. I found a library called pixel-canvas and it seems more my speed for now.
@Tantandev
@Tantandev 2 года назад
Trust me I've been in the same boat. I can't count the amount of graphics programming tutorials I've done (more than 5 times). Take a step back, revisit later and eventually you'll start understanding what is going on! It took me quite some time
@Skeffles
@Skeffles 2 года назад
Love that chunk animation! Super interesting to heard about bevy and the builder structure you can use with it. This is sparked me thinking if I can utilise builders like this in my own engine.
@colemickens
@colemickens 2 года назад
omg, I am already very excited about Rust and writing it but your energy is enthralling. :D more please! :)
@TonsOfHunStudios
@TonsOfHunStudios 2 года назад
Lasagna indeed! I'm learning so much about good code from you so thank you :) Hearing about the animation and world generation was really interesting, especially using the MIDI controller. BEVY seems to have a lot of promise as well which is awesome. Great stuff!
@aliancemd
@aliancemd 2 года назад
That animation looks nice👌 Also, that Bevy API looks very cache friendly, I need to look into it, thanks
@ZooHair
@ZooHair 2 года назад
as a wise men said: 3 times a charm the project is looking beautiful. Can't wait to see a full version
@alichamas63
@alichamas63 2 года назад
Remaking is a great learning experience, but sometimes you need to ask yourself "do I want to be an engine developer, or a game developer .. or both!". I've gone down so many rabbit holes rewriting stuff (and learning!) but never finished any games due to running out of time and energy. Good luck and work hard my dude! Really love your content!
@XnetRoidPL
@XnetRoidPL 2 года назад
Welcome to bevy community! :D
@gingergoat3027
@gingergoat3027 2 года назад
Your bevy song from your first bevy video was a complete banger. It wouldn't hurt to get a longer version... ;)))))
@4rcant
@4rcant Год назад
ahhh yes, ECS in Rust ♥ got my first job working on that, learning rust at the same time as ECS for the backend, and making a the frontend in unity. it was very painful, ngl
@geshtu1760
@geshtu1760 2 года назад
Bevy does look like a strong choice for building games in Rust. Previously I looked at other Rust-based engines/libraries. Amethyst was ambitious but difficult to get started with. I think Bevy really changed the game. At first the improvement over Amethyst seemed subtle - more like a pretty nice trick with Rust traits. But it was so powerful, and what you described here really brings that out. This architecture is really scalable. I really do want to know how the performance compared with Unity though. I find it amazing that Unity can perform as well as it does given how complicated the whole system is. A simpler engine built in Rust should be able to beat it in raw performance, because it doesn't yet carry all of the features.
@S41L0R
@S41L0R 2 года назад
7:00 Here's something I do: I make a function that is sort of a wrapper around the actual print function, and I do any debug mode checks I want in that. Then I just call that function.
@eboatwright_
@eboatwright_ 2 года назад
This is super cool! :D I also had that problem with Unity, where everything would just be spaghetti and I couldn't do anything XD
@bastianschildknecht5133
@bastianschildknecht5133 2 года назад
Very nice video! Did you try the Unity version of ECS in DOTS wit the job system and burst compiler? It's blazingly fast and works the same as in Bevy.
@boroborable
@boroborable 2 года назад
no no, 4th time is a charm. I can imagine you can archive same thing using godot-godex or voxel engine plugins more like in 2 days. great video.
@daviddomkar9791
@daviddomkar9791 2 года назад
Have you considered moving the world-gen part to WGSL compute shader? I am now exploring that in my own project on the new bevy pipelined renderer (pipelined-rendering branch) and I have a great learning experience so far.
@soupnoodles
@soupnoodles 2 года назад
Bevy seems really cool! I'm only trying to use Macroquad right now, but will check it out in the future :)
@HutchesApprentice
@HutchesApprentice 2 года назад
Love your content my dude
@JwebGuru
@JwebGuru 2 года назад
Not to denigrate your choice of bevy, which is by all accounts a really nice project, but there's nothing really wrong with passing lots of stuff to a function, or use a channel to send data to other functions... that seems like a strange reason to remake the whole game. If the sheer number of parameters bothers you, you can always tie them together into a struct. Also, making every kind of command an event seems to work pretty well in practice.
@jlewwis1995
@jlewwis1995 2 года назад
Personally I was wondering why the command couldn't just ask for a reference to a subsystem directly if it needs one instead of having to pass a reference to every single thing into it at once, that seems like a much better system imo
@S41L0R
@S41L0R 2 года назад
You're as good as the likes of aarthificial and Kaos Rio! I'm subbed (: (also yeah I guess this can also be a recommendation for their channels, they're awesome)
@herlon214
@herlon214 2 года назад
Wow, I didn't know Bevy. I've been studying Unity and ECS for some time and getting totally disappointed. Now I really wanna try Bevy, it looks so cool! Thanks for the video!
@eboatwright_
@eboatwright_ 2 года назад
Congrats on the sponsor! :D
@falxie_
@falxie_ 2 года назад
You're going over the same stuff that I had with Voxel stuff in the past, but actually committing to it unlike me
@techpriest4787
@techpriest4787 2 года назад
"I want to make my game now" I know the feeling with my own from scratch Rust engine. I am using the typical accessor(index)/storage(the data) approach. The farest I have come with ECS is the system part. Never got around making data storage work. I used Hecs but I rather write my own code. Soooo the index based way is a mess. All the way back to ECS it seems. I mean heck even Unity uses it now bot not Unreal for some reason.
@undersquire
@undersquire 2 года назад
What editor and theme are you using? It looks really good :D
@M4ssExtinction
@M4ssExtinction 2 года назад
Yay new devlog
@prasannasilva7754
@prasannasilva7754 2 года назад
Hey! it is cooool!! did you all the stuff do in RUST? amazing!!
@knaxel
@knaxel 2 года назад
im pretty sure bevys basically using singletons too tho
@pavelperina7629
@pavelperina7629 2 года назад
I don't know why is Rust somewhat popular. I tried it briefly and I feel like it's easy to get started, and it turns into an absolute nightmare once you start using threads. Sometimes it's quite easy, sometimes it's barely possible. For example if you want process image by tiles or vertical scanline and it's in a single buffer. Or if you depend on some C library and you are not using Linux where libraries and headers are found in only few locations (/usr, /usr/local, ~/.local/, ...)
@shinobuoshino5066
@shinobuoshino5066 Год назад
Because it is a language made to attract soydevs while at the same time removing them from communities like C and C++. Rust is literally best thing that has ever happened in my life, now I can peacefully work on my projects without idiots bothering me, because what I'm doing isn't a shiny new thing and so they go be somewhere else.
@entelin
@entelin 2 года назад
2:30 is almost exactly how my console window works in my game lol. The only difference is there are a few singletons that drive the core stuff. It's not great, but your project is larger than mine.
@aloufin
@aloufin 2 года назад
4:49 shows screen flickering on your secondary monitor, consider a high quality replacement to reduce eye fatigue
@DaReff
@DaReff 2 года назад
Not gonna lie, in my current game im working on. My main script has over 500 lines of code and it handles all the racing systems and leaderboards. Thought it was really cool having a big boy script. Turns out thats really bad and is called spaghetti. I must now rewrite the game to have lazzanya (YEAH, IDK HOW TO SPELL IT AND IM NOT LOOKING IT UP)
@natanaelrabello
@natanaelrabello 2 года назад
Really good video.. again 👏
@921Ether
@921Ether 2 года назад
technically you only remade it twice. the first time you actually made the game
@bobmcbob4399
@bobmcbob4399 2 года назад
"off by one" error
@phtz
@phtz 2 года назад
Totally get the migration to an ECS, a bit confused about moving to a fledging game-engine with an integrated ECS over a standalone, but still.. makes sense.
@jakobhellermann6974
@jakobhellermann6974 2 года назад
The nice thing about bevy is that the lines between application code and engine code are very blurred. By default, you basically only get the ECS. Want to have rendering? add a RenderPlugin. Want audio? Add the AudioPlugin. Want a bunch of common engine stuff? Just add the DefaultPlugins.
@Tantandev
@Tantandev 2 года назад
I was actually first thinking about just integrating the ecs part of bevy into my own engine code. But as I was researching and exploring I realized I could make use of a lot of the bevy crates. Take the window code for example. It would make sense to have access to all of that through the Bevy eco system, instead of writing my own bevy plugin for that, bevy already has a plugin for that. The engine code is so nicely abstracted.
@BlockWorks
@BlockWorks 2 года назад
i wish you the best at making your game
@RugbugRedfern
@RugbugRedfern 2 года назад
well now I want to drop unity for bevy this looks great
@nsrosenqvist
@nsrosenqvist 2 года назад
You should check Veloren if you haven't already, an open source CW-like, made in Rust
@CJBurkey
@CJBurkey 2 года назад
You switched to Bevy too!!
@PandaNuker
@PandaNuker 2 года назад
awesome video!
@clemdemort9613
@clemdemort9613 2 года назад
I too am making a voxel engine from scratch, although I'm not using polygons for the rendering.
@Tantandev
@Tantandev 2 года назад
That sounds super interesting! Might be a future interest exploring more rendering technuiques
@clemdemort9613
@clemdemort9613 2 года назад
@@Tantandev I'm using raycasting (or raytracing idk the difference) to render my voxels, still a little buggy but I'm getting there, I really like this series and seeing the progression with your engine keep at it! :D
@pablo17667140
@pablo17667140 2 года назад
i will wait for a more mature and stable version of bevy, but there a lot of potencial here
@Ian-sm9uv
@Ian-sm9uv 2 года назад
Bevy, Bevy, Bevy!
@crusaderanimation6967
@crusaderanimation6967 2 года назад
I know this pain bro, last summer i made game for olc CodeJam and now i'm re-writing it like second time.
@pro_gemer
@pro_gemer 2 года назад
"We are not trying to make spaghetti, we are trying to make lasanja" - Tantan 2021
@Tantandev
@Tantandev 2 года назад
Haha Lasanja
@chrismueller6974
@chrismueller6974 2 года назад
Never forget @Tantan. We are calling each approach a remade. Professionals just call it: It's the next iteration :D
@zhongxina728
@zhongxina728 2 года назад
This guy is just making Veloren from scratch.
@nyxkrage
@nyxkrage 2 года назад
Let’s go awesome vid
@hicoop
@hicoop Год назад
I had to refactor an old project to fit a new one I'm making and oh god managing project structure has to be the most tedious thing of all time
@gooseban7452
@gooseban7452 2 года назад
Is this still the best game for such a project? Would a minecraft game with the pixel uvs like in minecraft be the same choice?
@gabrielvilchesalves6406
@gabrielvilchesalves6406 2 года назад
Have you been able to reuse part of the code between rewrites or just the knowledge within your brain? // this was asked before 3 min in the video. At 9 min I got my answer. :) Keep it up! It's great to hear your experiences! Also, did you have any experience with godot? Thank you for the reports from the front!
@scoringdigitsson.5194
@scoringdigitsson.5194 2 года назад
Nice one!
@ElectricKitty
@ElectricKitty 9 месяцев назад
Dropping unity was a blessing in disguise huh
@st.altair4936
@st.altair4936 8 месяцев назад
Open source is the way
@Jkauppa
@Jkauppa 2 года назад
try 3d directionally weighted breadth first search in the voxel space, all pixels in once on the wave, with shadow marking, visible and shadow voxels, not rays or not raster
@Jkauppa
@Jkauppa 2 года назад
kinda raster but not
@angelite2555
@angelite2555 2 года назад
Boom! A bevy bevy bevy.
@f24816
@f24816 2 года назад
I'm curious if he knows that Veloren exists.
@FrozenInIce
@FrozenInIce 6 месяцев назад
it happens with unit cause you need to call every script individualy every time you make a new script that needs to interact with another so it has repeatitive actions that messes with where real code begins and where calling finishes I tried to do a simple tps with aiming and ı needed to can 7 diffrent scripts just to chance state so in unity it wastes time so ı tried godot now ı have tpa character simple enemy and saving system in a week it took me to understand that tps in unity but godots coding language is stream lined so you can just say if ray hits activate hurt function in stead of creating 5 instances to get that working.
@travist1169
@travist1169 2 года назад
This is a lesson in proper planning, if anything.
@DanielKierkegaardAndersen
@DanielKierkegaardAndersen 2 года назад
Amazing showcase - Bevy looks amazing, that said, have you tried looking into Unity's ECS?, And if so why did you end up going with Bevy? Was it the language, or something entirely else? :3 Additionally what was some of your hardships with using Bevy, and what did you really enjoy? :)
@HickoryDickory86
@HickoryDickory86 2 года назад
Well, he wanted to use Rust, and Bevy is a Rust engine. Unity is not.
@Ddos2212
@Ddos2212 Год назад
Do you make your own music for the videos?
@dragoons_net
@dragoons_net 9 месяцев назад
You are definitely the Brackeys of Bevy !
@st.altair4936
@st.altair4936 8 месяцев назад
Brackeys seems like he might become the Brackeys of Godot himself based on his Twitter lol
@dragoons_net
@dragoons_net 8 месяцев назад
@@st.altair4936Yep: right on!
@JamesMowery
@JamesMowery 2 года назад
I'm new to game dev and have been doing research on different engines and such. I just wanted to make an observation and follow up with a question. Unity is apparently based on the ECS model. You said your code turned into spaghetti with Unity, so you left to go to Rust. Then you said your code turned into spaghetti with Rust. Now you've moved to Bevy, which uses the ECS model like Unity does. Just from observing, it seems like it has gone full 360. So some questions: Does Rust offer a benefit over Unity in terms of code organization (or as you put it, making lasagna)? If you had organized your code in a different/more organized way with Unity initially, would you have still moved to Rust anyways? Is it honestly more you just wanted to use Rust from the start, and that's why you're now using a Rust development stack over Unity? Just curious if it's a Unity problem to be on the lookout for, or a general code organizational issue, or if Rust is genuinely better suited for game development. Thanks!
@EdWard-cv5gc
@EdWard-cv5gc 2 года назад
Hey, I will just try to answer one of your questions, maybe Tantan can answer you later. I believe he left unity for x reasons, however I do not think the spaghetti was a major one, or maybe it was(?). If you are organized, you will ended up being organized in whatever language/framework/engine you choose. It comes down to time and experience, and how you like to structure your projects, so I guess that’s a personal thing
@techpriest4787
@techpriest4787 2 года назад
I am not sure whether Unity fully supports ECS already either. And it's still C# so with GC
@MarkWilds87
@MarkWilds87 2 года назад
yeah, missed the videos. need one weekly.
@arthurararuna
@arthurararuna Год назад
Great video! By the way, has anyone already told you that "tantan" in Brazilian Portuguese (northeastern states, for the most part) is the equivalent slang for "cuckoo" in English? 😁
@aurorapaisley7453
@aurorapaisley7453 5 месяцев назад
It's amazing how the new simplified API made this video look dated. It has come a long way and an editor is on the way
@basicallybrand
@basicallybrand 2 года назад
there is already a voxel game called veloren made in rust wgpu-rs
@jabalsad
@jabalsad 2 года назад
Are you open sourcing the voxel + bevy engine you're writing?
@agroxk
@agroxk 2 года назад
Wow, it's inspiring. And I see Rust pretty good! BTW, what VS code Color theme do you use?
@Tantandev
@Tantandev 2 года назад
Theme is called: one monokai. I'm surprised at how many people ask about the theme, I really like it :)
@audinue
@audinue 2 года назад
When there is no finish line we bound to chase our tail again and again.
@uthsobchakraborty1871
@uthsobchakraborty1871 2 года назад
its almost like airshiper
@dinossauroproductions6271
@dinossauroproductions6271 2 года назад
did you use opengl as a rendering library?
@raminote5726
@raminote5726 2 года назад
So every game tick, the game goes through EVERY component of EVERY entity ?!!!!
@animanaut
@animanaut 2 года назад
It might sound inefficient, but it boils down to reduce cache misses. If you have very small components and you process lots of the same component type at the same time you reduce cache misses. That is the essence of every data driven architectures like ecs. In most ecs systems there isn‘t even a entity class, it is merely an id. So the systems don’t even care about entities, it is all about components. A sound system only iterates over sound components, a physic system only over collisionvolume components, … . No entities here.
@qm3ster
@qm3ster Год назад
We need a ~~Disney Princess that writes a~~ Deterministic Event-Sourced Minecraft with Time-Travel (-based debugging & netcode).
@AbhinavKulshreshtha
@AbhinavKulshreshtha 2 года назад
I request a gamedev tutorial, in bevy.
@FlafyDev
@FlafyDev 2 года назад
kinda hate the chunk loading animation but cool video!
@linksword7110
@linksword7110 2 года назад
Holy C.
@hermannpaschulke1583
@hermannpaschulke1583 2 года назад
The based programming language
@oh-facts
@oh-facts 2 года назад
boom a bevy bevy bevy
@RobertGardnerEngineer
@RobertGardnerEngineer 2 года назад
I adore bevy
@sinayeganeh9033
@sinayeganeh9033 2 года назад
I like code too :D but with javascript :)
@the-pink-hacker
@the-pink-hacker Год назад
I was fed up with unity and I think I might have found a game engine to try.
@j-kevinampong1379
@j-kevinampong1379 2 года назад
I don't have any PC or laptop can you add android support so I can use this engine in my android phone that would be cool.
@jamesnewman9547
@jamesnewman9547 2 года назад
I made the exact same decision after searching trying to research which ecs to use. Bevy seems nice, really looking forward to vids :D
@karelhrkal8753
@karelhrkal8753 2 года назад
Still kind of new to rust, so I have a question: does the "query" parameter at 6:00 need to be mutable? You are not assigning a new value to it, but you are modifying the entities it has references to. Hm....
@Tantandev
@Tantandev 2 года назад
you know what, that's something I've never bothered to investigate myself because I TO find it odd. I believe I found the answer: The query we receive is owned by our function, it's not a reference to a query, we are passed ownership to a query. We own the query but it's not mutable, unless we specify mut before. (why does the query need to be mutable, when we are mutating data not owned by the query, but received through the query?) BECAUSE! the query.iter_mut() is defined as this: pub fn iter_mut( *&mut self* ) -> QueryIter { iter_mut function only works if the query we are using is mutable. Now the reason why they did that with the api... is another question in itself I don't have time to investigate :P
@mek101whatif7
@mek101whatif7 9 месяцев назад
​@@TantandevDoes the non-mut variant enable parallelism?
@hbarudi
@hbarudi Год назад
Rust and Bevy vs C++ and Vulkan which is better?
@publicalias8172
@publicalias8172 2 года назад
Don't singletons usually solve spagehtti rather create it?
@RamsLiff
@RamsLiff Год назад
Later : I would like some speed, so I decide to write my game again from Scratch in C
@theninjascientist689
@theninjascientist689 9 месяцев назад
Rust is for all intents and purposes, as fast as C
@nathanrey
@nathanrey Год назад
The main thing holding me back from creating right now is that im just empty of ideas.
@Flackon
@Flackon 2 года назад
Serious question though why not use a singleton? What does that have to do with spaghetti?
@digiross7199
@digiross7199 Год назад
Godot v4 for the win! Using the alpha and it's amazing.
@DaddySergeant
@DaddySergeant 2 года назад
Unreal Engine is actually good for managing code when things turn complex
@shinobuoshino5066
@shinobuoshino5066 Год назад
But it uses old language that's not shiny new thing therefore bad albeit?
@alkeryn1700
@alkeryn1700 Год назад
dude we got the same keyboard and light it the same way wtf haha
Далее
Making my Voxel Engine faster
16:38
Просмотров 45 тыс.
Game Engine Of The Future
9:12
Просмотров 136 тыс.
Rust multi-threading code review
12:13
Просмотров 195 тыс.
What are Voxels and why are they so cool?
8:08
Просмотров 827 тыс.
ChatGPT makes Voxel Engine with Rust
12:20
Просмотров 91 тыс.
Voxel Game development - Creatures and Spells
12:01
Просмотров 36 тыс.
Switching Game Engines... Twice? - Devlog #7
10:55
Просмотров 80 тыс.
Pushing the rendering limits - Rust Voxel Engine
8:33
Voxel Game Development Is Hard
12:24
Просмотров 93 тыс.
I Remade my Voxel Engine from Scratch...
10:32
Просмотров 9 тыс.
5 RUST DEVS Make a GAME Without COMMUNICATING!
15:54
Просмотров 21 тыс.
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
Просмотров 97 тыс.
Дорогие компы БЕСПОЛЕЗНЫ?
1:00
Просмотров 738 тыс.