Log In  
BBS > Lexaloffle Community Superblog
This is a combined feed of all Lexaloffle user blogs. For Lexaloffle-related news, see @zep's blog.

All | Following | PICO-8 | Voxatron | General :: [Thread List]

Cart #sedazufafu-0 | 2019-12-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

plz play game haha

P#70765 2019-12-09 12:06

Cart #gradienteditor-1 | 2019-12-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Inspired by Palette-Maker. This is a tool to create dithered 32-colour gradients. Mainly for my own use with my 3D lighting system, but I figured maybe someone else will find this useful.

The interface currently technically allows you to use more than 16 different colors, but of course, PICO-8 can't actually render that. I could fix that, but the simplest fix is that you just don't do that :)

Exports the gradient steps (on a scale of 0-127) and colors into the clipboard as Lua tables, without braces, like this:


Of course, this doesn't work on the browser, so run locally. You can use my code to render the gradient, or write your own. dw817 has written an excellent tutorial on how to implement dithering.

How to use:

up and down: select gradient step
left and right: select color for current gradient step
x: copy gradient steps and colors to clipboard (does not work in browser version)
z: lock gradient step for further functions

when locked:
up and down: move gradient step
z: unlock gradient step
x: go into add/delete mode

when in add/delete mode:
z: add step after current step
x: delete current step

P#70762 2019-12-09 12:01 ( Edited 2019-12-09 12:31)

Cart #heyizoteda-0 | 2019-12-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

P#70758 2019-12-09 10:57

Cart #platformer_wip-0 | 2019-12-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

A simple platformer game made by looking at tutorials and adding a ton of stuff myself. Feel free to use anything that you find interesting if it adds anything to your own game, and keep in mind this is just a short game with a single level.

P#70757 2019-12-09 09:25

Cart #nutodjza-0 | 2019-12-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

P#70756 2019-12-09 09:18

Thought I would share some code I've been using for my pico-8 game. It's a simple class library that also includes inheritance.
139 Tokens
617 Characters without comments

How to Use:
Create a new instance with function "new".
The first variable is always the table that holds all the variables, 2nd and onwards are used for the function "__init('table','...')"


Variables are copied over just fine, however for tables if you don't want each instance to share the exact same table with each other then I would recommend defining them in the function "__init('table','...')".

--do this
function newclass:__init(varc,vard)

--if you don't do that then

When creating a class, you can inherit from other classes upon it's creation by simply including classes after the first argument.


You can also inherit from other classes by running function "inherit('...')".

Classes have an "init" function that is run every time a new instance is created.
Classes that have been inherited from will NOT run their function "
init('...')" upon creation of a new instance.

Function "oftype('class')" allows you to check each if one class is of the type of another.
Classes that have been inherited will also return true for function "oftype('class')".

Finally I present the code:

--Classes With Inheritance!

function cwi:__init(...)
  if #{...}>0 then self:inherit(...) end
  self.__init=function() end             --create an empty function so all classes function "__init" doesn't inherit

function cwi:new(r,...)
  r=r or {}
  if r.__init then r:__init(...) end
  return r

function cwi:inherit(...)
  local function c(a,b)
    for k,l in pairs(b) do
      if not a[k] then a[k]=l end
  for l in all({...}) do
    c(self,l)       --copy variables over to class
    c(self.__types,l.__types)     --copy inheritance types over to class so that it knows it has inherited from more than class l

function cwi:oftype(s)
  if self==s or getmetatable(self)==s or self.__types[s] then return true end
  return false

Let me know if this code helped out, if there's anything else I can improve upon it, or whatever else you may feel like saying.

P#70752 2019-12-09 05:55 ( Edited 2019-12-09 06:11)

Cart #starswing-0 | 2019-12-09 | Code ▽ | Embed ▽ | No License

Do you see what I see?

Click your mouse to swing the Christmas Star into its rightful place in the sky.

Day 9 for the PICO-8 Advent Calendar, 2019

P#70742 2019-12-09 05:11

Cart #cos_sin_visualisation-2 | 2019-12-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Credits to @MBoffin for inspiring me to code this too


  • Press X to toggle Autopilot / Manual Control
  • Left arrow key -> turn cclockwise
  • Right arrow key -> turn clockwise
P#70741 2019-12-09 04:52 ( Edited 2019-12-09 05:19)

Cart #cooling_particles-0 | 2019-12-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Inspired by @dw817


-Arrow Keys to move

// comment cls() call in draw method for those effects:

P#70739 2019-12-09 04:05 ( Edited 2019-12-09 07:32)

Cart #zasutuwuzo-0 | 2019-12-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

P#70729 2019-12-09 00:50

Cart #zachstronaut_simplegalaxy-1 | 2019-12-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

A galaxy generated from a parameterized spiral equation. Simple fake 3D camera.

P#70721 2019-12-09 00:39

Cart #ct-2 | 2019-12-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
TO LOAD THIS CART IN PICO-8, in immediate mode type:

load #ct

UPDATE: Forgot to put in the changing wind direction, added now.

Hello !

This code is very reminiscent of what I wrote back in QBasic with a few exceptions. Back then I had access to 256-colors for the palette so I neatly encoded it all by only animating the palette I could have snow fall, glitter the 5-pointed star on the tree and of course turn off and on the ornaments/lights with 8-different colors.

