Abstract
This chapter covers the basic aspects of programming games. We will introduce the game loop, which consists of two main parts: updating the world and drawing the world. We will show how this concept is defined by game engines and how it is used to create a simple game application. The game application is used to introduce a number of basic C# programming concepts, such as instructions, methods, classes, namespaces, and compilation units. We show that instructions are grouped in methods, and methods, in turn, are grouped in classes. We will show you can include libraries in your program that contain code written by others. We also discuss the basic rules of program layout and how to use comments to clarify your code.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Springer-Verlag GmbH Germany, part of Springer Nature
About this chapter
Cite this chapter
van Toll, W., Egges, A., Fokker, J.D. (2019). Game Programming Basics. In: Learning C# by Programming Games. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-59252-6_3
Download citation
DOI: https://doi.org/10.1007/978-3-662-59252-6_3
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-662-59251-9
Online ISBN: 978-3-662-59252-6
eBook Packages: Computer ScienceComputer Science (R0)