Log In  
Follow
auex
[ :: Read More :: ]

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

Hi!
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!

specs:
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!

API:
—graphics
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

—input
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)

—sound
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)

[ :: Read More :: ]

Cart #lokity-0 | 2023-08-12 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1


This is a short platformer for the LOWREZJAM 2023
You play as a kitty, your owner is moving, but you want to quickly get your toy mouse Paul from the other side of the house, while the ghosts that are moving in help you to save him.

Instructions for menu:

right arrow - toggle tutorial

left arrow - toggle speedrun mode

up arrow - toggle assist mode

c - reset save file (if you do not save, you will be able to use your previous save file)

a - change controls (from player 1 to player 2 and vice versa)

v / x - start game

P#132986 2023-08-12 10:19