Log In  

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

Cart #p8highlighter-1 | 2024-07-25 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

P8 Syntax Highlighter

An advanced PICO-8 lua syntax highlighter in just 356 tokens! Call highlight(code) to receive a printable p8scii string. All the colors can be modified by changing their corresponding p8scii color at the top of the script.

Check it out on | Github

Examples:

All examples generated with P8 Syntax Highlighter

If you end up using this, please share it here!

Updates:

  • Implemented string delimitting (or however that's spelt) [397 Tokens]
4
3 comments


Cart #cobbsadventure-5 | 2024-09-01 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
14

Cobb's Adventure

Help Cobb on his adventure to eat as much food as possible!

This is HEAVILY inspired by Adventure Island, a wonderful game series from the mid-80s, although I am most familiar with the Gameboy adaptations in the early 90s.

Features:

  • 8 different environments
  • Never play the same game twice! Levels are randomly generated every playthrough
  • Easy to learn, hard to master - once you can beat the game, go for 3 stars on your score or times!

I strongly recommend a gamepad for this game. If you are committed to keyboarding, consider pressing "Enter" to open the menu, and set "AutoRun" to "ON" so that you dont need to hold a key to run.

[ Continue Reading.. ]

14
5 comments


I've made Super Mario Maker 2's Snow theme from the Super Mario Bros. game style into PICO-8
Have a listen:

Cart #smbsnow1-1 | 2024-07-24 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

4
1 comment


Cart #gummi-0 | 2024-07-24 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

1
0 comments


Cart #befruited-0 | 2024-07-24 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

Hello everyone!

Here's my first PICO-8 project, a fruit-based match 3 game.

  • Matches do not have to be in a line; any continuous region of fruits counts
  • Modes with limit on moves, limit on time, without limits, or autoplay
  • Fruits!

Feedback is welcome.

4
1 comment


Like the title says, I have rudimentary collision detection on the top and sides of my sprite but not on the bottom.
I'm very new to game dev, but I have some experience in python. I can't see if I have a typo, or I've made a mistake in following the tutorial I watched.

--player--
function create_player()
player={
state="normal",
sprite=1,
health=4,
x=64,
y=82,
h=8,
w=8,
gravity=0.30,
friction=0.15,
inertia=0,
thrust=0.80
}
end

function collide(o)

local x1=o.x/8
local y1=o.y/8
local x2=(o.x+7)/8
local y2=(o.y+7)/8

local a=fget(mget(x1,y1),0)
local b=fget(mget(x1,y2),0)
local c=fget(mget(x2,y2),0)
local d=fget(mget(x2,y1),0)

if a or b or c or d then
return true
else
return false
end
end

function move_player(o)
o.y+=o.gravity --applies player gravity

local lx=o.x --last x pos
local ly=o.y --last y pos

if (btn(❎)) o.y-=o.thrust --player move
if (btn(⬅️)) o.x-=0.5
if (btn(➡️)) o.x+=0.5

--if the player collides, moves back

if collide(o) then
o.x=lx
o.y=ly
end
end

function ani_player(o)
if btn(⬅️) then --player animation
o.sprite=2
elseif btn(➡️) then
o.sprite=3
else
o.sprite=1
end
end

function draw_sprite(o)
spr(o.sprite,o.x,o.y)
end

2 comments


Cart #qsortz_bc-0 | 2024-07-24 | Code ▽ | Embed ▽ | No License

Feature Overview

QSORTZ() Quick sort by z.

  • sorts by reference to z from the argument table.
  • See the code in the cart for the single value type QSORT() where table t is sorted by v.
  • This function consumes 76 Token.
tb={{id='a', z=1}, {id='b', z=2}, {id='c', z=1.5}, {id='d', z=-0.5}}

?'before sort',6
for i,v in pairs(tb) do
	?v.id..':'..v.z
end

qsortz(tb,1,#tb)

?'\nafter sort'
for i,v in pairs(tb) do
	?v.id..':'..v.z
end
--[[
before sort
a:1
b:2
c:1.5
d:-0.5

after sort
d:-0.5
a:1
c:1.5
b:2
]]
0 comments


Cart #teredubafu-0 | 2024-07-24 | Embed ▽ | No License
1

nothing to see here; this cart is a bug repro for @zep

  1. download this cart: load #teredubafu
  2. turn down your volume!!
  3. play sfx 30,31,64,72 in the sfx editor -- the a00/b00
    effects cause a high-pitched artifact
  4. note: sfx 65 and 73 are minimally altered versions of 64 and 72
    and have no artifact

my system: picotron 0.1.0h / linux

1
0 comments


Hi Pico-8 community! a few months ago I built a pico8 themed VS code extension, it follows the colour scheme of the pico 8 text editor, and I have also added instructions in the read me on how to get the font and the cursor!

You can get it here: https://marketplace.visualstudio.com/items?itemName=mai314.pico-8-theme&ssr=false#overview

or

  1. Open the Extensions sidebar panel in VS Code. View → Extensions

  2. Search for Pico-8 theme by mai314

  3. Click Install

Enjoy!

Screenshot examples

2
0 comments


HELLO GUYS

Im made meme song on PICO-8

Im use PICO-8 midi convertor Denote by @bikibird

SONG LIST

NazarFloppaLovesP8-me
Never gonna give you up
[sfx]

Nyan Cat
[sfx]

Other users
Shooting Star Requested @bsm
[sfx]

[ Continue Reading.. ]

4
2 comments


Cart #youtooz_floppa_plush_for_free-0 | 2024-07-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

1
0 comments


Cart #strange_caracal-0 | 2024-07-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

Is experiment on pal and rnd im add in function _init and function _update60

Photo of caracal im use Depict and im open file PICO-8 cartridge and paste in gfx

source photo

1
1 comment


Cart #phoenix_picotron-0 | 2024-07-23 | Embed ▽ | License: CC4-BY-NC-SA
21

Based on the 1980 arcade classic.

My first Picotron project, this is a conversion of my Pico-8 remake.

Thanks To

  • Finn for testing

Version History

  • 0.80 - 23-Jul-2024 - Released
21
7 comments


I'm working on something with lots of overlapping sprites, that need to be drawn in the correct order. After my failed attempts at implementing quicksort, I found a thread suggesting Z values could be used as keys in a table. My table of sprites will be rebuilt every frame, so the plan is to insert sprites at specific positions in the table once they're created. This way, I should hopefully be able to iterate over the table with a for loop without sorting it at all. Unfortunately, I wasn't able to figure the last part out.

table={}
add(table, 10, 1)
add(table, 20, 2)
add(table, 15, 1.5)
add(table, 27, 2.7)
for i in all(table) do
 print(i)
 --[[
  15
  27
  10
  20
 ]]
end
print(table[1.5]) --[nil]
print(table[1]) --15

As a test, I tried something like this, only to realize add() floors your input keys, and ignores the keys of previously added items. What I really need for this to work, is a way to add a key and value to a table directly, and a way to stop PICO-8 treating my numerical keys like a sequence. I've tried adding items the way you would with string keys, but it didn't work.

[ Continue Reading.. ]

6 comments


Cart #aaasajjrkljlfgfdsh-0 | 2024-07-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

Big Header

Medium Header

Small Header

italics bold

URL Description

Embed:
[**could not embed: 1234] // cartridge id


This is a code snippet within a line

while (true) do
 color(rnd(8)+8)
 print("multi-line code listing")
end

spoiler or large block of text

[ Continue Reading.. ]

1
0 comments


Cart #pico8_setup-0 | 2024-07-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


Simple PICO-8 setup screen

that use WITH CREDIT

code using in @mattu82 cartridge called Booting

0 comments


Cart #fuwgiwugo-0 | 2024-07-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

it contains the main steps of creation for a warhammer fantasy rp character of the fourth edition which is translated to spanish by Devir (i still don't put the step of the talents because i'm fighting with myself whether to put them in this cartridge or put them in a different one). i wanted to translate it to english and make it equal to the spanish version but i realized that i need the cubicle7 version xd because that one has the data of the roll tables different from the spanish version and i don't want anyone to be confused.
I plan to include the gnome and then try to translate it to english but I want it to be very faithful to the english version.

0 comments


Cart #bubbletowers-1 | 2024-08-13 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
12

Tower Defense Game for Pico-8.
This game is inspired by the old flash games:
Bubble Tanks Tower Defence.

Description

This is not the usual tower defence game you are used to. Sure, you have to build towers to defend against enemy waves and also earn cash by destroying them to update your towers.

What is special here is that we not only can build defence towers to destroy enemies but also to define the path the enemies can take. Where the enemies have different skills like self-healing or flying over towers. In addition, we have various different maps where some may have blockades, are limited in space or have already predefined fixed paths.

Game Play

[ Continue Reading.. ]

12
7 comments


Cart #speeko8test-0 | 2024-07-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


Im use @bikibird tool called Speeko8
Press ❎ for play
Press 🅾 for stop

1 comment


Cart #matorodufa-0 | 2024-07-22 | Code ▽ | Embed ▽ | No License

I'm working on a farming simulator game. In the _init() function it should randomly generate the pattern on the grass tile and then randomly place the grass tile on the map (replacing any empty tiles.) However, a strange bug is occurring where some map tiles are corrupt. Can somebody explain what's going on? Use arrow keys to move around.

2 comments




Top    Load More Posts ->