Log In  

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

Cart #knutil_mkpal-0 | 2023-08-07 | Code ▽ | Embed ▽ | No License

Feature Overview

MKPAL() Create a color swap table for use in PAL().

  • This is useful for creating several color patterns.
  • It is not an error if the number of elements in the swap table does not match.
  • This function consumes 44 Token.
-- Color swap to darken "blue, white, and green".

local p=mkpal({12,7,11},{13,6,3}) -- mkpal('c7b','d63') is also the same.
pal(p)
spr(1,16,32,2,2)

This function will be included in the next version(0.14.0) of KNUTIL library.

release note


v0.1

  • first release
0 comments


I want to automate calling the save @url command so that I can get the https://www.pico-8-edu.com/ url for my cart programmatically.

Ideally I would be able to use a terminal command like
pico8 -export @url
which would output the url to stdout but that is not supported.

I noticed that the url query string matches the binary contents of a tiny rom export.
This would allow me to construct the url myself, but unfortunately
pico8 -export -t mycart.p8.rom
similarly does not work (the -t flag is only supported when exporting from within the PICO-8 console)

Another possibility would be to parse the p8.png file for the compressed cart contents, but I'm not 100% sure that uses the same format as the tiny rom, and I would like to avoid it if possible.

Does anyone know if there is a way to do this?

3 comments


Heyo people!

So, I'm having some trouble getting my head around the timing of everything when it comes to Pico 8, Lua, and I guess programming in general. Something that troubles me is how for loops act when running a game.

Right now, I have a piece of code that displays several circles along a straight line, one circle being created for each pixel of distance between the player sprite and a mouse click location. Here is the code:

if band(mousebtn,1) > 0 then
 ropes={}
	mouseclick=true
end

if mouseclick==true then

	--get last mouse coords
	local lcursx=mousex
	local lcursy=mousey	
	--get last player coords
	local lpx=p.x+8
	local lpy=p.y

	local dist, angle = gettraj(lcursx,lcursy)

	for i=1,flr(dist) do
		local dirx=lpx+cos(angle)*i
		local diry=lpy+sin(angle)*i

		add(ropes, {x=dirx,y=diry})
	end

	mouseclick=false
end

Now, I've been messing around with this for loop for about 3 hours, trying to figure out how to create these 'rope' particles sequentially, one by one, over a specific span of time.

I've tried wrapping it in a timer...

t=time() -- upon button click get time

        for i=1,flr(dist) do
                if time()-t>1 then
		        local dirx=lpx+cos(angle)*i
		        local diry=lpy+sin(angle)*i

		        add(ropes, {x=dirx,y=diry})
                        t=time()
                end
	end

I've also tried wrapping the timer around the add(ropes)... statement alone, doing all sorts of timey wimey stuff that I'm seeing in tutorials and in the forums, and nothing has worked. I wish I could post all of the iterations of failure but that would be very boring.

I've also considered creating each rope particle, and then having them move incrementally towards the mouse location, before freezing the entire table of particles in place. Perhaps that would give me greater control over the 'extending rope' effect.

So, I guess I'm just wondering, how does the for loop really work? Does placing a timer within the loop mean that one second should be passing each time the loop runs? Does the loop finish its full duration before continuing with any code below? And also, if you have any suggestions on how to get these little ropey fellas to spawn based on a timed sequence, please let me know.

-- I feel like I'll be posting a lot here since I'm just starting, apologies if my questions begin to grate.

4 comments


ne on demonei - a demo released at Assembly Summer 2023 – and something of a sequel to snäkätor.

Placed 2nd in the Fantasy Console compo.

Uses the tiniest trifill function by p01 from the Trifill Thunderdome (again!). Minified with picotool.

Runs without problems with v0.2.5g. Might experience some slight flickering and stuttering issues at places if run on a browser.

Cart #ne_on_demonei-0 | 2023-08-06 | Code ▽ | Embed ▽ | No License
30

Here's a video capture:

30
6 comments


Cart #luketm_ricochet_0-0 | 2023-08-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

A twin-stick shooter about hitting robots together for combos. Keyboard highly recommended, requires a mouse. Made for Aardjam #4.

SFED to move
Left Click to fire taser
Right Click to swing bat
Middle Click to dash

1
0 comments


You wake up in a steel bunker, sweat dripping down your face in a futile attempt to cool you. As you heave the cast iron door open and stumble out into the sand, you realise that you are isolated. You are the only human out here.
You are alone.

Cart #alone22-0 | 2023-08-06 | Code ▽ | Embed ▽ | No License
1

