Log In  

BBS > Community Superblog
All Users | Following | GIFs | Postcarts | Off-site

Hi,

I've made a background for my game using tline, and while it works on windows, the exact same cart ran on the raspberry pi displays nothing, just black background.

I've tried on both Windows and Raspberry Pi using the latest 0.2.0h build of Pico-8.

Is tline not available on the Raspberry Pi? Or is this a bug that will be fixed later?

Many thanks

Cart #yuyuyamimu-0 | 2020-05-07 | Code ▽ | Embed ▽ | No License

On the pi, no background:

6 comments


Cart #otrn_tt4-0 | 2020-05-07 | Code ▽ | Embed ▽ | No License
4

It's the fourth TweetTweetJam! My entry for this Jam is a stripped-down OutRun clone in 559 characters.

There's a couple things I'm proud of in this cart, so I'm posting an annotated, less-minified version of it below.

Controls

Use left and right arrows and stay on the road as long as possible! Sorry, if you crash you may have to refresh the page or reload the PICO-8 widget.

Code

g,l=color,line
poke(24366,1)pal(2,139,1)x,f,k,n,v,z,c=0,0,1,32,0,1,64::_::camera(-c,-c)memcpy(0,88,c*c)n-=1if(n<0)n=8+rnd(30)v=rnd(14)-7
for i=490,512 do
poke4(4*i,peek4(4*i-4)+v/k)end
cls(12)for d=512,c,-1 do
q=(d+f)\40%2y=c*c/d
r=y/c*(x+peek4(4*d))l(-c,y,c,y,3-q)l(r-y,y,r+y,y,5)l(r,y,r+1,y,9-4*q)end
a=btn()&3
if(a%3>0)a=6-4*a
x+=a*3b=-a/2o="w"
?o,a-9,58,0
?o,a+6,58
?o,-a-7,57
?o,4-a,57
?z.."m",1-c,1-c
u=8h=8g(12)for y=56,60 do
s=-y/c
rectfill((a+u)*s,y+s*h+1,(a-u)*s,y)a+=b
g(8)u=10h=6
end
z+=k\11
flip()
?"oops",0,0
f+=k
if(k<22)k+=1
if(abs(r)<c)goto _

[ Continue Reading.. ]

4
12 comments


Cart #husotekaso-0 | 2020-05-07 | Code ▽ | Embed ▽ | No License
3

My second entry for TweetTweetJam 4. Chars used: 560.

Rules

Guide your guy to exit ▤stairs while avoiding the 🐱enemies and collecting ♥hearts & ◆picogems.

You can wrap around the edges of the screen - use this to your advantage for stylish dodges and pickups! Though beware: enemies can do this too. Watch your back :)

On each floor, an additional enemy/item will spawn.

Controls

  • [⬆️⬇️⬅️➡️] Move

My high score on the final version is about 70◆.

This game was originally intended to be like Zelda, but ended up being more like Robotron without a gun. Enjoy.

Links

itch.io page

[ Continue Reading.. ]

3
3 comments


Cart #sebatudfi-0 | 2020-05-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Controls:

Arrow keys - Match the arrow pattern
C - Hit C once pattern is finished

Description:

PICO-8 game with only 560 characters. Submission for TweetTweetJam4.
Match the arrow patterns before the time runs out! See if you can beat my hi-score of 210.
Check out the demo video of my hi-score: Speed Arrows Demo
Also check it out on itch.io: Speed Arrows Game

Video:

Code:

Copy and paste the following code into a clean PICO-8 file and you should be able to play it!

