I just ordered a book "Beginning Game Programming" by Michael Morrison. I really like the projects(http://www.informit.com/store/beginning-game-programming-9780672326592 -> Downloads -> "Examples developed for the book with examples for Borland C++ Compiler, Dev-CPP Compiler, and Visual C++ Compiler").
I still got a copy of the book and I think it's a good start learning games under Windows.
I am not sure what you want to do.
Normally the book is about games not about windows.
In the book he will create a Game Engine that will take care of the details of windows creation. Probably best to wait for the book to arrive.
Thanks for feedback. I am excited to read "Beginning Game Programming" by Michael Morrison. I hope it is as good as "C++ Primer Plus" by Stephen Prata.
I got the Skeleton window to show up. I created a console application instead of a desktop application. The window creates using the desktop application.
Thomas1965, were you able to complete the Blizzard Extreme Game Makeover?
1 2 3
Modify the Blizzard.ico and Blizzard_sm.ico to a completely different theme, such as a fireball.
Add a POINT global variable to the program that is used to “remember” the position of the fireball; this position can initially be randomly calculated.
Each time through the GameCycle() function, alter the position of the fireball so that it appears to move in a particular direction over time.
I'm trying to make the fireball move only for a certain period of time @ 1 frame per second. So frames 10 through 20 should show a fireball moving. Instead, I am getting a blank white screen with no action.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
void GameCycle()
{
static POINT ptFireBall = { 10, 10 }; // set any starting point you want
HWND hWindow = g_pGame->GetWindow();
HDC hDC = GetDC(hWindow);
int count = 0;
if (count > 9 && count < 21)
{
DrawIcon(hDC, ptFireBall.x, ptFireBall.y, (HICON)(WORD)GetClassLong(hWindow, GCL_HICON));
// move position of fireball
ptFireBall.x += 2;
ptFireBall.y += 2;
}
count = count + 1;
ReleaseDC(hWindow, hDC);
}