Log In  

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

Cart #54262 | 2018-07-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
250

Rolly

Jump, Roll, Hop and Dive your way through sharp caves to rescue your friends.

Huge thanks to everybody who helped us make this - for contributions big or small. Also, a massive thank you to the Pico 8 community for showing us how it's done!

Controller recommended - here's a link to the game on itch.io which supports xbox controller in browser.
https://davbo.itch.io/rolly

Davbo and Rory~

250
38 comments


I want to allow using the keyboard to input numbers, but also register the regular controller buttons.

It seems to work OK, except for one tiny problem: When the user presses the "8" key on the keyboard, PICO-8 also registers that as the X button on the controller.

Here's a minimally working example, run this and press the "8" key (the regular one, not on the numpad):

function _update()
  poke(0x5f2d,1)
  if (btnp(5)) print("x was pressed")
end


I can only find information about "X", "V" and "M" mapping to the X button, not "8".

The following snipped will display what key and button was pressed for any key, just in case I'd missed something, but "8" being mapped to button 32 (which is of course the mask for player 1's X button) was the only surprise.

function _update()
  poke(0x5f2d,1)
  if (stat(30)) print("'"..stat(31).."' was pressed on the keyboard")
  c=btnp()
  if (c!=0) print(c.." was pressed on the controller")
end

[ Continue Reading.. ]

3 comments


Cart #54247 | 2018-07-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

Mausoleum Quest is a small action adventure game where you explore an old and ruined place, inhabited by dangerous drones. It looks peaceful, but the quest will be difficult.

The controls are simple: an attack key, and a dash key to escape your opponents attacks and jump from a platform to anther.

Credits:
pathfinding from picozine 4 by richy486
collision script inspired from this cart by Zep
animation function by Scathe

8
8 comments


Cart #54241 | 2018-07-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
12


Made my own version of 2048 to get familiar with Pico-8

12
6 comments


Cart #54229 | 2018-07-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
18

Use the arrow keys to move the cursor, Z to rotate the cell. Levels are randomly generated,infinity challenge.
Any suggestions please level a comment, let me know, thank you.

18
7 comments




I am trying to get a program to list the files in the current directory. The Wiki says that ls() outputs a table of the folder's contents, but it gives me a [NIL] for every item in the folder. Why is that? Does anyone know how to do this?
Thanks!

2 comments


Cart #54232 | 2018-07-17 | Code ▽ | Embed ▽ | No License

Testing out some ideas.

Cart #54220 | 2018-07-16 | Code ▽ | Embed ▽ | No License

Just the barest bits of the beginning of a game here. Uses the mouse to aim, Z to shoot.

1 comment


Cart #54216 | 2018-07-16 | Code ▽ | Embed ▽ | No License
3


This is my first game with pico-8. I made the graphics similar to the original Windows XP version of Minesweeper.
Use the arrow keys to move the cursor, Z to reveal a tile, and X to place/remove a flag.
You can start a custom game from the pause menu. If the board doesn't fit in the screen, you can move the view with ESDF.

3
0 comments


I am wondering how to detect collisions between a sprite and another sprite on the map. the latest thread for this was in 2016 and the code in the answers looked outdated. Thanks! G

2 comments


Cart #54193 | 2018-07-15 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1


A small little program to play Conway's Game of Life in. It supports randomly populating the screen, as well as creating your own designs with an editor.

I started out making this as a quick little project, but I ended up also using it to figure out how a title screen menu would work.

1
0 comments


Issue

Only in headless mode (pico8 -x test.p8), and when the mouse devkit is active, trying to access a devkit stat will result in a crash with:

Floating point exception (core dumped)

Minimal working example

script.p8:

pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
function _init()
 -- activate mouse devkit
 poke(0x5f2d, 1)
end

function _update()
 -- get mouse x position
 -- any stat from 32 to 36 will crash
 stat(32)
end

Then run with pico8 -x script.p8

Note that I put stat() in _update because I need at least 1 frame after activating the devkit so the crash occurs. If you print inside _update you'll see that stat(32) is 0 the first time, then it crashes.

Workaround

