
Main Page / Demo Programs
Demo Programs
The demo programs are tightly related to the book content (and are usually based on it), but connect and integrate content from different book chapters and demonstrate its meaningful application in concrete contexts. They are complete programs that are typically larger in size than the book's brief code examples.
Demo programs show, for instance, the use of real-time controls in a simple two-player action game such as Space Invaders, classes for bricks and a paddle for a BreakOut-style game, and the program structure of a basic Frogger-style game.
The programs provide entry points for readers who are motivated by concrete applications. The programs can serve as starting points for readers to modify and experiment with code and also as starting points for readers' own projects.
Note that the categories are here ordered roughly by sophistication or complexity. The demos in Classes, for example, are more advanced than in Functions, or in Variables and Parameters. There are also many overlaps between categories, of course. Some of the programs are provided in several versions, for instance, first without using classes, and then using classes (in Controls), or first without interaction, and then with (mouse) interaction (in Mouse Interaction).
Game demos are in the categories Classes, Controls and Tiling.
Intro, Day 1


Variables and Parameters








Casting

Conditionals and Decisions


While Loop



For Loop



Functions






Arrays and Arraylists








Vectors



Classes












Text and Fonts






Load and Save

Images

Time and Timefix










Animation

Movement


Collision Detection





Mouse Interaction



Controls







Libraries and Audio

Tiling





Recursion


AI












![Freya Holmér. Vectors & Dot Product • Math for Game Devs [Part 1]. Online video (3:16'27 h). YouTube, Nov 9, 2020. A three hour lecture on vectors; Freya Holmér speaks about vectors and uses them in math and Unity specifically, but the math is applicable anywhere. The whole series 'Math for Game Devs' is on YouTube, and can get quite advanced Vectors & Dot Product • Math for Game Devs [Part 1] on YouTube website screenshot](../links/youtube_com_freya_vectors.png)

|