As promised here is a simple (very-simple) demo for the game api that will come with PPL. It doesn't do much but gives an idea how the programming with the game api is going to be like.
Regards,
Kornalius
- Code:
func mainproc(hWnd$, Msg$, wParam$, lParam$)
case(Msg$)
WM_MOUSEMOVE:
movesprite(i$, LOWORD(lParam$), HIWORD(lParam$));
WM_KEYDOWN:
PostMessage(hWnd$, WM_CLOSE, 0, 0);
end;
return(true);
end;
proc main
h$=newform({GAPI}, {GAPIClass}, &mainproc;);
g_init(h$, NULL, true);
b$ = loadsprite({background.bmp}, -1);
i$ = loadsprite({image.bmp}, RGB(255,0,255));
mainloop;
g_shut(h$);
end;
Regards,
Kornalius