Game programming

Moderators: None (Apply to moderate this forum)
Number of threads: 2047
Number of posts: 5331

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Displaying a dialog box before the game starts Posted by MoRBiD on 22 Jan 2002 at 5:12 AM
I want the player to be able to enter his name and i thoght the best way would be to display a dialog box right before the game starts that takes the player name. The problem is the order of the code:

initiate direct x
show window
enter message loop

this means that when the game is in the message loop dx has already taken over the system. How do i make it display the dialog box and then enter dx as soon as the name i recieved?
Report
Re: Displaying a dialog box before the game starts Posted by Illco on 22 Jan 2002 at 5:23 AM
Within DX there is support for GDI dialogs etc. Consult the docs, but I believe it is FlipToGDISurface() before you initate the DialogBox. In de SDK is an example of a dialog box within DX.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.