PDA

View Full Version : G_INIT or InitGameAPIEx


pocket
01-15-2007, 05:51 PM
If to use G_INIT instead of InitGameAPIEx that
"if (KeysPressed $ [keys.vkA $])
PostMessage (hWnd $, WM_CLOSE, 0, 0);
end;"
Causes an error:
"Variable Keys $ has not been defined!"

And still a question:
How dynamically to load sprite (during game)
Not in procedure WinMain and when game has already started

kornalius
01-15-2007, 05:57 PM
Look at the GameAPI.ppl library file. You will notice that InitGameApiEx actually creates the keys$ variable. G_INIT is a direct low-level internal GameAPI function.

You can load sprites at anytime using LoadSprite().

pocket
01-15-2007, 06:04 PM
That is G_INIT and InitGameAPIEx it is necessary to use together?

zehlein
01-15-2007, 07:41 PM
As far as I know InitGameAPIEx calls G_Init. At least there is no reason to do it manually.

pocket
01-15-2007, 08:11 PM
zehlein
And how on yours to use a landscape mode?

moridh
01-16-2007, 08:35 AM
this might help about landscape mode:
http://www.arianesoft.ca/e107_plugins/forum/forum_viewtopic.php?2633