This is a simple example on how circle collision works.
All you need from this cartridge is the function:
function circ_col(c1, c2) local dx = c1.pos.x - c2.pos.x local dy = c1.pos.y - c2.pos.y local distance = sqrt(dx*dx + dy*dy) return distance <= (c1.r + c2.r) end |
If you want to check if two circles are colliding, you simply pass them as parameters c1 and c2 see an example bellow:
c1 = { pos={x=64,y=64}, r = 4 --size the radius would have to be for a 8x8 sprite } c2 = { pos={x=70,y=70}, r = 8 --size the radius would have to be for a 8x8 sprite } collides = false function _update() collides = circ_col(c1, c2) end function _draw() cls() if collides then print("colliding",4,4,11) end --draw the circles here - mind you in most projects you woudn't, usually you would have them invisible and have them --at the same position (or slightly offsetted) as your player --i would recommend drawing them anyway at the start to see that the are always where they are supposed to be circ(c1.pos.x,c2.pos.y,c1.r,11) circ(c2.pos.x,c2.pos.y,c2.r,8) end function circ_col(c1, c2) local dx = c1.pos.x - c2.pos.x local dy = c1.pos.y - c2.pos.y local distance = sqrt(dx*dx + dy*dy) return distance <= (c1.r + c2.r) end |



Poochie Survivors!
Can you survive to 11:00 minutes in the new 'Help me Balance' update?
- 4 new Poochies
- 2 new weapons
- 2 new items
- Old weapons have been buffed (maybe too much?)
- Fetch Stick now targets enemies
- New results screen
- Stuff to do at home
- Make the clock faster
- Faster performance
- Bangin' music
- 1 secret character
- Take a snooze
- Bark for fun!
I'd love some feedback on how easy or difficult you think it is. Balancing the attack powers and enemies has been quite the challenge. <3






.jpg)



A small little game made for fun. Originally a collaboration project with a beginner coder friend who quickly lost interest. Feel free to add critique although please understand this wasn't intended to be particularly good.
controls:
Press O (z) to jump
Press X (x) to eat
Instructions:
A timer is ticking down. Quickly choose whether you will jump over the incoming obstacles or attempt to eat them. Eating a spike will give you a "GAME OVER", but eating a fruit will increase your speed and grant you additional time to extend your streak. Go for the highest score you can before time runs out! (my record is 8100 if you want to try and beat it)

When I click Code below any cart on the BBS, the block is just empty and contains no code. Not sure if this is related to the recent styling change. I can't say for sure when this started, but I just noticed it today for the first time.
In case it's browser specific, I'm on Firefox 124.0.1 on Linux.









Obviously I can only speak for myself, but I have to say I don't like the site's font having been changed to be universally monospaced. I really hope this was just a CSS accident. 😕
@zep - Was this intentional?






1k Defender
1k Defender is a little shmup made with 957 compressed bytes inside PICO-8!
This project was born from a failed submission to 1k jam 2022 and continuing it for the 2023 edition. Since I didn't felt it was eligible for the jam, I never uploaded it to it. A while ago I remembered it, so I spiced it up with a label and some sfx, but only those so it is a tad more enjoyable to play. We got a gameplay loop as well!
You can also check it out the raw one on GistHub:
https://gist.github.com/Achie72/076859ce7fe17335fdb49ca7790d427b
Gameplay:
Shoot the invading forces down to protect your planet. You need to restock on bullets from time to time in the depot (the up icon on the bottom left)




Thanks to Georgii Podshibikhin for music https://www.instagram.com/generalegovelich/?hl=en
Thanks to Yewbi for assets from https://unbent.itch.io/yewbi-playing-card-set-1
Changelog:
v6 (2024-08-10)
- add music, thanks Georgii Podshibikhin
- fix working with fake08 (should now work on myioo mini, fallback to pico8 0.2.5g)
v5 (2024-06-05)
- add deck pay2win (starts in shop with everything, $42 money)
- add abandoned deck
- add glass deck
- add cards to shop
- add neptune planet
- add glass cards
- add five of kind
- add captions to cards on hover
v4 (2024-06-05)
- add jokers (info screen second screen)










Nereus
A procedurally generated vertical pixel platformer set in the depths of the ocean. Play as a deep sea diver ascending through treacherous environments, collecting as much gold as possible while you climb.
How to Play



Powerups
Collect and use special powerups.

Scoring

The game will keep your highest score even if you close the browser.





When I tried to use the flag for exporting when calling pico8 from the command line :
pico8 usas.p8 -export usas.p8.html
I get ths error message
"please capture a label first"
Is it possible to export an image from the command line, it works if I press f7 in pico8, make a capture and manually export. But I would like to script this and export the html headless.
Second question, is it possible to use another HTML template or alter the default one, so I could add initial javascript ?


