Log In  

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

With circfill(), it's easily possible to draw circles everywhere, and even draw a circle with another circle cut out of it. But how would you draw the intersection of two circles, like the middle section on a venn diagram? I can't think of an easy way to do it. What I'm really looking for here is a way to shade arbitrary segments on an arbitrary venn diagram. Can anybody help?

6 comments


@zep

If we type "x = -6", the "-6" part requires two tokens, which I assume is because the version of Lua you use was still internally treating negative literals as positive literals with a unary-minus operation applied to them, e.g. "x = unm(6)".

However, using a negative literal in PICO-8 appears to have the same cycle cost as using a positive literal, as far as I can tell with my benchmarks. For instance, "x = y / -6" costs the same as "x = y / 6".

So basically we're being charged a token for an operation that doesn't actually seem to occur, and really shouldn't need to occur anyway.

Would it be possible to delete the token cost for unary-minus if it's being applied to a literal?

The alternative is that people in dire token straits will write "x = y / 0xfffa", which is just gross. :P

1
2 comments


Temporarily without a mouse, I notice that pico-8 ignores certain inputs from windows's mouse keys thing, where you can use the numpad to control the cursor. The default click button is NUM5, which doesn't get through. the system also uses NUM0 and NUM. for hold and release, to simulate click'n'drag, and those work fine, so you can still (clumsily!) draw pixels/stages.

Just thought I'd mention it; I understand this isnt exactly a priority thing to fix :)) but could I request a keyboard shortcut to add a code tab? I can't seem to find one and it's really the only reason I'd want to click anything in the code view. thanks!

2 comments


Cart #graphplotter-2 | 2020-04-03 | Code ▽ | Embed ▽ | No License
2

Graph Plotter

Been working on this for a while! Hope you enjoy!

This is my first pico-8 project so I'm open to critical feedback!

Version 1.1:

-Removed polynomial setting to make way for big update ;)
-Added ability to "stamp" current graph and then calculate the intersection of the two graphs (i.e. solve the simultaneous equations)
-Bug fixes

2
2 comments


Hello!

I'll be doing some visual effects coding and streaming it tomorrow on Twitch. That's Tuesday, March 24, 18:00 EET. This will actually be the first time I'm doing a show on Twitch, so hopefully everything goes well :)

Here's the link. See you there!

3
9 comments


Cart #wuwasogufi-0 | 2020-03-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5


Current world record is 4014 by @Ulexes . Can you beat it?

5
7 comments


Cart #candy_colt-2 | 2020-04-11 | Code ▽ | Embed ▽ | No License
2


Squidkidd and Greyskull9 present:
CandyColt Classic

We made this game for a PIGSquad (Portland Indie Game Squad) for a summer slow jam.
The Creative Theme was "Occult Classic".
So we made a game about a colt!

My all-time score=375! Post in the comments your best score!

Have Fun!

2
0 comments


Hi everybody!

So, for a jam I'm far too unskilled to have considered, I'm putting together a little game where up to four players can pilot tiny ships and defend a fort. The ships can move about, and (eventually) shoot in the direction of a target that can be rotated around the ship by holding a button. It looks like this in practice:

(Enemies and animations forthcoming.)

Right now, I am attempting to optimize the code, because the player inputs eat a LOT of tokens in their current form. I currently have four different sets of inputs, one for each player, and each also moves a target that is specified as its own object (target1 with .x and .y, target2 with .x and .y, etc.). This is obviously no good, given the immense redundancies.

I think one could probably code a generic input function by making each target a property of its ship, using something like this:

function input(p)
  if btn(0,p.c) then p.x=p.x-1 p.targetx=p.targetx-1         --repositions player and target

[ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=73758#p)
1 comment


Cart #australis-3 | 2020-03-25 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
58

A penguin themed mod of Celeste Classic where you climb the Antarctic. :)

58
30 comments


happy mother's day, clare!

Cart #mothersday2020-0 | 2020-03-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

0 comments


Cart #ladderlad-1 | 2020-03-21 | Code ▽ | Embed ▽ | No License
23

You are Ladder Lad!

Traverse the ever-moving maze of runged objects and meet your fruit quota.

Arrow Keys - Move Ladder Lad

X Key - Pop bubble if you are caught in one.

Hot Tip: You can jump to the other side of the screen by going all the way to the left or right.

23
4 comments


Cart #regolith_v024-0 | 2020-09-12 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
7

New version as of 9/12/2020 : Updated graphics, sound and movement controls.

Controls

Arrow keys move.
(x) to restart.

About

An asteroid mining roguelike.

You mine pink and yellow minerals for coins.
You mine blue water that is used as fuel for steam power.
You mine brown regolith for shielding against solar wind.

Moving to an asteroid starts the mining process.

The shield and fuel costs are designated as brown or blue numbers in the center map. When you cross the numbers, your shields and fuel are decreased that amount.

