Log In  

BBS > Superblog
Posts: All | Following    GIFs: All | Postcarts    Off-site: Accounts

Bubble sort Algorithm example

Cart #tiyudezuwo-0 | 2022-08-24 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

Hi everyone!
First experiment with pico-8, visualising the bubble sort algorithm steps, for the array {3,10,5,7,2,13,1}.

2
3 comments


Cart #jijugbage-0 | 2022-08-24 | Code ▽ | Embed ▽ | No License
1

Hi everyone! I'm working on a platformer that has endless map loop.
But now, I got stuck because I don't understand how to make the collision follow the map scroll.
In reddit, I was given a lot of great advices, but I can't solve this problem.
People say ''Use the camera to scroll map with collision'', can anyone tell me what should I do?
So sorry for my being a beginner.

1
2 comments


Cart #goiwmeep-1 | 2023-05-04 | Code ▽ | Embed ▽ | No License
43

(Updated to fix a crash caused by a PICO-8 update)

This was made in 48h back in February for a stream event revolving mods of CELESTE Classic- finally got around to posting it here! :D This version comes with an "Explorer Mode" (accessed via the pause menu) to skip/practice various sections.

Based on Getting Over It with Bennett Foddy by Bennett Foddy

🎵 Post-jam music by RubyRed 🎵

Controls

Mouse - Move hammer
Left-click - Push hammer

Explorer Mode Controls

Right-click - Warp to mouse position
Middle-click - Warp the 1-up to your hammer

43
12 comments


A while back, I saw someone had made a platformer engine in <100 lines of code. The game itself worked, but collision detection wasn't great (You could jump up through a wall)

A while later, I started to make my own platformer.
The way it runs, its actually less than 100 lines of code. so here it is.
To add a new collision block, give it the first flag.

Here it is, but it isn't commented. Might do that soon.

Cart #kokitayit-0 | 2022-08-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

3
1 comment



2 comments


Cart #janeksquest01-0 | 2022-08-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
6

Pan Janek Zielinski was a lowly janitor in Krakow nuclear power plant, whose life consisted of guzzling cheap alcohol and pretending to work hard, until one day he was urgently called to pani Director's office. Turns out, something broke down in the depths below the plant, radiation readings were off the charts, and now the whole city of Krakow was in danger of a nuclear disaster. Director has sent many brave souls to try and fix the problem, but none have returned. Janek nodded silently, grabbed his stuff (of which Director immediately confiscated all alcohol), and bravely descended into the darkness, like the true son of Poland he was...

This is a simple roguelike about resource management. There are four resources:

[ Continue Reading.. ]

6
0 comments


Cart #lj_ge-0 | 2022-08-23 | Code ▽ | Embed ▽ | No License
9


Lava Joe is a fun game to play to kill time. Its simple gameplay loop allows you to play it while putting most of your focus on something else, and that's exactly why it's my go-to game to play on the side while doing stuff such as watching YouTube and things like that. However, over time, certain things in the game started to bug me, and while it was fully understandable that the game wasn't the most polished thing in the world as it was made for a game jam, I still had a little voice in me telling me to change it to my likings. And so, recently, I did just that.

The main issue that bothered me was the fact that all enemy types give the same amount of points(50). To me, this makes no sense as the later enemies prove to be quite a pain to deal with before the lava flood gets you. As such, I have modified the system so that starting with the snake, each new enemy would give an extra 25 points for its defeat. So, the little blue guy is still 50 points, the snake is 75, etc.

[ Continue Reading.. ]

9
4 comments


X for shoot
Arrow keys for move

Cart #futanidpe-2 | 2022-08-23 | Code ▽ | Embed ▽ | No License
2

2
1 comment


Cart #scmbios-1 | 2022-08-23 | Code ▽ | Embed ▽ | No License
2

I am planning on making a game where you try to discourage a
cold war era computer that's gone rogue from launching an ICBM

The following cart showcases the fake bios I made for it.
Changing colors is now possible by using arrow keys.
Please give feedback so I can improve this "bios"

2
2 comments


Cart #shooterpbesstudio-0 | 2022-08-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
10

Shooter is our first game coded with PICO 8 and the help of many programmers from the internet.

Following the destruction of your planet and the disappearance of all your loved ones, you must take revenge. Using your laser will cause you to lose life. Try to go to the end of the game.

PBES studio is a duo of very amateur french developers, we currently master the if loop and a little the elseif. We have a multitude of game ideas and if you want to help us make them a reality, please share our game around you.

10
8 comments


Cart #cherrybomb-0 | 2022-08-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
246

How to Play

Cherry Bomb is a basic arcade Shoot 'em up game (Shmup) reminiscent of Space Invaders or Galaga. Pilot your red spaceship to blast your way through 9 waves of attacking aliens. Use the following controls:

  • Arrow keys - Move the ship
  • (X) - Shoot
  • (O) - Bomb (Depletes your 🍒. See below)

Shoot the enemies to destroy them. Enemies will attack you. Destroy or avoid all enemies in a wave to proceed to the next wave. There are 9 waves in the game. If you get hit you will lose a ❤️. If you lose all ❤️ you lose the game.

Pickups

Occasionally, defeated enemies will drop a 🍒 pickup. Collect them to increase the strength of your Bomb. Triggering the Bomb will deplete your 🍒. You cannot use the Bomb if you have no 🍒.

[ Continue Reading.. ]

246
18 comments


Hello:

While you can see here that I've had many suggestions for Pico-8, many of which have come to light:

