
Learn to program with C# in Godot 4 and build your first game. Master fundamentals—data types, variables, loops, conditional statements, functions, and classes—and apply them to create games and applications.
Choose and download the Godot 4.x version with C# support from the official Godot website, verify the platform, unzip the zip, and prepare for an ID setup.
Install Visual Studio Community and set it as the external C# editor for Godot 4, enabling autocomplete and better coding support beyond the built-in editor.
Learn to print to the console in Godot 4 using C#, by attaching a script, using the ready block, and printing hello world with GD.Print.
Explore variables as designated identifiers that store data, print and update string values, and apply naming rules to avoid errors in C# within Godot 4.
Create and manipulate strings in C# for Godot 4 by assigning lowercase text to variables, applying capitalize, to upper, and to lower, and using string interpolation with ${name}.
Explore integers and floats, perform addition, subtraction, multiplication, division, and exponentiation with math.pow, and compute square roots with math.sqrt, using casts and constants.
Learn to use Gato arrays in Godot, creating and initializing arrays, shortening syntax with a using alias, and printing and indexing items with zero-based indices.
Add items to a list and insert them at a specific index, then remove items with remove or remove at, noting case sensitivity and list length.
Learn to organize lists in C# for Godot 4 by sorting strings and numbers, reversing orders, and using count to determine list length.
Explore foreach loops to iterate every item in a list, print each entry, and optionally convert to uppercase. Emphasize the dry principle, proper braces, and placing actions inside the loop.
Learn two c# for loop techniques: a classic for loop from 1 to 5 and a for each loop over a list, including indexing, printing, and squaring values with Mathf.
Explore equality and inequality checks in if statements, including case-insensitive comparisons and numeric ranges, with practical examples like age gates in a Godot 4 C# project.
Learn to use multiple conditions in C# with if statements, applying the and (&&) and or (||) operators, contains checks in lists, and boolean expressions for age-based ticket pricing.
Explore if, else if, and else conditionals in C# within Godot 4, learning execution order, single-branch behavior, and using lists and foreach to check items in stock.
Explore how to use dictionaries in Godot 4, with the Godot collections GC alias, to store any data type, nest dictionaries, and access entries by keys.
Learn to loop through dictionaries in Godot 4 using for each, access keys and values, and traverse nested entries to display monster data like name, health, and level.
Explore capturing keyboard input in Godot 4 with a ready and process block, create a line edit text field, read and print user input, and implement quit and name handling.
Learn how while loops work in C# for Godot 4, how they run while a condition is true, and how break and continue control flow to avoid infinite loops.
Learn to create and call functions in Godot 4 with C#, including public, void, overrides, parameters, and defaults; and use ready and process to handle input and print greetings.
Define and use a custom pet class in C# for Godot 4, including properties name, age, type, a rename method, and an initializer, highlighting public versus private access.
Discover how regular expressions identify patterns in text, extract prices with dollar signs and digits, and match emails or card types using compiled regex in Godot 4.
Learn to save and load text in Godot 4 using C#, opening files with FileAccess, writing and reading strings, and checking file existence.
Learn to save and load JSON files in Godot 4 by serializing a nested dictionary to a readable JSON string, writing with store string, and parsing back on load.
Build a blackjack game user interface in Godot 4 by creating a new scene, adding a texture rect background, hit and stand buttons, and dealer and player total labels.
Learn to set up a blackjack game in Godot 4 using C#, create card decks and hands with arrays, compute totals, and wire hit and stand controls.
Connect hit and stand buttons in Godot 4 using signals, either via the interface or code, to update the player total and trigger dealer draws in a blackjack workflow.
Learn to implement win loss conditions in a C# Godot project by building a check player function and a declare winner routine that disables buttons and determines the outcome.
Set up a pong-style UI in Godot 4, with a dark 2D scene and score labels, and create top and bottom walls with collision to bounce the ball.
Create a ball in a Godot 4 project using a character body 2D with a sprite and collision shape, and move it with velocity in physics process.
Implement left and right scoring areas in Godot 4 using area 2d and custom C# signals to update the score label and reset the ball after scoring.
Create a pong-style game in Godot 4 using C#. Implement a player paddle with collision shapes, area, and two-player controls; include ball bounce and speed increases on paddle hits.
Learn four-way directional movement in Godot 4 using either an animated sprite or animation player, with sprite sheet and pixel-art optimization, and implement walking and idle animations in C#.
Learn scene instancing in Godot 4 with C#, exporting a packed scene or loading it in code, then instantiate and add sprite 2D or label nodes to a main scene.
Are you interested in learning how to program games in Godot 4 using C#? This course is designed to provide a solid foundation for beginners who are new to programming and want to learn how to use C# in Godot 4. It is also an excellent resource for GDScript users looking to transition to C#.
The course will start with an introduction to programming concepts, including data types, variables, loops, conditional statements, and functions. From there, you will learn how to use C# in Godot 4 to create game objects, user interfaces, and manage game logic.
By the end of the course, you will have a strong foundation in C# programming and be able to create simple games in Godot 4.
Course Outline:
Introduction to programming concepts
Data types and variables
Control structures (loops and conditional statements)
Functions and methods
Introduction to Godot 4 scripting interface
Working with nodes and scenes
Creating game objects with C# in Godot 4
Implementing user interfaces
Managing game logic with C# and Godot 4
Creating a simple game project
Prerequisites:
No prior programming experience is required for this course, although some familiarity with Godot 4's interface and game development concepts would be beneficial. Students should have access to a computer with Godot 4 installed.