Difference between revisions of "Beginner C++ Game Programming Tutorial 0"
From Chilipedia
Line 11: | Line 11: | ||
* Homework assignment | * Homework assignment | ||
− | <syntaxhighlight lang=" | + | <syntaxhighlight lang="cpp" line="1" > |
− | + | ||
− | + | void Game::Go() | |
− | + | { | |
− | + | #if NDEBUG | |
− | + | const float dt = timer.GetTimeSec(); | |
− | + | timer.StartWatch(); | |
− | + | #else | |
− | + | const float dt = 1.0f / 60.0f; | |
+ | #endif | ||
+ | |||
+ | UpdateModel( dt ); | ||
+ | gfx.BeginFrame(); | ||
+ | ComposeFrame(); | ||
+ | gfx.EndFrame(); | ||
+ | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 14:35, 22 June 2016
This tutorial introduces the Beginner C++ Game Programming Series and walks you through the setup required to follow along with Chili. It also explains who the series is intended for, the goals and outline of the series, and tips on how to succeed, but you can skip all that bullshit if you have crippling ADD.
Concepts Taught
- How to compile and run a solution in Visual Studio 2015 Community
Video Timestamp Index
- Who the series is for and what it will cover
- How to succeed and things to know/note
- Installation of Visual Studio 2015 Community and the Chili Framework
- Writing and compiling your first code
- Homework assignment
void Game::Go()
{
#if NDEBUG
const float dt = timer.GetTimeSec();
timer.StartWatch();
#else
const float dt = 1.0f / 60.0f;
#endif
UpdateModel( dt );
gfx.BeginFrame();
ComposeFrame();
gfx.EndFrame();
}
Homework
The homework for this lesson is to experiment with the PutPixel() function and deduce the meanings of the five function parameters.