Start implementing the window and the main menu
This commit is contained in:
parent
6cc9f0daf6
commit
3e01463af7
2 changed files with 57 additions and 0 deletions
26
pongr/pong.pb
Normal file
26
pongr/pong.pb
Normal file
|
@ -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
|
31
pongr/pongr.pbp
Normal file
31
pongr/pongr.pbp
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<project xmlns="http://www.purebasic.com/namespace" version="1.0" creator="PureBasic 4.51 (Linux - x64)">
|
||||||
|
<section name="config">
|
||||||
|
<options closefiles="1" openmode="0" name="Pongr"/>
|
||||||
|
<comment>
|
||||||
|
First project from Ruben and Aaron Mueller
|
||||||
|
</comment>
|
||||||
|
</section>
|
||||||
|
<section name="data">
|
||||||
|
<explorer view="../../../" pattern="0"/>
|
||||||
|
<log show="1"/>
|
||||||
|
<lastopen date="2011-01-13 00:47" user="aaron" host="deskFu"/>
|
||||||
|
</section>
|
||||||
|
<section name="files">
|
||||||
|
<file name="pong.pb">
|
||||||
|
<config load="0" scan="1" panel="1" warn="1" lastopen="1"/>
|
||||||
|
<fingerprint md5="1bbc75d1989874173042c5b54d72373c"/>
|
||||||
|
</file>
|
||||||
|
</section>
|
||||||
|
<section name="targets">
|
||||||
|
<target name="Default Target" enabled="1" default="1">
|
||||||
|
<inputfile value="pong.pb"/>
|
||||||
|
<outputfile value="build/pongr"/>
|
||||||
|
<executable value="build/pongr"/>
|
||||||
|
<options unicode="1" thread="1" xpskin="1" debug="1"/>
|
||||||
|
<compilecount enable="1" value="12"/>
|
||||||
|
<buildcount enable="1" value="3"/>
|
||||||
|
</target>
|
||||||
|
</section>
|
||||||
|
</project>
|
Reference in a new issue