r/purebasic • u/thelastcubscout • Oct 11 '25
SpiderBasic Project: Kashi's Pixel Playground
Notes & link in comments
r/purebasic • u/thelastcubscout • Oct 11 '25
Notes & link in comments
r/purebasic • u/Beautiful-Tension-24 • Oct 15 '24
In the 1980's, I used BASIC for most tasks.
I'm going to try to get into programming again.
Looking forward to the challenge.
r/purebasic • u/DNSGeek • Mar 07 '25
I made a Vim syntax highlighting plugin for SpiderBasic and PureBasic. Please try it out and let me know what you think.
r/purebasic • u/Prestigious_Roof2589 • Jun 01 '26
When I saw that PureBasic’s demo version enforces an 800 loc limit by checking both raw file size and post-macro expansion line counts.
It made me intensely curious to see how the developers there are handling this limit and how secure it really is...turns out it's not that serious though.
My exploration is documented in this blog:
r/purebasic • u/readyuser4 • Sep 22 '24
I was able to make something fall but I dont know how to create a random x value (i can but it will do it every flip buffer) and how to make it not pause the rest of my code. Im new to purebasic and coding in general. anyone know how to fix my broken code?
below is my code... Btw some of the stuff like the score is a placeholder
InitMouse()
UsePNGImageDecoder()
InitKeyboard()
UseJPEGImageDecoder()
InitSprite()
If UseJPEGImageDecoder() = 0
MessageRequester("Error", "Error 2", 1)
EndIf
If InitSprite() = 0
MessageRequester("Error", "Error 1", 0)
EndIf
Enumeration
EndEnumeration
OpenWindow(0, #PB_Ignore, #PB_Ignore, #win, #win, "Game")
OpenWindowedScreen(WindowID(0), 0, 0, 400, 400)
SetFrameRate(30)
LoadSprite(#Player, "M.png")
px = 0
fy = 0
Score = 0
fVuD = Random(400, 1)
py = 360
fx = 0
LoadSprite(#Player, "M.png")
LoadSprite(#Food, "Food.png")
FlipBuffers()
ClearScreen(RGB(255, 255, 255))
Repeat
Event = WaitWindowEvent()
EndSelect
DisplaySprite(#Player, px, py)
ExamineKeyboard()
If KeyboardPushed(#PB_Key_Right)
px + 40
EndIf
ExamineKeyboard()
If KeyboardPushed(#PB_Key_Left)
px + -40
EndIf
FlipBuffers()
If px > 400
px = 0
EndIf
If px < 0
px = 360
EndIf
ClearScreen(RGB(255, 255, 255))
StartDrawing(WindowOutput(0))
DrawingMode(#PB_2DDrawing_NativeText)
DrawText(850, 400, "Score:" + Score, RGB(200, 200, 200))
StopDrawing()
For k = 30 To 1 Step -1
Delay(10)
DisplaySprite(#Food, #PB_Any, fy)
fy + 1
Next
If fy > 400
fy = 0
EndIf
If fvud
score + 1
EndIf
If Event = #PB_Event_CloseWindow
Quit = 1
EndIf
Until Quit = 1
End
r/purebasic • u/ricardo_sdl • Mar 05 '20
r/purebasic • u/bsilver • Jul 21 '23
There seem to be tons of choices for blogs about C#, Python, and of course Go and Rust. There's even PERL blogs! But I can't seem to find anything discussing Basic, let alone PureBasic. Are there any sites that share insights, hints, tutorials, etc. on Basic?
r/purebasic • u/sky5walk • Aug 22 '19
https://www.purebasic.com/documentation/Examples/WindowedScreen.pb.html
Example code above compiled with PB v571 LTS x64 on latest Windows 10 Pro x64 v1903 build 18362.295.
http://www.filedropper.com/pb-openwindowedscreen-ex
Unzip file and run exe from anywhere.
r/purebasic • u/ricardo_sdl • Oct 22 '19
r/purebasic • u/ricardo_sdl • Sep 01 '22
r/purebasic • u/ricardo_sdl • Oct 27 '21
r/purebasic • u/ricardo_sdl • Aug 31 '20
r/purebasic • u/ricardo_sdl • Aug 17 '20
r/purebasic • u/ricardo_sdl • May 05 '20
r/purebasic • u/sky5walk • Mar 01 '18
r/purebasic • u/ricardo_sdl • Nov 14 '19
r/purebasic • u/ricardo_sdl • Nov 30 '21
r/purebasic • u/ricardo_sdl • Dec 10 '19