I'm not even a gamedev but I find it relaxing to listen to coding videos, idk why.
@andreyprotsenko98553 жыл бұрын
There's so much more than coding in this place:) That's why everyone can enjoy his vids. This is a true software engineering, man..
@alexandermylnikov77743 жыл бұрын
you explain your ideas so well that i was able to just jump in a few episodes ago and i pretty much understand your entire architecture (apart from all the rendering since im assuming that was a lot earlier)
@kye29203 жыл бұрын
These are such good videos! They've given me so much inspiration
@yerngames3 жыл бұрын
Love your series, keep going
@doctorwin642 жыл бұрын
Teacher Cherno, a huge thanks!
@Sebanisu3 жыл бұрын
You could use a variadic template function to apply the copy function to all the different component types. In one function call. Not sure on best way to store all the template arguments for reuse in multiple functions. I think you could use an empty struct to hold the types and use template type deduction to extract the template arguments from the struct.
@AlexDanut3 жыл бұрын
9:31, you asked... so: I think it makes more sense to have an active scene that can be switched out for an editor scene or runtime scene, just because it's more general and could easily allow for more scenarios such as having a simulator scene like Unity; you just make a variant of the runtime scene which allows for some extra features you want and maybe extend scene to allow you to specify a display mode such as "in a frame" mode which lets you view and interact with say an iPhone-looking window which you swipe up and down in to control, or maybe have a UI editor scene or whatever. The point is I think it would make more sense to have it so that a scene is a scene is a scene is a scene sort of thing, and not like oh that's the editor, that's the runtime viewer, that other thing is something else, etc.
3 жыл бұрын
Love your videos! A great inspiration for my own game engine project. Did you consider serializing the scene to a file and restoring from that when stopping the runtime? That does have some overhead, but then you wouldn’t have to have big scenes twice in memory. Both options have pros and cons.
@real1cytv3 жыл бұрын
EnTT actually has snapshot capabilities. The Example shows it working with cereal, but it also says, that it is possible to use your own serializer. Wouldn't that be a lot better to use?
@sam_is_people11702 жыл бұрын
thanks!
@autodidact71273 жыл бұрын
luv u cherno
@piotrt.36523 жыл бұрын
Is having a custom function to copy scene really needed? From what I understand scene serialization/deserialization is already here because you can save/load scenes into the file. So can't you just after hitting play save scene -> copy its file into some temp file or virtual file whatever (maybe even skip file copying part just keep serialized scene data bytes in memory) -> load scene from this temp file and run the engine -> after hitting stop delete this temp file? I guess having this copy scene method may be useful with some other features in the future.
@zxuiji3 жыл бұрын
Sounds like something I'm already re-coding for templating purposes, seems like I'm doing the UID prep by accident
@plabanmondal31113 жыл бұрын
How do we contribute to open source projects like Godot? How much of Cpp, Opengl we need to learn so we can contribute something to that project? I really want to be a part of an open source project.
@GoldenBear013 жыл бұрын
What keyboard are you using that doesn't have a '+' symbol? Just curious...
@SirChronoblaze3 жыл бұрын
@@GoldenBear01 ? how is that related
@Destroyer199419953 жыл бұрын
@@SirChronoblaze Is math related to science is the real question here tho
@rorymax3 жыл бұрын
@@Destroyer19941995 ???
@Kumquat572 жыл бұрын
@@SirChronoblaze its because they* typed cpp not c++
@Sebanisu3 жыл бұрын
I kind of was thinking if the entities were stored differently we could use algorithms like std::transform.
@SelmirAljic3 жыл бұрын
Worst decision ever made by Cherno was naming the game engine series hazel and patreon hazel both hazel xD
@yigithanion Жыл бұрын
I just save the active scene and deserialize it to a new scene to run.
@DanielWayota3 жыл бұрын
Maybe I'm missing something but, I think using the serialization code would be better for cloning the editor scene. It would be more readable than the templated code XD
@Jkauppa3 жыл бұрын
foreground scene
@Jkauppa3 жыл бұрын
you are memorializing entity states, load saved game, save game state
@Jkauppa3 жыл бұрын
entt should have state clone, not full clone, retaining internal references
@Jkauppa3 жыл бұрын
or just full copy, clone
@Jkauppa3 жыл бұрын
entt serialization
@i_sirojiddinov3 жыл бұрын
Will we also create 3d game engine (or will we change to 3D??)
@Aluminum00133 жыл бұрын
The game engine series (for now) is staying 2D
@andreypfau3 жыл бұрын
49:08 - ага спалился, русский значит
@moranyt82992 жыл бұрын
я если честно сам афигел что он начал писать на русском
@local.interloper3 жыл бұрын
hi
@codingwithk39253 жыл бұрын
std::cout
@zohichnazirro86403 жыл бұрын
сизе)
@mandev1863 жыл бұрын
sir also add a nice thing (Procedurally Lod Generation) Seamless.
@AlexFord-gp7by3 жыл бұрын
Does 2D need LODs?
@Aluminum00133 жыл бұрын
LOD doesn’t really work here.
@mandev1863 жыл бұрын
I am taking about 3D. You guys are awesome
@mandev1863 жыл бұрын
@@Aluminum0013 you are awesome. I want to learn something only he can teach me because he is very genius
@fudgeracoon25293 жыл бұрын
First
@zxuiji3 жыл бұрын
Heads up all, vscode crashes your computer at leasure, it installed an update while I was programming with this vid running in the background and the whole computer froze up, had a section of the vid repeating itself so I had to force shut down the pc and reboot, I learned of the update after I reopened vscode, that was when I put 2 & 2 together, no editor should update itself during usage, worse yet this was on linux where updates should be done in the package manager only, I immediately proceeded to uninstall that s**t because, also vscode got more in my way than helped, I tried it for a couple days before this but geany was by and far better, I'll try codeblocks for a while now that seems to be some portable version of it but never again will I allow vscode on my computer, nor will I ever work for a company that thinks that s**t is worthwhile.