As I'm clearly not musically inclined I'm requesting someone take this cart and add some nice Christmas music to it that it might be considered and approved for @enargy 's future Advent Calendar.

If there is more than one entry for the music, I will pick which one. Deadline for music is this TUESDAY morning (12-10-19) as I don't want to fall behind in the Advent Calendar.

I will definitely add you right into the cart credits - and you have the privilege of being able to change the scrolling text to anything you want including shoutouts to all your friends and family ... :)

Checking on the music now ...

P#70710 2019-12-08 21:55 ( Edited 2019-12-09 04:15)

Cart #moziguname-0 | 2019-12-08 | Code ▽ | Embed ▽ | No License
this is aggressive blaster snata guy dude (blood involved)

P#70704 2019-12-08 16:33 ( Edited 2019-12-08 16:34)

Cart #flappy-0 | 2019-12-08 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

here is a cart with some extra explaination in the code for my upcomming tutorial video

P#70703 2019-12-08 16:20

Cart #pico_dictator101-0 | 2019-12-08 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Ok, here's the bug fixed version 1.01 of Pico Dictator.

This is a pico-8 demake of one of my childhood memories, the turn based strategy game "DICTATOR" for the Sinclair ZX Spectrum.

I didn't recreate it 100% but instead tried to recreate the look and feel of the game (I added some more graphics etc). The internal engine for the game rules though should be nearly identical.

In DICTATOR you are the ruler of the African banana republic Ritimba and you need keep the different factions of the country - the army, the peasants and the landowners - happy while working tightly together with your secret police. Other parties you need to manage are the guerillas, the neighbor Leftoto, the Russians and the Americans.
Try to grab as much money as you can and stay alive as long as you are able to.

The complete manual of the game is down below in the comments.

See here for more info about the original game:
URL world of spectrum info

See here for a video of the game:

This is the C source code I based my version on:
URL github repo of c version

I initially converted it to an iPhone app called LowRes coder in BASIC and then converted the BASIC code semi automatically to pico-8 - that's why the code doesn't look very lua-like...

And I had to ditch the comments so that I came below the compressed limit of 15360 chars.
(I had to replace my color constants also...)

Have fun!

PS: To be honest - I haven't tested it very deeply - so it could be that there are still some errors - feedback appreciated!

Here are the original instructions: https://www.worldofspectrum.org/pub/sinclair/games-info/d/Dictator.txt

P#70701 2019-12-08 15:34

... The entire Metroid map, converted to the PICO-8 palette and 8x8px sprites @[email protected]


P#70691 2019-12-08 09:34

Hello all!

Finally purchase Pico-8 and quite excited to get started, I have limited coding experience to be honest but I've dabbled in many languages (Mainly Python, BASIC and a little C#) and read several books on computer architecture so hoping this might be a 'not too big' jump into the video gaming world.

I have read a variety of posts about Pico-8 now and am excited to get started however a few questions have cropped up if anyone thinks they could help!

1) I love the idea of limitations with the console however I like the idea of being able to start small and watch it grow, how tight are the limitations in practise and are there any work arounds if I get going?

2) The game I want to design at some point down the line is basically a small version of The Sims...my thoughts are it will be set in one house or maybe a very small town where you go to work, buy furniture and gradually upgrade a few skils. Ofcourse naturally I would scale down on each aspect to include what hopefully sums up the franchise. I'm thinking game length and interest would be held by keeping the map/world small but adding features to a small base. The question here really is do you think this kind of project would be doable with the tools/limitations of Pico-8.

Well I think that sums it up, thanks for reading! :)


P#70688 2019-12-08 09:04 ( Edited 2019-12-08 09:04)

Cart #dancesantarevolution-0 | 2019-12-07 | Code ▽ | Embed ▽ | No License

Proud part of the PICO-8 Advent Calendar 2019.


This year Santa Claus is in an incredible mood for dancing... enjoy a small Christmas Doodle!


Cart by Matthias Falk
Music by gruber
Snow effect adapted from a code example by trasevol_dog, inspired by CELESTE (Matt & Noel)
Santa animation by northpole.com
On https://pocketfruit.itch.io you can find my other games and follow me for updates.

Audio not playing? For Google Chrome and Safari, please refer to this guide.

About Pico-8 Advent Calender

During December, each day will be filled with new and exciting PICO-8 games! We have gathered 25 great developers from the PICO-8 community and we have worked hard to make some new games. Each day leading up to Christmas, there will be a new surprise for you!

Find out more at: https://www.lexaloffle.com/bbs/?pid=70441

P#70672 2019-12-07 23:15 ( Edited 2019-12-08 07:26)

Cart #sunbeam-0 | 2019-12-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

(shoutout TRASEVOL_DOG for the procedural dithering)

P#70670 2019-12-07 21:16 ( Edited 2019-12-07 21:21)

Cart #lazy_farm-0 | 2019-12-07 | Code ▽ | Embed ▽ | No License

Hi! I developed a puzzle game based on the classic Sokoban.

The itch.io page for the game contains more information, various downloads and the game manual.

P#70671 2019-12-07 21:15
View Older Posts
Follow Lexaloffle:        
Generated 2019-12-09 13:12 | 0.140s | 2097k | Q:220