Sign in to follow this  

making a title page

This topic is 4836 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

ok i finaly got my first windows game (pong) up and running and im really excited (hey we all had to start some were) and now im trying to make it so that you cna choose your back ground and so i need it to text out which background do you want 1,2 or 3 but i cant seem to get it too work and the game wont pause right. basicly i want an intruductory page (kinda like the title page to a book almost every game has one anyway if any one knows a good way to do this let me know THX :)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Are you using the GDI for graphics, DirectDraw, or Direct3D?

If you're using DirectDraw, before you blt() or bltfast() the secondary surface to the primary surface, you need to use lpDDSSecondary->GetDC(hWnd, &hDC); (might not be the correct arguments - it's been a while) and then after using TextOut(), etc use lpDDSSecondary->ReleaseDC(&hDC);

Share this post


Link to post
Share on other sites
ok cool thx umm one more question is there some kind of other library i have to include (i have all the main ones) in order to play .wav sounds
#include <windows.h>
#include "Resource.h"
#include "GameEngine.h"
#include "Bitmap.h"
#include <windows.h> // include all the windows headers
#include <windowsx.h> // include useful macros
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <WINGDI.h>

Share this post


Link to post
Share on other sites

This topic is 4836 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this