When testing functionality in headless mode, prepare a build that doesn't use the devkit at all. Or make sure that in runtime, the devkit is never used.

0 comments


Cart #54184 | 2018-07-15 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

This is a quick and dirty cart exploring some AI methods for boardgames in pico8.

The implemented AIs are:

1- Purely Random
2- Random Avoiding win/loss moves
3- Playing randomly a number of times, counting win/losses and choosing "best" moves
4- MCTS (Monte Carlo Tree Search)

(Method 3 can be thought of as an MCTS of depth 1)

You can switch the AIs that the game uses by changing the AI_cofun table. Player_AI just
let's the player pick the move. You can make two AIs fight each other, or make two players
fight each other too.

It was pretty cool putting the AI co-routines together. The code is not the pretties or the most
token efficient, but I might polish it a bit if I find some time on the summer. Hacks are welcome!

1 comment


Cart #54180 | 2018-07-15 | Code ▽ | Embed ▽ | No License
3

Hey guys!

We've made a little fangame with my girlfriend based on a fanfic she wrote with Black Sails characters.
If you're afraid of spoilers, don't be! There's no connection with the story of the TV show.

The game is also available on itch.io. Here's the description from the page :

[box=ffeedd]This is an arcade fangame of "Black Sails" that makes absolutely no sense, with or without context! ^^

The idea actually came from a crack!fic I wrote on ao3 in which Silver drinks coconut water and then becomes crazy with want. I had a hard time writing at that time, so a friend of mine made a silly fanvid to cheer me up. In the end, this silly fanvid inspired my partner and me, and that's how this fangame was born. :)

[ Continue Reading.. ]

3
2 comments



Mow the lawn! Currently you just go around mowing but that will change! I will add a point system, weeds to mow over (gives you points), cats to avoid, among others. Thanks! (PS: Also works as a drawing program)

CONTROLS:

E: Up
D: Down
S: Left
F: Right

1
2 comments


Cart #54748 | 2018-08-05 | Code ▽ | Embed ▽ | No License
29

mission

  • rocket into the spiraling vortex
  • face and destroy the cosmic horrors living inside it
  • restore peace to the galaxy once and for all

controls

  • left/right - move your ship in a circle around the vortex
  • up/down - get closer into or farther away from the vortex
  • z - shoot your weapon, hold for auto-fire and to make your ship move slower

tips

  • movement of your ship is vortex-relative, it helps to stay on the bottom part of the vortex to not make movement confusing
  • try to stay as far away from the vortex as possible

[ Continue Reading.. ]

29
14 comments


Cart #54158 | 2018-07-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1


Cursor keys to move
Z to shoot

1
1 comment


Cart #54179 | 2018-07-15 | Code ▽ | Embed ▽ | No License

Cart #54154 | 2018-07-14 | Code ▽ | Embed ▽ | No License

0 comments


Cart #54150 | 2018-07-13 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

0 comments


Cart #pico_pirates_v1-0 | 2019-09-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
137

Pico Pirates is an open world adventure game featuring deadly monsters, rival pirates and beautiful sandy beaches!

You set out on your quest to find The Pirate King and claim the crown for yourself. To do this, you'll need to find the 4 compass pieces scattered around the vast, procedurally generated world and keep your crews spirits high throughout (pirates lovely treasure and a good fight!).

Art, programming, design

Craig Tinney

Music

Chris Donnelly
@Gruber_music

Special thanks

Daniel Caaz for their excellent font compression solution (https://8bit-caaz.tumblr.com/post/171492623783/rendering-a-font-from-a-layered-sprite-sheet-in)
Josh Richter for the constant testing and excellent ideas
Alex Wall <3

Follow me on Twitter for more Pico 8 goodies @ctinney94

Previous versions

[ Continue Reading.. ]

137
23 comments


So apologies if this has been asked before,

I am looking to build a sentence with random strings that will be stored in a table.

For example:

    text = {}

names = {"a", "b", "c"}

name = names[rnd(2)] <-- doesn't work :(

foo = {
str = "Hi my name is" .. name
}
Everything I have found is in the Non P8 version of Lua.

8 comments




Top    Load More Posts ->