Definitely adding this to the pile of side projects I wanna do in C#
This guy has also a lot of other small projects, where you can learn much. Just checkout his YouTube channel guys.
Wow… I have seen a lot of approaches to creating games in winforms.
This is a very ingenious solution and surprisingly smooth.
I do wonder about A) The processor on the machine in the Video and B) The scalability of this approach…
I had expected passing a handle from the window to OpenGL, or just creating an OpenGL window… when that didn’t happen I at least expected a canvas type approach where the rendering was done off screen and posted at the end… but this… was a very fun, interesting approach.
I guess for rendering a few pictureboxes, this approach is fine, but adding more content can easily overwhelm WinForms and make it lag. Also, the sprites do not show any alpha which is a problem of GDI+. I’d done it in either DirectX or OpenGL.
WinForms is definitely not the right place to create games (or anything really, but that’s just my personal view on it), but it’s a great way to learn the language. I wrote a level editor in WinForms way back and it was a mess, but it worked. And with level editor I mean tons of picture boxes, not by passing OpenGL or DirectX a handle.
What I found most interesting in this video was the usage of the timer. I’ve never thought about that and it seemed to work pretty well.
Made a mistake on the title and put the help flare instead of the tutorial one, sorry🤦. Not my tutorial FYI
Edit- thanks for the Silver award! my first everrrr yaay
This is absolutely amazing content but I gotta wonder its not in Unity or something. Its not really the right tool for the job.
C# devs
null reference exceptions