This is an example of how to do enemies that somewhat follow and try to seek the player.
It works like this:
This example also features:
Is there a way to export a cartridge's label image? I'm working on a mod of a cartridge and I wanted to make some small tweaks to the cart's label image.
Arrows to move, Z to confirm, Enter for menu.
Don't crash into turtles and avoid starfish and sea urchins!
Collect hearts for extra lives!
To score points, stay behind turtles for as long as you can, but don't forget to dodge them at the last moment!
The score multiplier decreases if you are too far away from the next turtle. Keep the multiplier high to score more points!
Are you fast enough to keep up?
You don't need to hold the arrow keys. Just tap the direction of the lane you want to switch to and you'll be moved there automatically.
If your fingers are fast enough, it is possible to stay in the space between lanes for a short while. That will help you avoid seemingly impossible obstacles:
You can often squeeze through very tight gaps. Take note of the size of the character's hitboxes:
In the first stages of the game, a heart spawns whenever you get 1000 points. Don't forget to collect these extra lives, as their spawn rate decreases in the later stages.
I made this game by myself during July 2022. What inspired me was @Krystman Shmup tutorials on the Lazy Devs YouTube channel (https://www.youtube.com/c/LazyDevs), especially when he demonstrated how to create a parallax scrolling star field. You can see that I implemented that sort of thing with the bubbles in this game. I ended up not making a Shmup, though, but I think I'll try it out someday in the future.
The main song of the game is a rendition of Misirlou, a folk song from Eastern Mediterranean countries. I wanted it to sound more like Dick Dale's arrangement of it, which is quintessentially surf rock, but I don't think I've succeeded in capturing that impression. The song is still catchy, though, but some people may feel like it doesn't really fit a marine setting.
Thank you so much for playing! I made this game for the fun of it, but consider making a donation if you enjoyed this little toy I've put together for you: https://ko-fi.com/profpatonildo70266
This game is released under CC BY-NC-SA 4.0. Here's a link to a summary of the license: https://creativecommons.org/licenses/by-nc-sa/4.0/
In TIC-80, you can type on the command prompt "help" followed by the name of any built in function and the console will then output a short explanation about how to use that function. It would be nice to have something like this in Pico-8 as well. For example, you type in the command prompt:
and then Pico-8 outputs a short explanation of how spr works, followed by the parameters it takes.
I release this under the CC0 1.0 license: https://creativecommons.org/publicdomain/zero/1.0/
This a simple collision system I wrote for fun. It can handle hit boxes with varying sizes and with different amounts of reference/sample points. It can handle collisions using tiles or used x/y positions from objects.
Also, in this example there's code for an 8 way movement system with acceleration and sliding along walls.
The code is VERY commented, so you can follow along and see what each part of it is doing/why it's there.
Feel free to use this in any sort of project.
If this was useful to you, consider buying me a coffee: https://ko-fi.com/profpatonildo70266
I'm running the Linux version of Pico-8
The load command works with some carts but doesn't work with others. The only output from the pico-8 console is "could not load". If I launch splore, then I can launch all carts from splore.
I just recently reinstalled my system and the problem started after that.
Simple input system, to manage key/button presses.
Registers pressed and release buttons.
Horizontal axis, vertical axis, O and X buttons are all independent of each other.
The code is commented, so you can follow along what it is doing (and possibly improve it, if you wish).
As is, it is good enough and does the job, but I wouldn't be surprised if there is a more efficient way of doing this.
Working in Pico-8 is pure delight. I think it would be even nicer if we had the option to set Pico-8 to play a brief sound analogous to a floppy disk drive when loading a program/cart.
Completely superfluous, but I would be very glad to have this option built in (even if it weren't the default and I had to enable it through a config file or menu).
What do you think?
Just a simple vignette fade effect (like on loony tunes cartoons, that circular fade in/out).
Use X to open the vignette, Z to close it.
Arrow keys move the smiley face.
Can also be used to create a fake flashlight effect.
The code is very simple and commented, so it can be easily modified/repurposed.
The vignette works with a sprite that you can customize (to create other shapes).
Mine uses 4 sprite slots on the sprite sheet, but you could easily make it work with only one if you really need to save sprites. Just remember to also customize the draw_vignette function to make it work with different sized sprites.
Now, the best game of all time is also on Pico-8!
Jokes aside, this is just a simple cover of the Big Chungus Main Theme, by Endigo.
Feel free to use it if you make a real Big Chungus game!
One of my favorite songs from the Team Fortress 2 OST.
Original by Mike Morasky
"It's a gory version of the Mario Paint game with a chill sound track. Very hip."
u/TheRedBeed from r/pico8
Smash bugs with Z, move with arrow keys.
To start the game, smash the bug!
Player 2 can join and play at anytime. The game gets slightly more unforgiving with a second player, to compensate.
You can hold down the buttons to move faster and to smash repeatedly or you can tap them to be more precise.
Smashing multiple bugs in a streak without missing gives you bonus points, but it takes more time.
Be it button mashing or attacking with precision, get rid of all the bugs!
Coins give you some points.
Clocks give you some points and more time.
Ice gives you some points and freezes the bugs for a short while, making them easier to smash.
Time caps at 30 seconds with a single player, to have that in mind when collecting clocks.
After each wave is completed, you get a bit more time.
How long can you last and how many bugs can you smash?
This was my first Pico-8 game and it was a lot of fun to make it, I hope you enjoy it as well :)
This is just a music cart I made to learn the music editor. It was very interesting to learn how the music editor works. Now, I want to get better at this and make more music covers in the future.
I was looking for examples of text boxes like these and only found complex and robust examples. They are excellent! But I thought it would be useful to have a simpler more "noob friendly" system.
The code is very commented, so anyone should be able to follow along and understand what it is doing. Also, this system is very simple but versatile. It can easily be expanded or customized if you know what you are doing.