You might be familiar with how to loop over a list, but what about a list of lists? You may not even be sure how to create one. This post will cover very simply how to create, use, and loop over a list of lists.
How To Use Arrays – C#
What Is An Array Arrays are very common in game development and something I used frequently in my game Puzzledorf to store information. One example is that I store the position of every object in the puzzle below in an array, so they're useful, especially for creating an undo function. The best way to picture... Continue Reading →
What Are Logical Operators – C#
You might have seen if statements with some confusing symbols: &&, || or !. These are called the logical operators, and are used to create more complicated logic within an if statement. They are: && - the Logical AND operator || - the Locical OR operator ! - the Logical NOT operator I use them frequently in Puzzledorf to check when certain things are occurring. For... Continue Reading →
Line Saving Code Tips – C#
Reducing lines of code can make your work more readable, making it easier for you and for others to read. More lines means more mental gymnastics to decipher which part of code does what. I want to go over some tips and tricks that helpd me.