https://www.lexaloffle.com/bbs/?tid=35330

I was thinking up one this morning called, "spawn."

Very simply you type in immediate mode, spawn followed by the ENTER key and a new Pico-8 is loaded. No need to hunt down in Explorer or click the desktop icon if if it's not immediately available. I think this would be helpful for people such as myself who always has 3-4 Pico-8 frames open and being worked in.

It can have an argument too such as, spawn "project9"

Which would not only bring up a new Pico-8 but additionally load project9 if it is available in the default directory.

The command could instead be, reboot which is already in use. Yet in this if you type reboot 0 or any other non-NIL value, it would bring up a new Pico-8 frame. Reboot could further use a filename such as "project9" above.

This may not be a good idea though as if anyone types reboot without arguments it would reboot the current frame losing the work of whatever was there.

[ Continue Reading.. ]

2
3 comments


Cart #qdawg2022-0 | 2022-08-21 | Code ▽ | Embed ▽ | No License
1

Happy birthday, Q-Dawg! 🎁

Can't wait to jam with you again!

// Your Main Man Meyer

1
0 comments


Cart #strummin_along-0 | 2022-08-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

"Strummin' Along"

280 characters

n,m,t,w,o,l=32,128,0,0,ovalfill,line::_::cls(1)for i=0,n do
c=4if(i==n)c=9
o(16,64-i,m,99-i,c)o(-n,78-i,m,m-i,c)end
for i=16,m do
x=97-i
c=4if(i%9>7)c=6
if(i<20or i>46)l(i,x,i+n,x,c)o(n,48,84,62,0)end
for i=7,n,5 do
l(9+i,82,m+i,-n-(w+i)%3,7)end
flip()t+=1if(t%n<1)w=9
w*=.9goto _
1
0 comments


Here's a very weird bug I just discovered accidentally.

  • Visit a page with a comment that contains a bullet point list, like this (and possibly a page 1|2 section at the bottom, not sure).
  • Click and drag your mouse to highlight the text.
  • While still holding drag, move your mouse cursor to the right. A horizonal scroll bar will appear along the bottom, apparently equal to the length of the largest line of text in the bullet point list, if there wasn't any word wrapping. It seems very weird but related to the length of the text, so I'm just going to ramble on here for a bit to prove my point. Doesn't seem to work with the post preview though, so maybe this is comment-only.

More funny than anything, tbh. You can see this bug in the wild on this page: https://www.lexaloffle.com/bbs/?pid=46706#p

Bug occurs in Chrome on Windows 10.

3 comments


Especially in tweetcarts, using sub(s,i,i) has always felt like a waste of so many chars, and less intuitive than the standard s[i] in most other programming languages. Also, because of the massive amount of string parsing that happens in Pico-8 for data compression, and the fact that Lua does support this feature with a small amount of work, I'd really like this feature added. chr and ord were a step in the right direction (as previously, these needed two lookup tables generated at startup), but I think with the recent addition of sub(s,i,_), it's clear that a major string parsing use case is missing.

See this link, the implementation of __index that will still support t:func(a) is at the bottom of the page:
http://lua-users.org/wiki/StringIndexing


Why should this be added to the API though? Unfortunately, the main issue with people implementing this feature themselves seems to be that the basic Lua string library isn't present. getmetatable('') returns nil in Pico-8 code, so you can't assign functions to it. You could assign a custom metatable via setmetatable that re-implements all of the string functionality in every string created, but that would destroy your token count, as it would have to cover concatenation, construction, tostr, etc. And since the carts that usually need this are character limited (tweetcarts and maxed out carts), you don't have the space to do it yourself anyway.

[ Continue Reading.. ]

8
17 comments


Hi!

I'd like to rename the older Pico-8 games that are only labeled as numbers. I know the game name can be seen in the first few lines of code - so I was hoping for an automated method using a script or program or something since there are several thousand of them.

Thanks!!

7 comments


Cart #mahjong-0 | 2022-08-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
28

Rules

I guess most people will already know how to play Mahjong solitaire, but if you don't:

You will be given a pile of tiles. A tile may only be removed when it is possible to move it either to the left or right and no other tile is in the way, and no other tiles covers it either fully or partially. Remove tiles by pairing together same glyphs. Remove every tile to win.

There are four of each tile and they match only a tile with the exact same face. An exception to this are the flowers and seasons which may match any of the others of the same group:

Flowers:

Seasons:

About

[ Continue Reading.. ]

28
7 comments


Cart #squashy-1 | 2022-08-20 | Code ▽ | Embed ▽ | No License
1


Hello everyone,
this is my new Game, Squashy. It has a special Function, which you can test out.
Gameplay:
Right / Left arrow key to move the paddle to the Right or Left
X for a paddle boost
O to start the Game
The Goal of the Game is to hold the Ball over the Bottom. When the Ball comes to the Right/left or Top of the screen, the ball is coming back.
When you see something in the game that is wrong, it would be great, then you me write a comment.
Hope you like this Game.

1
1 comment


Marking as resolved - this is a "feature" of printh to stop at \0.
Solution to export p8scii to clipboard is given here: https://www.lexaloffle.com/bbs/?tid=38692

Repro cart:

Cart #haguramako-0 | 2022-08-20 | Code ▽ | Embed ▽ | No License
1

Outcome:

  • p8scii correctly copies bytes on screen
  • bug: clipboard gets only a truncated command (should be 612 chars)

Note: works as expected if background is not 0

1
0 comments




Top    Load More Posts ->