This is a smol little game i'm working on, right now there's only a very very basic movement and camera system in place. Leave some feedback on what I should improve, and have fun (if that's possible at this stage)!

1
1 comment




Cart #draythalmologist-0 | 2023-08-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

Day 3 of 27 creating a game each day! This is another game for the A Single Bird's Tabernacle Kickstarter promotion.

Drayman's mom is making him go to the Ophthalmologist, but his eyesight is really bad! If Drayman loses his cool shades, he will go from cool to drool!

Do your best to prevent Drayman from sub coming to his biological weaknesses, or figure out a way to cheat the test to prevent Drayman from living a life of shame! Ace the test quickly, so that Drayman isn't stuck his whole life as a nerd-kid. :)

3
2 comments


Cart #bofukopiyu-1 | 2023-09-09 | Code ▽ | Embed ▽ | No License
3


The buggy things mentioned yesterday are fixed!

Former versions:

v0.2 ↓


Cart #bofukopiyu-0 | 2023-09-08 | Code ▽ | Embed ▽ | No License
3


Long time no see everyone!
Thanks to great advices, I finally made it work!
It's still a bit buggy, so I continue working.

v0.1 ↓


al1
by Ruva
Cart #al1-0 | 2023-08-06 | Code ▽ | Embed ▽ | No License
3

Hello everyone!
Nowadays I'm making endless running platformer with various patterns of maps.
But the maps won't collide, they are just drawn.
How should I do? Are there any solutions?

3
0 comments


Heyo people! I've been learning Pico 8 for a few weeks now, created a few little test games to learn the language, now I'm trying to start a game I intend to finish and polish - thought it might be useful to start interacting on the boards. I'm having some issues with the mathematics of this game I'm making.

Playing as a small turtle with a cactus on it's back, the main mode of interaction will be snatching other entities out of the air with rope-like tendrils that come from within the cactus. However, right now, I'm having a lot of difficulty trying to figure out why my tendrils are not lining up to the angle of the mouse's location (using mouse input). Sine, cosine, pi, all that stuff terrifies me, so if someone out there wouldn't mind taking a gander at the small amount of code I've written for this project so far, I'd appreciate any advice!

Thanks!

The I suspect the problem lies somewhere here...

function gettraj(mx,my)
	--get x/y distances
	local hdist=p.x-(mx+4)
	local	vdist=p.y-(my+4)

[ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=132778#p)
4 comments


Cart #msmazeguy-1 | 2023-08-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

Push crates onto buttons to open doors.
Enjoy ✌️

4
0 comments


Cart #negative_space-0 | 2023-08-05 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

Negative Space

Negative space is a series of (by default) black and white animations based on the same twirly setup. However the function parameters are randomized, so the exact outcome of each animation can be a surprise.
You can rerandomize the animation by pressing O/Z.
You can also randomize the colors by pressing X.
You can turn on the second hidden color via the pause menu.

If you see an animation you like, you can turn it into a GIF and post it here.
I also plan to add more types of animations in the future, so this cart might become an album of small, slightly randomized experiments.

[ Continue Reading.. ]

8
2 comments


Cart #ntofebow-0 | 2023-08-05 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
12

This is our second Pico8 demoscene release, Crash & Burn. Released at Assembly 2023.

code: zoi and blackis
gfx: havocplague
music: castor

12
2 comments


Cart #courtyard_2-12 | 2023-08-22 | Code ▽ | Embed ▽ | No License
6

Stand in the Courtyard and wait for something to happen! A game that changes each day. Another promotional video game for the A Single Bird's Tabernacle Kickstarter. Thanks for playing!

Day 15 Update:

Due to a matter of personal circumstance, "Courtyard" is being suspended from future updates.

I've really enjoyed getting to know all of you in the BBS, and look forward to more conversations and games with you guys. If you are still interested in doing so, be sure to support the Kickstarter (though it's looking like it might turn over).

[ Continue Reading.. ]

6
17 comments


Would you like to play the piano ... in PICO-8?

Cart #sample_piano-0 | 2023-08-05 | Code ▽ | Embed ▽ | No License
9

Well, I can't imagine why, but there you go. Use the tracker keys to play. It's polyphonic.

If you want to change the sample, you can convert a .WAV file to any of the QPA formats - and only the QPA formats - supported by this WIP tool: https://luchak.github.io/defy/ . Then drag and drop the resulting file on the running cart and play away. This will also save the new sample to the cart using cstore() so you can make new carts for new instruments! That URL has been updated with some format improvements, so it won't work here any more until I update these carts.

Usual caveats apply about PCM output not always working well on the web.

[ Continue Reading.. ]

9
2 comments


Cart #blob_command-3 | 2023-08-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
9

Match blobs together, create chain reactions and don't run out of time!

In this puzzle game, you guide a group of blobs with the goal of matching three or more of the same color. There are three kinds of blobs: green, red and yellow. While you do have control of their initial position, blobs move on their own in one direction, which depends on where they are facing. Clearing blobs decreases the timer and increases the completion meter by a certain amount - which depends on how many are cleared at the same time - and filling the latter levels you up. The game lets the player create combos - mainly through chain reactions - which increase the score. Have fun!

[ Continue Reading.. ]

9
1 comment


Cart #wojbee3-17 | 2024-03-15 | Code ▽ | Embed ▽ | No License
13

Introduction

The discord server has been infected by a new variant of the stupidity virus: not thinking before talking.

You, as the all powerful Woj... Bee(?) moderator, you shall save the world with your magical stings and obliterate them from existance with your ban hammer!
[16x8]

How to play

You can change the background by pressing UP

You can use the arrow keys to move your character around, X to shoot and Z or C to throw a ban hammer™ when the star™ meter is fully charged

Want a sprite?

You are probably here because you are from SwitchCraft or MCCM, and if so, you might be eligible for joining the game with a neat
[48x8]

[ Continue Reading.. ]

13
5 comments


Does anyone else find it surprising that with fillp() a set 1 bit draws the background color, and an unset 0 bit draws a pixel of the foreground color ? ... I appreciate it's a feature of P8 and also see why technically it may be necessary...
Just wondered what people think: are colors are inverted to convention...? 🤔

Do you invert the fill pattern or just swap the palette colors when rendering?

0 comments


Cart #only_up_and_down-0 | 2023-08-04 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

A part of promotion for my new Kickstarter, A Single Bird's Tabernacle. This one's more limited, but I hope you enjoy.

1
0 comments


Cart #ocean_demo1k-0 | 2023-08-04 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
10

Just a 1k_demo inspired by tweetcarts from @2darray and @GateEightyEight. Just for fun. :)

10
1 comment




Top    Load More Posts ->