High brown numbers indicate intense solar wind. High blue numbers indicate distant asteroids.

Any feedback is appreciated.

[ Continue Reading.. ]

7
5 comments


Hi,

I'm iterating over all map cells multiple times, to do various actions:

for t_x = 0, 127 do
	for t_y = 0, 63 do
		-- scan tiles
	end
end

for t_x = 0, 127 do
	for t_y = 0, 63 do
		-- do something
	end
end

for t_x = 0, 127 do
	for t_y = 0, 63 do
		-- place tiles
	end
end

This works, but uses a lot of tokens (do something is actually 4-5 different actions).

As there are a lot of interdependencies between cells, I can not do this:

for t_x = 0, 127 do
	for t_y = 0, 63 do
		-- scan tiles
		-- do something
		-- place tiles
	end
end

Instead, I wanted to do this:

functions = {
	scan_tiles(t_x, t_y),
	do_something(t_x, t_y),
	place_tiles(t_x, t_y),
}

for f in all (functions) do
	for t_x = 0, 127 do
		for t_y = 0, 63 do
			f(t_x, t_y)
		end
	end
end

But I never get the arguments passed to the functions I call.

How to go about this?

All help very much appreciated!

2 comments


Cart #dokepyzi-0 | 2020-03-20 | Code ▽ | Embed ▽ | No License
12

12
2 comments


I'm having an issue where it seems like I absolutely cannot pass an argument to a function, no matter what I do.

For starters, I am using doc_robs' famous hitbox function:

  function player_hit(x1,y1,w1,h1,
                      x2,y2,w2,h2)
   local hit=false
   local xs=w1/2+w2/2
   local ys=h1/2+h2/2
   local xd=abs((x1+(w1/2))-(x2+(w2/2)))
   local yd=abs((y1+(h1/2))-(y2+(h2/2)))
   if xd<xs and yd<ys then
    hit=true
   end
   return hit
  end

So far, so good, right? Then I pass the following arguments along to it from another function:

  if player_hit(p1.x,p1.y,pw,ph,star1.x,star1.y,sw,sh) then
  --stuff happens in here
  end

All of the values in the preceding if statement are defined at _init(). The values pw, ph, sw, and sh are all 2, defined as global variables. The p1 and star1 values come from tables.

But every time I run my program, this error occurs:

[ Continue Reading.. ]

1 comment


Cart #miscom-1 | 2020-03-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

A kind of Missile Command.

3
6 comments


If you grew up with the NES, you remember that their basslines had a certain "snappiness" to them (for lack of a better word). Here are two of my favorite examples:

DAT BASS!

Anyway, I've been trying to mimic that type of bass as closely as I can in my PICO-8 carts, but I haven't quite hit the mark yet.

Does anyone have instrument/effect suggestions for achieving this kind of sound?

3
4 comments


You're gathering some cherry blossoms to make tea when oh no — the wind is blowing all the petals away! Use your fan to help guide as many petals as you can into your basket within 60 seconds.

Flower March is a short relaxing experience made for the Harvest Mouse Jam. It's our first PICO-8 game and was a lot of fun to make!

Programming by lambdaloop. Art and music by kcaze.

Music is "Rondo Alla Turca" by Mozart.

Cart #flowermarch2020-0 | 2020-03-19 | Code ▽ | Embed ▽ | No License
3

3
2 comments


Cart #shifttrap-0 | 2020-03-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
105

After a freak laboratory accident, ninja-in-training Nina finds herself trapped in an alternate dimension where the walls shift each time she jumps. Now she must collect the scattered gears to fix this shattered world and escape! But with 32 challenging stages to outwit, that will be no easy task...

hey all!! sol here. it's been a while since my last game, but I haven't been resting on my laurels. this time around, I've made a puzzle-platformer with a focus on fast gameplay and a novel mechanic-- each time you press the jump button, the walls will shift between the foreground and background! you can also cling to walls and jump off of them to reach greater heights. I've built a lot of really tricky puzzles around this, so I hope y'all enjoy!

[ Continue Reading.. ]

105
33 comments


I think it's too late to suggest this, since you appear to have completely filled the printable characters with the kana glyphs, but just in case there's something to spare somewhere:

I just used one of the unicode thumb glyphs (👎,👍) and realized it'd be handy to have such glyphs in the PICO-8 character set.

I drew up some possible 7x5 PICO-8 glyphs for them:

You could type them with -/+ in glyph mode.

Even if they can't be fit into PICO-8 itself, the thumb-up might be good for the BBS, because I think a lot of people don't realize that's what the ★ glyph on BBS posts is for, given how seldom it seems to be used.

(I guess it's not a big deal if this isn't possible, though, since we can obviously just draw them manually.)

2
0 comments




Top    Load More Posts ->