From 3e01463af7702b080914603ebca373dc10719f0c Mon Sep 17 00:00:00 2001 From: Aaron Mueller Date: Thu, 13 Jan 2011 00:48:00 +0100 Subject: [PATCH] Start implementing the window and the main menu --- pongr/pong.pb | 26 ++++++++++++++++++++++++++ pongr/pongr.pbp | 31 +++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 pongr/pong.pb create mode 100644 pongr/pongr.pbp diff --git a/pongr/pong.pb b/pongr/pong.pb new file mode 100644 index 0000000..3c34918 --- /dev/null +++ b/pongr/pong.pb @@ -0,0 +1,26 @@ +; Pongr +; Very simple game to get started with PureBasic and the game development. +; 2011 - Ruben Mueller, Aaron Mueller + +Procedure DrawMenuBackground(screen) + StartDrawing(WindowOutput(screen)) + Box(0, 0, 800, 600, RGB(0, 0, 0)) + StopDrawing() +EndProcedure + +; Start the main loop which will create the window, wait for events and draw things +; on the screen. To escape from this loop, press ESC or close the window. +screen = OpenWindow(#PB_Any, 0, 0, 800, 600, "Pongr - Build " + Str(#PB_Editor_BuildCount), #PB_Window_ScreenCentered) +If screen > 0 + DrawMenuBackground(screen) + Repeat + event = WaitWindowEvent() + Until event = #PB_Event_CloseWindow +EndIf + +; IDE Options = PureBasic 4.51 (Linux - x64) +; CursorPosition = 19 +; Folding = - +; EnableXP +; EnableCompileCount = 0 +; EnableBuildCount = 0 \ No newline at end of file diff --git a/pongr/pongr.pbp b/pongr/pongr.pbp new file mode 100644 index 0000000..275a427 --- /dev/null +++ b/pongr/pongr.pbp @@ -0,0 +1,31 @@ + + + +
+ + + First project from Ruben and Aaron Mueller + +
+
+ + + +
+
+ + + + +
+
+ + + + + + + + +
+