Log In  
Follow
Jonson26

Cart #libpbm-1 | 2025-11-19 | Embed ▽ | License: CC4-BY-NC-SA
2

A PBM parser library

This library allows you to load PBM and PPM files, specifically ones with either the "P1" or the "P3" headers.
PBM on Wikipedia

Updates

V1.0

Initial release

V1.1

Added optional Bayer dithering to the P3 decoder.

Conversion

Below is some python code that can convert an image to PBM or PPM:
you will need to "pip install pillow"

P1 (B/W)

from pathlib import Path
from PIL import Image

ASCII_BITS = '0', '1'
imagepath = Path('checkers.png')

img = Image.open(imagepath).convert('1')  # Convert image to bitmap.
width, height = img.size

[ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=177705#p)
2
0 comments



bbs://news.txt seems to be empty.
Is this a bug?

0 comments



Cart #reversi-0 | 2025-10-24 | Embed ▽ | License: CC4-BY-NC-SA
2

Reversi for Picotron

So I noticed that there was no version of Reversi/Othello for Picotron, which surprised me a lot!
Anyway, here is a version of it.

Features

  • Play against another player (hotseat style)
  • Play against a really dumb AI that takes a random available move
  • Play against a slightly less idiotic AI that takes the move that will give it the most points
  • Play against a slightly less idiotic AI that takes the move that will give it the most points while prioritizing the border fields (default)

(If you're wondering why the AI does not move immediately, you have to click for it to make it perform a move.)

Changelog

V 1.0

Initial release

[ Continue Reading.. ]

2
0 comments



Cart #tilegame_2048-2 | 2025-10-24 | Embed ▽ | License: CC4-BY-NC-SA
3

2048 for Picotron

It's literally just 2048 for Picotron! Took me a while to release this, because I was so sure somebody already made something similar. Seems like that wasn't the case so here we are.

Features:

  • New game button in drop-down menu
  • Standard 2048 game loop
  • Current score tracking
  • Game over detection

Possible future features:

  • Highscore tracking

Changelog

V 1.0

Unreleased initial implementation

V 1.1

Initial release
Added score tracking & game over detection

V 1.2

Bugfix: Game windwo was resizeable when it shouldn't have been
(I wrote "resizable" instead of "resizeable" in the source code, lol)

[ Continue Reading.. ]

3
1 comment



This is my startup.lua:

-- User Startup File

-- Run Dock at startup
if fstat("/desktop/Apps/dock.p64") then
	create_process("/desktop/Apps/dock.p64")
end

When my system boots, the dock gets opened in a separate workspace instead of the desktop. When I try running create_process("/desktop/Apps/dock.p64") from the terminal after boot, it works correctly.

1
2 comments



Cart #pogue_shieldfix-0 | 2024-09-25 | Embed ▽ | License: CC4-BY-NC-SA
9

Original game by @crimson2877

I noticed that for some reason the shields in the game weren't doing anything, so I went and fixed it myself. It seems like @crimson2877 was using the base strength of the monster, instead of the one calculated directly before. Note that this does make the game considerably easier.

Original Game
Original description:
Get to floor 10 and defeat the Lich!

Controls: Arrow keys for movement and menus
X: Open/Close Inventory
Z: Wait/Use item/Confirm
X + Z: Hold to rest
Z + Direction: Sprint

9
1 comment



Cart #dock-2 | 2025-12-04 | Embed ▽ | License: CC4-BY-NC-SA
22

Mac OS X Tiger-style dock application.
Does not work in the web player.
Works best when saved to desktop and ran by double-clicking.

Current features:

  • Customisable program shortcuts (edit /appdata/dock/dock.txt)
  • Loads icons from application metadata
  • Automatic size adjustment
  • Follows user theme
  • Displays below or above every window (user selectable)
  • Reacts to user mouse in a way similar to the OS X Tiger dock

Not supported, but I might add these in the future:

  • [Very Likely] Custom positions ("north", "east", "south", "west", etc.)
  • [Quite Likely] Selectable orientation (landscape or portrait)

[ Continue Reading.. ]

22
16 comments