Very interesting. The frame rate issue is very important. Learned a lot.
@elm4nuff3 ай бұрын
Amazing tutorial
@mustard81489 ай бұрын
One of the only people who actually explain what theyre doing instead of just... doing it
@SheepHunterPwn Жыл бұрын
Great series! Since the development of these series takes some time, is there any chance you might put out a git repository containing good to know aspects of Monogame development? Looking forward to the next episode!
@SharpTiger14 Жыл бұрын
Hey man keep up with these tutorials! Very helpful stuff!
@roostermaind64132 жыл бұрын
Part 4 would be nice. I hoe you get around to animations
@potatoradio342 жыл бұрын
This is super helpful to a newbie like me. Thanks so much
@damdal18372 жыл бұрын
Is there any particular advantages/disadvantages of this method compared to setting the render target to the desired game resolution (ie very low for a pixel art game) then using the destination rectangle parameter when you are drawing to the screen where the rectangle is just the size of the screen?
@raarky2 жыл бұрын
Just what I’ve been looking for! Thank you
@scriptbrix2 жыл бұрын
It's been 3 months, will there ever be 4th next part of this series?
@brentstechtutorials15282 жыл бұрын
Yes. I'm not sure when I'll have the time but I plan for 1 or 2 more videos in this series.
@S_Tadz2 жыл бұрын
There was a 3 years span between tutorial #2 and #3, so I wouldn't wait on this guy for you to open the documentation, or you may have to wait a while before having something playable! Good stuff, tho, very appreciated!
@problemchild9592 жыл бұрын
just a little history lesson for ya: Early computers had Cathode Ray Tubes (CRTs) which "draw" the image with a cathode ray from the upper left corner to the lower right. To ease the interface between the graphics card memory and the CRT the memory was read from the beginning and the image was drawn from the top left (with the lowest memory address) to the lower right (with the highest memory address). this is why 0,0 is top left. :)
@mrlinushermansson2 жыл бұрын
I really like the tutorials, can you answer this? In a concise way, why do we want to use render targeting? If we do not use it what problems will we run into down the road? I’m not understanding 100% why this works and what problem we are solving. Thanks so much.
@brentstechtutorials15282 жыл бұрын
Sorry for the late response I'm very busy. Render targeting makes it so the graphics are easily scalable. You can code as if the game will always run a certain resolution and not worry about the size of the window or monitor. Without it you'll have to manually tell every little thing in the game to scale according to the size of the window. Without it coding is far far more tedious and you're more prone to making a coding error.
@GreenOrangeStudios2 жыл бұрын
Thank you! Very helpful
@hiimpaco97432 жыл бұрын
Great Tutorial !! Very understandable flow. KEEP IT UP
@im_Hide2 жыл бұрын
thanks so much Brent, it was insanely tedious trying to find criteria about the render targeting. I looked for almost 30 minutes trying to find anything, now to understand point sampling
@pon12 жыл бұрын
To add transparency you can also just make the background Magenta (red 255, green 0, blue 255), you can just double click the file in Visual Studio and it should open a image editor.
@pon12 жыл бұрын
If the pipeline tool doesn't open when double clicking, right click and use Open With... then in the list there should be mcgb-editor-wpf, he directed you to find it yourself but it should be in the list.
@brentstechtutorials15282 жыл бұрын
Sorry for the late response. I'm sure you've fixed this by now but the pipleline tool should be under C:\Program Files (x86)\MSBuild\MonoGame\v3.0\Tools
@brentstechtutorials15282 жыл бұрын
Just a note on reversing the Y on the arrow keys/DPad: I just realized the reason I wrote down that this was important is because vertical movement with the thumbstick is reversed. The way I coded this in the video is indeed correct. Second note: No, HashSets are not applicable to what I'm doing with the key/button mapping. Feel free to make any other suggestions for improvement though.
@RiccardoBocci2 жыл бұрын
which color scheme are you using?
@brentstechtutorials15282 жыл бұрын
Sorry, don't recall. I set it up something like 5 years ago.
@Quahu2 жыл бұрын
Couple of things I'd like to point out: - I think it makes little sense to check both keyboard and controller input at the same time for the same operations, if the user has pressed a button on the keyboard we don't need to check the for the same thing on the controller. - I believe you might've done the inverted vertical movement just because this is the way it's done in some other game engines (Unity)? It's not good that you didn't know *why* you inverted it, the viewer might do it the way you did it and then you both end up with code that you don't know the reasoning for lol - You're copying all those strings over and over every frame just to store input information. Using flags (i.e. integer bits) would be infinitely more efficient and not error prone, but even if you were to do it the string way, there's no reason not to use a HashSet for this. - The way you use the elapsed game time is incorrect, you're using TimeSpan#Milliseconds instead of TimeSpan#TotalMilliseconds. The former is just the milliseconds part of the TimeSpan where as the latter is the actual *total* time elapsed represented in milliseconds. I don't mean to sound rude about this - I think the title saying "For Experienced Programmers" isn't accurate. You're essentially writing simple if statements and explaining them in-depth for the major part of the video, which I'd imagine everyone familiar with C# or programming in general could follow on their own. Besides the actual movement math the rest is all `if` statements checking for user input, for which the video feels way too lengthy. I think you should rebrand the series to "For Beginners", it might attract more people and I believe the content in its current form is very much suited for that audience.
@brentstechtutorials15282 жыл бұрын
I see... I haven't heard of a HashSet before, I'll look into it. This is for "experienced programmers" as in I won't explain the very basics of like what a string is for example. Someone who is new to programming in general could probably follow along but they'd be ultimately lost. Also this is a tad embarrassing but I can't recall why I used ElapsedGameTime.Milliseconds as it has been 4 years since I made the last part of this series. All this code is something I developed myself and all works perfectly fine in games I've made but I do acknowledge it could be improved. So I'll look into the things you've mentioned and make improvements for next time.
@thseaqueen29382 жыл бұрын
Thank you for making this
@davidholender68552 жыл бұрын
Hi Brent. Greetings from New Zealand. I Just watched these tutorials today and I have to say totally awesome job dude. I really hope you get the time to do more in the not too distant future (notifications turned on LOL).
@FireGmr32 жыл бұрын
Was super excited to see your content! All the other videos I saw were either super basic or were using horrific coding practices. I want you to continue as this has been the best series I have seen so far!
@GreenOrangeStudios2 жыл бұрын
Thank you for this. Anyway to donate or sponsor you to get more videos?
@brentstechtutorials15282 жыл бұрын
I mean I don't have a Patreon or anything. I'm currently refreshing myself on all my programing techniques using my unreleased games. More Videos will come eventually.
@OneMeanDragon2 жыл бұрын
where you hiding at dude lol
@brentstechtutorials15282 жыл бұрын
Oh, I'm still alive, just super busy.
@teamtomii2 жыл бұрын
Your Monogame videos are awesome and have taught me a lot! I hope you decide to continue this series someday!
@brentstechtutorials15282 жыл бұрын
Glad it helped. I definitely plan on doing a few more Monogame videos after my new album is done.
@michalskoula3 жыл бұрын
Thank you very much for this! Helpful.
@joachimsaindon36583 жыл бұрын
This was very helpful and easy to follow. Thanks!
@unegisteredhypercam89593 жыл бұрын
Hey! Will these tutorials ever return?
@brentstechtutorials15283 жыл бұрын
Yes, I plan on making at least a couple more. I'm just super busy with several big projects. Once one or two of them are done I'll get back into game development.
@unegisteredhypercam89593 жыл бұрын
@@brentstechtutorials1528 Thank you for the reply! I will look forward to these.
@Theo-iz5cj3 жыл бұрын
Great video Brent, thank you!
@kiyasuihito3 жыл бұрын
dang these videos are gold. It's a shame they ddin't get more attention.
@kiyasuihito3 жыл бұрын
This video was so helpful. I couldn't find a good explanation on using render targets for setting resolutions. I wish you had more tuts on monogame but I understand you gotta enjoy life so carry on ☺️
@Wouldntyouliketoknow24 жыл бұрын
Good first couple of episodes! Please consider continuing the series! :-)
@PyxelBlobsStudio5 жыл бұрын
Thank you very much for his two videos. I learned a lot while I have already released a video game on steam. Many things super interesting. I hope you will continue.
@PyxelBlobsStudio5 жыл бұрын
Hello ! I know it's been a while since you started the series. I met you because I'm looking for information on the render target is the HLSL shader. I have two shaders that work very well. But I can not use both at the same time. it's a black screen. I was told that the render target allow to fix is problematic. I would like you to help me about it. I think you have not seen a lot because all this is the basics of monogamous. Many people are looking for more push information like me right now. I think if you explain things to us more complex you would have more visibility.
@brentstechtutorials15285 жыл бұрын
I have no experience with shaders but I will look into it. I'll get back to making more of these tutorial videos eventually. Been busy with various other things.
@PyxelBlobsStudio5 жыл бұрын
@@brentstechtutorials1528 Great, if you want I could pass you a project with a dozen very basic shaders that I realize. (black and white color, contrast, negative, rainbow, rotate, gradient, light).
@brentstechtutorials15285 жыл бұрын
Sure, just leave a link to the code here.
@PyxelBlobsStudio5 жыл бұрын
@@brentstechtutorials1528 Do not you have Discord? It's easier, you can help me if I have problems and me with the shaders.
@PyxelBlobsStudio5 жыл бұрын
@@brentstechtutorials1528 I have a question, how do I draw a rendertarget, then just after another. The dexieme allows me to zoom on the map
@aravindjc70995 жыл бұрын
Thanks for this awesome video.
@DepressionAlgorithm5 жыл бұрын
Shame these videos didn't take off. There's a bit of a dearth of information out there on how to do more advanced things in Monogame. I've been mucking around with Rendertarget2D and ScissorRectangle for the better part of a week and I'm still a bit confused on some of the finer details.
@Akaadream5 жыл бұрын
Hey, i made an map editor inside my game, and using the same scaling system as you, i got an offset between the windows cursor and in-game cursor. Do you know where is the issues ?
@brentstechtutorials15285 жыл бұрын
It's hard to know without seeing the code myself. Is there still an offset when using the code but having the window be the same size as the target?
@Akaadream5 жыл бұрын
@@brentstechtutorials1528 My cursor position using the size of the window without take care of the scaling. So i have to change my cursor position with taking consideration of the scaling ratio. But i don't know how to calculate this
@FierceBananaGaming2 жыл бұрын
@@Akaadream Hi did you happen to figure this out?
@SomethingRandomChannel5 жыл бұрын
Hi Mate, This is actually awesome and super helpful to me. I know it's been a few months but hopefully this message gives you abit of motivation to put out another video! I'm using this method now, thanks!
@brentstechtutorials15285 жыл бұрын
I wasn't sure how useful these videos were to people since they didn't seem to get many views, or at least at the time I posted them they didn't. But I'll definitely have to continue this series soon.
@SomethingRandomChannel5 жыл бұрын
@@brentstechtutorials1528 I guess it's just really helpful to a very specific audience so I guess over time it would build up more and more views. Your angle on this is spot on, it can get frustrating to wade through all the basic "learn to program C#" stuff when you are already familiar with the language. Your videos go straight the looking at the problem we want to solve.