ABSTRACT

This chapter is about getting past the simple details and going into the structure of code. This process is somewhat comparable to learning the grammar of the C# programming language. It covers the basics about the different types of logic statements and looping statements. Logic allows to pick different actions based on the result of a calculation. Looping statements can read and react to more than one data set. Statements are tokens organized to accomplish a task. Tokens can be keywords, or words reserved by C# for special purposes. Some tokens are used to separate statements, and others are used to assign values to variables. A keyword cannot be used for anything other than what it has been reserved for. Some keywords can be used only in a specific context. Building an entire game is a large undertaking, to say the least. Creating a core game play mechanic is something that should be prototyped in different forms.