This is a custom song and not a remix of any other song. You can use this song in one of your projects as long as you credit me in it. Thank you!
P.S: if you noticed why i kept using the phaser instrument, its because it reminds me of one of the popular games on here called Celeste, and yes i know theres a remake available on pc and consoles.
A small health bar demo project.
Usage
You can tweak the values in the draw_lives() function to change the appearance of the health bar. The 'x' and 'y' variables control the x and y of the top left corner of the health bar, the 'off' variable alters the spacing between the hearts and the 'life' variable controls the number of lives, out of the 'max' variable.
Feel free to use this in any project you may be working on!
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]
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.
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
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 ]] |
nothing to see here; this cart is a bug repro for @zep
- download this cart:
load #teredubafu
- turn down your volume!!
- play sfx 30,31,64,72 in the sfx editor -- the a00/b00
effects cause a high-pitched artifact - note: sfx 65 and 73 are minimally altered versions of 64 and 72
and have no artifact
my system: picotron 0.1.0h / linux
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
-
Open the Extensions sidebar panel in VS Code. View → Extensions
-
Search for Pico-8 theme by mai314
- Click Install
Enjoy!