X= WindowEvent() : If X = #PB_Event_CloseWindow : End : EndIf THE "If" GETS EXECUTED WHEN USER CLICKS THE WINDOW CLOSE X ICON EMPTIES XEVENT QUEUE AND RETURNS 1 WHEN ESCAPE KEY IS PRESSEDĮSCAPE= 0 : ExamineKeyboard() : If KeyboardPushed(#PB_Key_Escape) : ESCAPE= 1 : EndIf LoadFont(4,"Arial",48,#PB_Font_Bold|#PB_Font_HighQuality) LoadFont(3,"Arial",36,#PB_Font_Bold|#PB_Font_HighQuality) LoadFont(2,"Arial",24,#PB_Font_Bold|#PB_Font_HighQuality) The source code below is available for your modifications and compilation using this free compiler if you want to experiment with making changes to the game.Ĭode: Select all ******************************** This was written as a demo program to help beginners learn game programming.
0 Comments
Leave a Reply. |