Log In  
[back to top]


Cart #48231 | 2018-01-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
9


This is an alternate method of doing tile animations. This method uses only a single tile per animation, making it easier to pack in a lot of animated tiles into a single tile. It's not the best way of doing this. It's just a way of doing this. :)

Basically it just cycles through the colors in the tile according to the order you want them to appear, and changes them to a new color, also set by you in the code. The upshot is you can fit entire simple animations into a single tile.

(BTW, I'm not claiming credit for this method... it's one of those things that I'm sure a thousand devs before me have figured out before, and probably 10x more efficient ways than I cranked out tonight.) :D

9
5 comments



Cart #47307 | 2017-12-12 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

UPDATE - 12/11: Made a lot of changes to this to clean it up, make it more reliable for edge cases, add pickups, portals, and more. I'll be tweaking it more as I go, but this is so anyone watching the livestream can follow along.

I made this code during a livestream at the end of a long day, so it probably has a lot of holes. :D But feel free to poke through it and see if it's useful to you. I'll be updating it to improve and will post improvements as it comes along. There's lots that can be added, improved on, cleaned up, etc. This is just so people from the livestream can have something to play with.

5
0 comments



I've been working on a PICO-8 zine over the past few months as part of a gamedev workshop series I'm doing with PIGSquad. (You may remember my call for art to include in the zine.)

I'm happy to announce that it's now released! We did a run of printed copies for attendees of the workshop, but I've released the PDF version on itch.io for anyone who wants to use it. You can get it from here:

https://mboffin.itch.io/gamedev-with-pico-8-issue1

I'll be doing a second printing via Kickstarter soon. Not as a money-making thing, but rather just a chance for anyone who couldn't make it to the workshop to get a printed copy (or copies).

Anything in the zine with code has an accompanying cart included in the sample code download for the zine. Over the next couple of weeks, I'll be walking through the examples and tutorials from the zine on the livestream I do on PIGSquad's Twitch channel every Tuesday at 6pm PST. These livestreams are saved in PIGSquad's video on demand archive, so people can watch later if they'd like.

[ Continue Reading.. ]

16
6 comments




This was a blast to make! I had one hour, from 2am to 2am when the daylight savings time change occurred. I managed to make the game in just under an hour. (I had, I think, 30 seconds left!)

The goal is to pick up all the orbs on the map in the time allotted. I'll be adding to this game from here, but it's a game! It has a win condition and lose condition.

Enjoy!

4
0 comments



Cart #45512 | 2017-10-27 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5


Yay! Been waiting for 0.1.11 to post this! This is a goofy, fun cartridge in response to a retweet by a friend about the oldest music ever found (3,400 years old). A researcher translated the Sumerian text into our present-day musical scale, so I figured, "Hey, let's throw this in PICO-8 and see how it sounds!" :D

I figured out how to make a not-too-crappy drum beat to go along with it (thanks to @Gruber's awesome PICO-8 music tutorials) and then whipped up some goofy Sumerian-style pixel art. Enjoy!

5
1 comment



Hello, everyone! I'm making a zine for an upcoming PICO-8 workshop I'm doing with Portland Indie Game Squad (PIGSquad). It's a fairly large zine (72 pages) and I have a few open pages where I wanted to include screenshots and art from some of the amazing things you all have created.

Do you have something you'd like to contribute?

If so, feel free to either post it as a reply on this thread, reply to this post on Twitter, or DM it to me on Twitter. (I have open DMs, so no need to follow me to DM me.)

The zine will printed in color for all workshop attendees, but will also be available on itch.io in PDF form once it is completed. (After the workshop, I may do a second printing at-cost via Kickstarter if there's enough interest from the community.)

Thanks in advance. The work you all do in PICO-8 is so incredibly inspiring to me, so I'd love to include some of it in this zine and inspire others who read it.

13
20 comments



Cart #43370 | 2017-08-18 | Code ▽ | Embed ▽ | No License
11

Cart #43371 | 2017-08-18 | Code ▽ | Embed ▽ | No License
11

This is just a demo of some code to allow walking in tile-sized increments. The hook is that after player input, the player keeps walking until they reach the next tile.

In the first example, the walking tiles are 8x8, though the world is drawn with 16x16 tiles. The hitbox of the player is also only his lower half. This allows the player to be "in front" of things. Walk up to the bottom side of a boulder and walk left and right to see what I mean.

In the second example, the walking tiles are 16x16. The hitbox of the player is also 16x16, meaning the player can only occupy a single 16x16 tile, and can never be "in front" of other tiles.

11
8 comments



Cart #42526 | 2017-07-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
15

I got a lot of comments about my smooth camera transitions in a recent WIP that I posted. I thought I'd just go ahead and share how I did it with a code sample cart. I'm posting the important function below, but feel free to look at the cart's code to see how it's implemented. I'm not a wizard, and I know it could probably be simplified somehow, so feel free to use and improve as you see fit. If you do improve it, let me know here so I can update the code for others to see!

function smooth_cam(spd)
 cam_x+=(flr(p.x/128)*128-cam_x)*spd
 cam_y+=(flr(p.y/128)*128-cam_y)*spd
 if (abs(cam_x-flr(p.x/128)*128)<0.5) cam_x=flr(p.x/128)*128
 if (abs(cam_y-flr(p.y/128)*128)<0.5) cam_y=flr(p.y/128)*128
 camera(cam_x,cam_y)
end

[ Continue Reading.. ]

15
2 comments



Cart #42293 | 2017-07-09 | Code ▽ | Embed ▽ | No License
23


This was fun to make. I added a bunch of juicy stuff I usually do in Unity just for fun. The code is heavily commented and more verbose than it necessarily needs to be, because I wanted to make it easy to pull apart for people less familiar with making stuff in PICO-8. I'll keep adding stuff over time, but figured I'd release it as it is so far.

My highest score so far is 232. What's yours?

UPDATE: Added a possibility of slimes dropping a heart if you blow them up.

23
4 comments



Cart #42222 | 2017-07-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
25


NOTE: There's nothing to "play" in this cart! It's all in the cart's code!

I remember reading a thread a while back about the idea of having the manual for PICO-8 available in the console itself, maybe in cart form. I plan on getting a PocketC.H.I.P. and I really want to have the whole API reference available to me right from inside PICO-8. So I decided to just put it all in a cart to always have a reference with me.

I made a lot of use of Neko250's awesome API cheatsheet, which is why he's credited as well as zep. I'm sure there are probably typos to correct and maybe an error here and there, so let me know if you see anything needing fixing. I'll try to keep it up to date. In the meantime, feel free to use it yourself.

25
2 comments



Cart #42192 | 2017-07-05 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
7


Just a fun thing I made this afternoon. Happy 4th!

(And to everyone outside the US, I hope you had a great day too.) :D

7
0 comments



These are variations of the rnd() function, but these return integers. You can either give just a maximum value or an arbitrary minimum and maximum value. You can also choose whether you want the maximum value to be exclusive or inclusive.

--random int between 0,h
function rand(h) --exclusive
	return flr(rnd(h))
end
function randi(h) --inclusive
	return flr(rnd(h+1))
end

--random int between l,h
function randb(l,h) --exclusive
	return flr(rnd(h-l))+l
end
function randbi(l,h) --inclusive
	return flr(rnd(h+1-l))+l
end
12
7 comments



Cart #41102 | 2017-05-29 | Code ▽ | Embed ▽ | No License
4

This is a simple cave game I'm making as part of some curriculum to teach kids how to make games in PICO-8. This would not be their first introduction to PICO-8. This would be after they have learned some other basic concepts. Feedback is welcome. :)

What's your high score?

4
2 comments