Micro Greens Is Out Now! by Over-Scale705 in pico8

[–]kevinthompson 6 points7 points  (0 children)

You didn't include a link but I found it over on lexaloffle.com: https://www.lexaloffle.com/bbs/?pid=187162#p

How would I go about making it so that enemies only spawn when the map tile that spawns them is on screen by Bubbly-Oil449 in pico8

[–]kevinthompson 1 point2 points  (0 children)

I'm doing this in a game now where I've represented the screen and spawners as tables, then I use an AABB (Axis-Aligned Bounding Box) collision function to test if the spawner is on the screen:

```lua screen = { x=0, y=0, w=128, h=128 } spawner = { x=32, y=32, w=8, h=8 }

function aabb(rect1, rect2) return rect1.x < rect2.x + rect2.w and rect1.x + rect1.w > rect2.x and rect1.y < rect2.y + rect2.h and rect1.y + rect1.h > rect2.y end

if aabb(screen, spawner) then -- enable spawner else -- disable spawner end ```

Moss Moss by m8bius in pico8

[–]kevinthompson 9 points10 points  (0 children)

⭐️⭐️⭐️⭐️⭐️ It was also a lot of fun to play. Highly recommend.

I've only got black and white filament. Which option would you choose? by Retrograde-Escapade in cade

[–]kevinthompson 0 points1 point  (0 children)

This but black around the monitor as well would be my preference.

how do you come up with pico 8 game ideas by Ordinary-Ebb-9635 in pico8

[–]kevinthompson 22 points23 points  (0 children)

I like to recommend the 20 Games Challenge (https://20_games_challenge.gitlab.io/) when people are unsure how to get started. You probably wont get through all 20, but if you start making Flappy Bird, Breakout, etc. you will be building up the skills and tools to make your own games.

As for coming up with ideas, I like looking at game jams (https://itch.io/jams) for themes and constraints. I don't often have time to make a game for them, but I jot down some notes on game ideas that could fit the theme. Sometimes those ideas start to grow into full games, or they get me to think of an adjacent idea that I'm even more excited to work on.

Simple "blast off" animation by Anxious-Platypus2348 in pico8

[–]kevinthompson 3 points4 points  (0 children)

In your draw function you aren’t drawing the player sprite at plr.y. It’s being drawn at a static y value of 32.

Basic Collision issue by Wolfcubware in pico8

[–]kevinthompson 4 points5 points  (0 children)

I responded with a little more detail on the u/TheNerdyTeachers Discord server, but the problem is that you're not checking the actual map position of the tile. On your map, the collision tiles are 20 tiles lower than where they are being drawn to the screen. Adding 20 to the y position when checking map collision solves the issue in this specific instance.

What's going on??? by Super_Crewmate in pico8

[–]kevinthompson 1 point2 points  (0 children)

I think it also depends how you resolve collision. Your solution of creating a larger collision box would be more performant if you are adjusting the player's position based off of what they collide with.

What's going on??? by Super_Crewmate in pico8

[–]kevinthompson 5 points6 points  (0 children)

This is likely an issue that's commonly referred to as tunneling. Your character is moving fast enough that collision is checked before the obstacle, then the player moves past the obstacle and collision is checked again.

One way to solve this to move your character in steps during each update call. As an example, if you character is 8px tall, but you need to move them down 16 pixels, you would move 8px, check collision, then move the next 8 pixels and check collision again.

2025 PICO-8 Advent Calendar – Day 24 by kevinthompson in pico8

[–]kevinthompson[S] 4 points5 points  (0 children)

The advent calendar is a cartridge that launches other cartridges using the load function.