poke2(0x3200,2276)function x(n)if d!=n and j(l,#f+1,#f+1)==a

[ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=76072#p)
1 comment


Hey @zep,

So we've discovered that 0x5f5e is a destination write mask if it's between 1 and 15, such that the write is now presumably something like this:

dest = (dest & ~writemask) | (color & writemask)

It'd be really great if the top four bits of 0x5f5e were a read mask, allowing us to select bitplanes from source pixels/colors:

dest = (dest & ~writemask) | (color & writemask & readmask)

This would be nice for packing fonts and such. It's already doable with pal(), that's true, but you have to set the entire palette to make it work, whereas you could set just the relevant colors with a read mask. Like, if you have a 1-bit font encoded into four layers, and you're picking the second layer, you'd only need to set pal(2,col) to make it work, instead of all 16.

3
2 comments


When I click the pencil in the new pattern / SFX mode of the pattern editor, I can't immediately copy the SFX by pressing ctrl-C (even though it says "copied 1 sfx")

6 comments


Hi PICO-8 community!

A couple of years ago, I found a puzzle game called "Star" in Rockbox - an open source media player firmware. It was a simple puzzle game in a 16x9 grid and re-creating it has been on my TODO list for about as many years as it seemed like it should be easy, plus I really enjoyed it (it's a bit like Sokoban).

Some reading revealed that it was already a remake, the manual said the following:
> It is actually a rewrite of Star, a game written by CDK designed for the hp48 calculator

Looking for the original got me to a Java (in the browser) version of the game, which didn't work because it's 2020 and... well, Java in the browser. A 5 minute attempt to get this running outside of the browser on MacOS was fruitless and I abandoned it because meh.

I've decided that I'd like to give this a go in PICO-8, which I bought for this purpose. I'm okay (not my day job) with writing code, but have zero experience with game development. The source for Star on Rockbox is

[ Continue Reading.. ]

1
0 comments


Hi. To make a long story short, I've been trying to get PICOPi to work on my Pi 3.
Yes, I did get the right version of PICOPi, but Pico-8 wouldn't boot up for some reason.

This was happening with the 0.2.0d version, but I wonder if it's already fixed by now.

For those not in the know, PICOPi is a buildroot-based image. The website disappeared recently, but apparently you can access it through the Wayback Machine or something.

1
1 comment


Cart #conways_garden-1 | 2023-08-25 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

A little Conway's Game of Life simulation with some slight interactivity laid on top of it. Code is 280 characters. Arrow keys to move about and X to reset.

5
1 comment


Cart #p_harrier-0 | 2020-05-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

my tweettweetjam4 entry, based on the awesome froggy road by 2darray:

https://itch.io/jam/tweettweetjam/rate/331076

It's a pacifist endless space-harrier demake for pico-8, you can;t shoot but must avoid ground obstacles and projectiles (from invisible enemies!)

I'm having problems uploading it to itch.io, so I'll post it here for now

559 chars, here's source code:

x=64u=127z=0q=0h=0n=16y=x
d=0r,g,w=rnd,circfill,x::_::flip()cls(1)b=btn()
k=6((b\2)%2-b%2)x+=k;y=mid(n,y+6((b\8)%2-(b\4)%2),u)h+=.4if(z-h<1)z+=1
if(x<9or x>=u)q+=k/4x-=k
for b=z+n,z-1,-1 do
srand(b)p=(b-h+2)/24m=6+r(9)rectfill(0,w+9/p,u,u,9+b%2)for i=1,r(5)do

[ Continue Reading.. ]

3
0 comments


I've been looking into building a portable PICO-8 recently, so I'm going through display component websites for a square or nearly-square screen. This website (link) has a 60fps, 4" square touch display, so I was wondering if anyone has any experience with the company, Pimoroni.

They mention on the store page that it "works really well for Pico-8 games", which I think is pretty great, if it's made specifically for what I want to build. I thought @zep mentioned somewhere recently that he was looking for a square screen like this, too, so if the company is good then this may be a starting point for an official PICO-8 portable?

Here's a short video clip of the display in use that I found on another website. Pimoroni seems to be a reseller, but they've added code to get it working on Raspberry Pi, and I can't find anything online about "HyperPixel" that doesn't link back to them. I'm new to builds like this, so if anyone has experience with these kinds of projects, I could use some advice.

1
0 comments


TweetTweetDevour is a simple game developed for tweettweetjam-4

Use arrows to escape bigger balls and devour smallers ones!

More on event: https://itch.io/jam/tweettweetjam-4

Cart #kuruwomuzu-0 | 2020-05-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

2
0 comments


Cart #the_monk-0 | 2020-05-05 | Code ▽ | Embed ▽ | No License
5

For Pupu

My game

This is my first game and I am pretty proud of it.
I have worked on it to make everything work a lot, because I am all new to pico8. Any comments will be apreciated

"Plot"

You are a monk in search of his true self by crossing desserts, and drinking water.
You need to cross a dessert inhabtated by snakes and bad foxes. An idiot put some spikes to make your life easier.

How to play

It isn´t complicated. You just have to drink water regularly and avoid getting hit by animals or spikes
You can use the sword to kill animals. You can kill with the initial sword up to 2 animals

Tips

Try to drink water regularly and try no to go to fast, because thats how yo get killed. The water obliges you to move but you have 30 secinds for each jar you drink, so don´t worry

[ Continue Reading.. ]

5
10 comments


Cart #r56oh-0 | 2020-05-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

A game made in 560 characters for TweetTweetJam 4. The sound effects are generated from the poke commands at the top. The note pattern is random and can be a little unfair at times. I wanted to try a smarter way to generate the notes, but with 560 characters, there's not much room.

Z or C - Top line
X or V - Bottom line

If you're looking for a more readable version of the source code, check the spoiler:

-- The Poke commands generate the music, poke4 creates the first two notes
-- the first poke2 creates the third note (when you miss)
-- the last poke2 sets the speed of the notes (16)
poke4(0x3200,0x5ba4.380c)
poke2(0x3204,0x6911)
poke2(0x3240,0x1001)
c=0  -- combo count.
h=0  -- high score.
t={} -- notes in play.
m={} -- flags if you hit a button and missed a note (for both bars).
o=0p=0 -- delay between note generation, so 40 of them don't stack on top of each other.
_set_fps(60) -- set fps to 60, so the scrolling doesn't look awful
::e:: -- normally, gotos are ugly, but for code golf, they're a necessary evil.
-- clear screen and render the bars. A rectangle generates both lines.
cls()
rect(-1,56,128,72)
circ(15,56,4)
circ(15,72,4)
-- reset and tick down parameters for next frame.
p-=1o-=1m[4]=1m[5]=1
-- generate a note randomly, if it's created, add delay until next note (p and o).
if(rnd(25)<1 and o<0)add(t,{x=127,y=53,b=4})o=12
if(rnd(25)<1 and p<0)add(t,{x=127,y=69,b=5})p=12
-- loop over each note, see if it was correctly played, missed, etc...
for i in all(t)do
i.x-=1 -- come on down, you're the next contestant!
?"♪",i.x,i.y,12 -- draw the note
-- if note was played inside the circle, play the sound, 
-- remove it from play, and signify the player didn't miss,.
if(btnp(i.b)and i.x>=8 and i.x<=20)sfx(0,0,i.b-4,1)del(t,i)c+=1m[i.b]=0
-- if the player missed. remove their combo, play the missed note sound.
if(btnp(i.b)and m[i.b]>0)sfx(0,0,2,1)c=0
-- if the note left the screen, remove it from memory.
if(i.x<0)del(t,i)c=0
end
-- if the current combo is higher then the old one, add it to the high score.
if(c>h)h=c
-- print hud
?"combo: "..c,5,5,6
?"high: "..h,90,5
-- render the crowd, have them dance to the left and right depending on the note hit.
for i=0,4 do
?"웃웃웃웃웃웃",40+m[4]-m[5],100+i*6
end
-- draw to the screen, loop back to the beginning.
flip()goto e

2
0 comments


Hey there, this is my first entry for TweetTweet Jame 4!

Cart #golf560-0 | 2020-05-06 | Code ▽ | Embed ▽ | No License
5

Rules

This is a simple golf game, with procedural courses spanning a bunch of islands, I guess. Get to the hole in as few strokes as possible!

Watch out for water! Should you land on the green or in a bunker your shot power will be reduced.

Controls

  • [⬅️➡️] Aim
  • [🅾️❎] Swing (hold to charge power!)

Links

Itch.io Page
Twitter Post

Happy golfing :)

P.S. post screens of your favourite courses! Sometimes it generates pretty things.

5
2 comments


Cart #beachcomber-3 | 2020-05-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
19

Stranded on a mysterious beach, you must explore and battle with evil monsters to escape!

This is my first PICO-8 game and I had great experience working with PICO-8 for the first time. Hope you enjoy.

Thanks!

Controls

[←][→][↑][↓] move
[Z] attack
[X] place bomb



19
7 comments


Cart #cat_runner-0 | 2020-05-05 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

My first programing game!

4
0 comments


The new shift operator behaviour where a>>n returns a<<-n when n is negative causes an infinite loop and freezes PICO-8 when shifting by -32768:

?1<<-32768
?1>>-32768
?1>>>-32768
1
1 comment


I'm working on a project where I want to relegate some of the simpler sprites to being generated by the code, rather than occupying valuable space in the sprite sheet and map areas. However, it just dawned on me that I am running many loops of line(), rect(), etc. every single _draw() call, which I have a gut feeling isn't a very efficient way of doing things. Aside from the obvious "just use the sprite sheet" solution, is there a way in which I can continue to generate images from code BUT only run this one time (eg. during _init()), and then load the buffered images during _draw() somehow?

Even if the answer is just simply that this isn't possible, knowing so would at least put my mind at rest!


EDIT: Misremembered my implementation somewhat!
-"single _update() call" => "single _draw() call";
-"to use this image generation code BUT only call it one time" => "to generate images from code BUT only run this one time".

8 comments


Lowwwww-priority:

I often have several instances of PICO-8 running. It would be nice if their window titles reflected what was running, at least to some extent, so I could select the right minimized app from the taskbar.

Seems like "documentname - appname" is the de facto standard for this kind of thing, so it'd be nice to click on the taskbar and see this list:

  • UNTITLED - PICO-8 (or maybe just PICO-8 when nothing's been saved)
  • TIMER.P8 - PICO-8
  • CELESTE.P8.PNG - PICO-8
  • BUGREPRO.P8 - PICO-8

I converted the filenames to uppercase here because it feels on-brand, so to speak, and also because making uppercase the default would interact nicely with this optional upgrade:

You could extend the titling algorithm so it uses the same method a .p8.png image uses, where if the first line is a comment, it treats it as the cart's title.

For instance, when running/editing this infloop.p8 cart:

The window would be titled "Infinite Loop - PICO-8", rather than "INFLOOP.P8 - PICO-8", because I used a comment (with mixed case) to make a nice, elegant title for my cart.

[ Continue Reading.. ]

4
1 comment




Top    Load More Posts ->