uni programming Flashcards
Game engine basics, especially Unity game engine
Game loops
Run, Jump, Collect star
Data structures and types
Primitive Data Structures:
Integer
long
Float
double
Character
string
Boolean
Non-Primitive Data Structures:
Arrays (Static size, same data type)
Control flow
If
If else
If else else
Loops
For loop
Foreach loop
While loop
Object-oriented programming (OOP)
object-oriented programming is about creating objects that contain both data and methods.
Class
Object
2D physic
Animations
Handling user input
class Program
{
static void Main(string[] args)
{
// Type your username and press enter
Console.WriteLine(“Enter username:”);
// Create a string variable and get user input from the keyboard and store it in the variable string userName = Console.ReadLine(); // Print the value of the variable (userName), which will display the input value Console.WriteLine("Username is: " + userName); } } }
Finite-state machines
Algorythm
An algorithm is a set of steps or instructions designed to solve a specific problem. It’s like a recipe for solving problems using the data stored in data structures.