Game Development Reference
In-Depth Information
Figure 4.7
Refactor menu for creating a function.
private void UpdateAnimation(float timeSinceLastFrame)
{
throw new NotImplementedException();
}
All of this was created automatically without any manual typing. The function
has an exception saying no code has been written yet. Calling this function in a
program will cause the exception to be thrown. After writing code for the func-
tion, that exception can simply be deleted.
Separating Chunks of Code
It's quite common in large programming projects for one area to get bloated. An
update loop for a common object such as the player may become hundreds of
 
Search WWH ::




Custom Search