Main Page: Difference between revisions
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
For the purposes of this wiki, a Game will be assumed to be a simple program that runs an Update() method and a Draw() method in a continuous loop: | For the purposes of this wiki, a Game will be assumed to be a simple program that runs an Update() method and a Draw() method in a continuous loop: | ||
< | <syntaxhighlight lang="cs"> | ||
public void GameLoop() | |||
{ | { | ||
while (true) | while (true) | ||
| Line 12: | Line 13: | ||
Draw(); | Draw(); | ||
} | } | ||
}</ | }</syntaxhighlight> | ||
<!-- | <!-- | ||
Revision as of 13:58, 9 June 2024
Welcome to C# Gamedev Wiki!
This is a place to gather explanations and examples of systems that are used in game development. The goal is to provide explanations and samples that are code-first and are not dependent on a specific platform or engine (such as Godot, Unity, Unreal, etc.). Pages will contain text, diagrams, and code samples in order to help explain concepts.
For the purposes of this wiki, a Game will be assumed to be a simple program that runs an Update() method and a Draw() method in a continuous loop:
public void GameLoop()
{
while (true)
{
Update();
Draw();
}
}