2D pixel Games WITHOUT UNITY

I asked before but didn’t get an answer. I’m started to switch from building small games with java to C#. Where do I start learning how to build the game loops, sprites, audio, etc? Literally EVERY tutorial on YouTube or StackOverflow is just Unity tutorials which I am not interested in. submitted by /u/Foofalo [link] […]

Can I create an indexing operator as an extension method?

I want to find a subelement of an XML element, and do something if it exists and something else if it doesn’t. So, I could do something like this: XElement subElement = rootElement.Elements(“subElementName”).FirstOrDefault(); if (subElement == null) DoSomethingAboutTheNull(); else DoSomethingWithTheElement(); But that first line is clumsy. I think it would be much easier to treat […]

Can I create an indexing operator as an extension method?

I want to find a subelement of an XML element, and do something if it exists and something else if it doesn’t. So, I could do something like this: XElement subElement = rootElement.Elements(“subElementName”).FirstOrDefault(); if (subElement == null) DoSomethingAboutTheNull(); else DoSomethingWithTheElement(); But that first line is clumsy. I think it would be much easier to treat […]

WPF Resize and Move Images

I’ve created a text editor in wpf (similar to the one that comes with Windows by default). The text is edited in a RichTextBox. I can import images in the editor that get inserted in the RichTextBox, like this: ​ var uri = new Uri(file, UriKind.Relative); var bmpImg = new BitmapImage(uri); var img = new […]