i'm prepared for explanations that may contain math.
i have been working on this for too long over many attempts. it kinda works but there are definitely still issues.
i'm having problems with...
- normal calculations being off only some of the time
- when a shape returns to it's normal size, another the shape it collided with previously will get stuck inside
- shapes hovering 1 pixel over the ground???
- shapes are very bouncy
- shapes will not stay on other shapes (line segments can't collide with singular points)
- jiggle (i'll implement damping later on.)
- and cpu (not a priority yet, AABB tree later)
there are some comments that will hopefully help you find the issues in constrain()
and shape_collision()
im tryin to make a platformer base to use for future projects, but when travelling in positive directions, the collision is seemingly not detected until a full pixel further than it should be
local xd=n.x+n.speed.x+n.w/2*sgn(n.speed.x) local yd=n.y+n.speed.y+n.h/2*sgn(n.speed.y) n.grounded=false n.walled=false if fget(mget(xd\8,(n.y+n.h/2)\8))==1 or fget(mget(xd\8,(n.y-n.h/2)\8))==1 then n.x=xd\8*8+(n.speed.x>0 and -1-n.w/2 or 8+n.w/2) n.walled=true n.speed.x=0 end if fget(mget((n.x+n.w\2)\8,yd\8))==1 or fget(mget((n.x-n.w\2)\8,yd\8))==1 then n.y=yd\8*8+(n.speed.y>0 and -1-n.h/2 or 8+n.h/2) n.grounded=true n.speed.y=0 end n.x+=n.speed.x n.y+=n.speed.y |
negative velocity position readings(continuously accelerating by -0.005 pixels/second/second)
INFO: y=10
INFO: y=10
INFO: y=10
INFO: y=10
INFO: y=10
positive velocity position readings(continuously accelerating by 0.005 pixels/second/second)
Hi all,
I decided to create my own take on the PICO-8 Cheet Sheet. 👨💻🖼️
Inspired by @LightBWK's version - I wanted to try to make a 4K one using a clean, modern look.
Light Version
It was also important to me to have a matching "Dark Mode" variant, as that's my go-to style 🕶️
Dark Version
Main Features
- 🖥️ 4K (3840x2160) Resolution
- 🔠 Clear, Monospaced JetBrains Mono Font
- 🔷 PICO-8 API up to v0.2.5g
- 🎨 Full PICO-8 Palette (inc. "Secret" cols)
- 🦓 Matching "Light" and "Dark" variants
- ⌨️ All Major PICO-8 Keyboard Shortcuts
- 🖌 FILLP() Mask + Glyph Patterns
- 🔄 Turn-Based Angle + Trigonometry Primer
- 🈂️ Full Character Set
Demo inspired by tweetcarts from @2darray and @gateeightyeight. 945 bytes
my personal oceanquaryum under the sea and under the bridge. for fun : https://www.youtube.com/watch?v=iXkaGt94Dwg
Picoblazer 1K: A #pico-8 homage to the epic 1986 Trailblazer for Commodore 64, in 1017 bytes of compressed lua code. Produced for the 2023 #pico1k jam.
Use the left and arrow keys to direct the ball to the end of the track, while avoiding pits. Red tiles will bounce the ball back while green ones will speed it up. Blue tiles will cause it to leap forward.
I recently finished a game for the Cre8 Jam. You control a robot through commands to move through and scan a 3d environment. I would have added a bit more or fixed it up better, but I'm about out of time for the jam and really low on tokens. Even after using special functions to lower the token count.
You can get more information through the HELP
command, but the main commands are:
MOVE (direction) (amount) TURN (left/right) (amount) WAVE SWITCH [name] SCAN (dot size) |
And another important one is RSCAN
, which is just SCAN
, but repeatedly scans.
I would highly recommend checking out the itch.io page, as its design is special for this game.
One button tiny physic-based platformer made in Pico 8 with code under 1024 compressed bytes, made for #Pico1k jam 2023
Use RIGHT ARROW to accelerate when on the ground
Release RIGHT ARROW to fall faster when in the air
Press UP ARROW to start a new level
Press ENTER and select SEED in the menu to start from level 1 if you want a fixed series of levels
Number on top left is a timer for your run of the level, counted in frames (at 60fps), on top right is the sum for all the levels in your session. For example a casual run of all the seeded levels from 1 to 10 took me 14027 frames. My PB for level 1 is 1071.
Source as p8 are available on https://nusan.itch.io/smooth-ride in two versions, the "comment" version is what I coded with additional comments, so it's readable but the "minimal" version uses a tool (https://thisismypassport.github.io/shrinko8/) to makes it even tinier, it's not readable but it fits into the 1k compressed bytes target
Little Boo Games
Bram’s Daydreams
Goblins have stolen the marshmallow skulls from candy lake! You must find them!
(This is the 4th level from a 4 part children's series called 'Bram's Daydreams'.)
Level 4 / Goblin Boneyard
Collect the marshmallow skulls and watch out for goblins!
Controls: left, up, right, down
Little Boo Games
Bram’s Daydreams
Goblins have stolen the marshmallow skulls from candy lake! You must find them!
(This is the 3rd level from a 4 part children's series called 'Bram's Daydreams'.)
Level 3 / Jack-O-Lantern Patch
Goblins are attacking! Throw rocks at them!
Controls: left, right, z=throw
Little Boo Games
Bram’s Daydreams
Goblins have stolen the marshmallow skulls from candy lake! You must find them!
(This is the 2nd level from a 4 part children's series called 'Bram's Daydreams'.)
Level 2 / Magic Storm
Watch out for falling jack-o-lanterns in the magic storm!
Controls: left, right, z=jump (freezes enemy)
Hello - and greetings from the Dimaverse! This game has been released for quite some time now, but we haven't posted on the BBS yet. So here it is!
Blast your way through 13 challenging waves in an effort to stop the Blurg from taking over Galaxius. At the end, you'll find the pinnacle of Blurg tech: the Mothership. Destroy it and retake Galaxius... until we make a sequel. Sorry.
Sarcastic™ Feature List
- Hard gameplay that is only fun sometimes
- 13 waves that look cool but are hard
- Easy to learn yet infuriatingly hard to master
- Slightly non-intuitive Pulse mechanic
- High score saves... but only in the tab :(
- Training mode for all the noobs out there
Why Robovac?
I have been programming with Pico 8 for some time now and have created a few games, but they are not finished yet. By chance I stumbled across the Cre8 game jam a few weeks ago and thought, why not? I have never participated in a game jam before and hoped that this would give me enough pressure to finish a game.
But first I had to wait a bit to see what the game jam would be about. ROBOTS! Okay, my first thoughts were about the numerous titles of my childhood on the C64: Robocop, Terminator 2, Paradroid. But then I saw our Roomba standing in the corner. Bravely, it always does its job without being appreciated. Well, here is the game in his honour.
Little Boo Games
Bram’s Daydreams
Goblins have stolen the marshmallow skulls from candy lake! You must find them!
(This is the 1st level from a 4 part children's series called 'Bram's Daydreams'.)
Level 1 / Sugar High
Make a soft landing in Candy Lake to get some more energy-but watch out for bats!
Controls: left, up, right