r/purebasic • • Oct 11 '25

SpiderBasic Project: Kashi's Pixel Playground

Thumbnail
gallery
5 Upvotes

Notes & link in comments


r/purebasic • • Oct 15 '24

40 years ago I used BASIC.

8 Upvotes

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 • • Jan 03 '24

PureBasic produces tight code!

Thumbnail zapusten.lo5.me
7 Upvotes

r/purebasic • • Mar 07 '25

PureBasic and SpiderBasic for Vim

6 Upvotes

I made a Vim syntax highlighting plugin for SpiderBasic and PureBasic. Please try it out and let me know what you think.

https://github.com/DNSGeek/vim-purebasic


r/purebasic • • Jun 01 '26

Pure Basic Compiler Exploration

7 Upvotes

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:

https://aliqyan.com/blogs/pb.html


r/purebasic • • Sep 22 '24

How do I make an item fall while something is moving?

2 Upvotes

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

Player

Food

EndEnumeration

win = 500

playPX = 40

foodPX = 20

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 • • Mar 05 '20

Roguelike game made using PureBasic - with source code

Thumbnail
ricardo-sdl.itch.io
5 Upvotes

r/purebasic • • Jul 20 '23

I made a Cheat Sheet

Thumbnail
cheatography.com
7 Upvotes

r/purebasic • • Jul 21 '23

Blogs on Basic?

5 Upvotes

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 • • Aug 22 '19

[PB v571 LTS x64] OpenWindowedScreen example exe

3 Upvotes

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 • • Oct 22 '19

Checkout my first PureBasic game - Source code available

Thumbnail
ricardo-sdl.itch.io
10 Upvotes

r/purebasic • • Sep 01 '22

My entry written in PureBasic for the "Jam for All BASIC Dialects" - with source code

Thumbnail
ricardo-sdl.itch.io
6 Upvotes

r/purebasic • • Oct 27 '21

New game written with PureBasic - One-Button TETRIS

Thumbnail
ricardo-sdl.itch.io
10 Upvotes

r/purebasic • • Aug 31 '20

Cowbduction - Game made with PureBasic

Thumbnail
ricardo-sdl.itch.io
4 Upvotes

r/purebasic • • Aug 17 '20

PureBasic Professional Edition V3.10 - Let's program like it is 2002!

Thumbnail
archive.org
6 Upvotes

r/purebasic • • May 13 '20

PureBasic Import for raylib

Thumbnail
github.com
3 Upvotes

r/purebasic • • May 05 '20

My entry written in PureBasic for the Code a game competition on SyntaxBomb

Thumbnail syntaxbomb.com
3 Upvotes

r/purebasic • • Mar 01 '18

[IDE-v562]Crash on repeated reverse search in edited file.

Post image
1 Upvotes

r/purebasic • • Mar 02 '19

Curve fitting non-continuous data

Post image
2 Upvotes

r/purebasic • • Jan 03 '24

Game with source code

Thumbnail
ricardo-sdl.itch.io
3 Upvotes

r/purebasic • • Nov 14 '19

GitHub - SicroAtGit/PureBasic-CodeArchiv-Rebirth: A collection of useful codes from the PureBasic forums and other sources

Thumbnail
github.com
5 Upvotes

r/purebasic • • Jun 17 '14

BlueBoy's Escape - Written in PB

Thumbnail
youtube.com
8 Upvotes

r/purebasic • • Nov 30 '21

GitHub - ricardosdl/FromToImage: Convert any file to an image and back

Thumbnail
github.com
5 Upvotes

r/purebasic • • Dec 10 '19

Checkout my second PureBasic Game - LateRun - source code available

Thumbnail
ricardo-sdl.itch.io
5 Upvotes

r/purebasic • • Jan 27 '17

[v56b1] Window size dependent on toolbars?

Post image
1 Upvotes