Hello I'm new at PF and I'd like to understand more about this awesome program. I must admit that I am also fairly new at the C++ language (I've coded a few programs but nothing major). Here are my questions about the blit sample that I'm modifing to learn...
1. How do I get rid of the splash screen (I understand that the splash screen time of 0 is no longer available as the pocketfrog website suggests).
2. If I add buttondown even then I can capture the keys that are pressed. While compiling in VC++ 6.0 and testing for vkRight and vkLeft I can press them and the program won't end. If I also test for all the available keys (directional, A,B,C,Start, and Aux1-8) then no key will end the program. If I compile this same code to evc and run it on my a620BT then if I press the Action button the program will end. Also (strangely) if I press any diaganol direction (up+left or up+right...) the program ends. If I only use one direction the program won't end. I really don't understand this.
2a. Where in the Blit sample code (not modified) is the routine to close the program when a button is pressed?
3. How do most of you setup the game as far as menu vs. gameplay? Do you have the menu routine inside game.Run() or do you create your own i.e. ...
so that when menu runs the game automatically starts?
Please be patient with me I'm rather new at programing.
-amdzero
1. How do I get rid of the splash screen (I understand that the splash screen time of 0 is no longer available as the pocketfrog website suggests).
2. If I add buttondown even then I can capture the keys that are pressed. While compiling in VC++ 6.0 and testing for vkRight and vkLeft I can press them and the program won't end. If I also test for all the available keys (directional, A,B,C,Start, and Aux1-8) then no key will end the program. If I compile this same code to evc and run it on my a620BT then if I press the Action button the program will end. Also (strangely) if I press any diaganol direction (up+left or up+right...) the program ends. If I only use one direction the program won't end. I really don't understand this.
2a. Where in the Blit sample code (not modified) is the routine to close the program when a button is pressed?
3. How do most of you setup the game as far as menu vs. gameplay? Do you have the menu routine inside game.Run() or do you create your own i.e. ...
- Code:
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE, LPTSTR, int )
{
_Module.Init( 0, hInstance );
BlitSample game;
menu();
game.Run();
return 0;
}
so that when menu runs the game automatically starts?
Please be patient with me I'm rather new at programing.
-amdzero