Advertisement
2002ASP Graphics/ Sound #7327

Visual C++, Window Creation, Line Drawing/Basic Win32 Game Programming, Looping Therory

The purpose of this is to show various Win32 Methods and some Theory. It creates a Win32 Extended class, it then Creates and Extended Window, it then starts to show that basics of Win32 Game Programming, that is an infinite loop. This shows a good theory of how to initialize variables in game programming. At first my approach was to initialize the variables in the loop and use a BOOL to say it was the first time in the loop, then on my third look at how the code was working I found the fastest way to set the first time variables, outside the loop, rather than having the computer check an if statement was true, this was the theory. This programme starts at a random position (the initializing theory), (in the loop) draws a line to a new random position, then sets the end of the line to the beginning of the new one (this is where the loop ends).

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine