Log In  

by auex
Cart #pct2-1 | 2024-04-19 | Embed ▽ | No License

This is really my first actual public picotron program (and first fantasy console), but i’m really happy about it.
It’s still really buggy and laggy, but i recommend loading it and running it that way.
I hope you enjoy it!

64x32 pixel display
64k-symbol programs MAX (including newline, tab and such)
4 colors
inputs: 0-up/w, 1-down/s, 2-left/a, 3-right/d, 4-z, 5-x, 6-c, 7-v
sound: 0-11 (e5, d5,c5,b4,a4,g4,f4,e4,d4,c4,b3,a#3,g#3)

memory map:
screen: 1-2048
ram: 4001-4300
colors: 4301-4304
inputs: 4305-4312
rom: 4313-68313
settings: 68314-68323
extra: 68324-68999 --675 places for free!

d2s(x,y,c) —draws pixel of color c on position x, y —(draw 2 screen)
set_bg(c) —sets what the background color
set_pal(c1,c2,c3,c4) —sets c1, c2, c3, c4 as the palette
set_bt(c1,c2,c3) —sets a blend table = if c2 is drawn atop c1, c3 is drawn

inp(b) —checks if input b is true (like btn())
inpp(b) —checks if input b is true (like btnp())
allow_mouse(b) —if b is true or left nil, cursor will be shown (it is shown by default)

snd(tone) — adds tone to sound queue

—fnnuy fetarues
rick() —sets clipboard to link to Never Gonna Give You Up by Rick Astley
doominator() —notifies “:3”

I do have to say:
I didn’t implement naming files yet, so this is the order of files the program checks in for an existing file to load:
rom=fetch"/game.p2" or fetch"/gmae.p2" or fetch"/p2.lua" or fetch"/appdata/pct-2/game.p2" or fetch"/appdata/pct-2/gmae.p2" or fetch"/appdata/pct-2/p2.lua" or fetch”code.lua”

also, no terminal or text editor is included, so you write code in the normal code editor, and after a 30 frame boot screen, it immediately goes to one of the files above.

yeah, that’s about it. I hope you enjoy!

(sorry, the music in the demo is really fast in the bbs online version for some reason)

also, I did try to make a dino clone, but I got a lot of errors from foot.lua and terminal.lua(?). It should be in broken_code.lua.
if you find any errors or have suggestions, please let me know!

thank you!

P#146963 2024-04-19 19:09 ( Edited 2024-04-19 19:16)

A fantasy console inside a fantasy workstation?? this is so cool!
But how does it work?

P#147245 2024-04-24 11:25



P#147643 2024-04-30 13:15

[Please log in to post a comment]