Log In  

Learning to code using the Raspberry Pi!

:: Unfold ::

Cart #bermejafinal-3 | 2020-10-30 | Code ▽ | Embed ▽ | No License

Hey everyone,

This is a game i made way back but i never had time to finish due to development of Toknight and other games and A-levels. I thought i would release it anyway even though it isnt finished as its still a playable game until the end. Hope you enjoy!

P#83490 2020-10-30 10:11 ( Edited 2020-10-30 14:04)

:: Unfold ::

Cart #watertechdemo-0 | 2020-08-09 | Code ▽ | Embed ▽ | No License


I thought I would upload this tech demo I've been working on. It is based on the 'Kingdom' series. I am going to hopefully build a game around it but it might take some time. Hope you enjoy!

Use arrow keys to move.

P#80537 2020-08-09 09:33 ( Edited 2020-08-10 09:50)

:: Unfold ::


I would love some closure on this issue, as i have asked a few times and sent an email to hey @lexaloffle.com with no reply. I have seen a post from a few years ago with this same issue, and it was resolved by @zep changing it himself, which is what i would like to happen here, or for username changing to be implemented into the lexaloffle website.


P#79919 2020-07-25 14:33 ( Edited 2020-07-26 07:20)

:: Unfold ::


I think that the 'themes' selection in config has a lot of potential for other themes, such as ones based on past consoles, different colour schemes or perhaps even an ability to add an image of your choosing to the background of the code editor. I'm not sure if this would be a huge amount of work but i see great potential in it and i would love to see a few more themes available. Of course, PICO-8 still would need to have a signature trait to ensure its fantasy console feel but i think that a few customisable options would keep the feel but offer a touch of personal preferance to the editor.

Take this with a pinch of salt @zep , just an idea

P.S. How do i change my username?


P#79839 2020-07-24 09:23 ( Edited 2020-07-24 09:23)

:: Unfold ::


I have a big list of variables in the format:



I was wondering what the fastest way is to convert it into this format:


Is there an online tool to do this or something someone can point me to?

P.s. @zep I would like to change my username, is this possible? I have also pinged you an email.

P#79763 2020-07-22 16:30

:: Unfold ::


I saw a post from a few years back on this same topic and @zep himself had to change the username for him, so i was wondering if either there was a way to do it by yourself now or if @zep could help me out. Thanks

P#78745 2020-07-01 07:11 ( Edited 2020-07-10 13:42)

:: Unfold ::

Cart #toknight01-0 | 2020-06-10 | Code ▽ | Embed ▽ | No License

Making a new game and wondered if its the sort of game people would enjoy playing. Give some feedback and i'll see if i should continue with this game,


P#77881 2020-06-10 07:19

:: Unfold ::


Short question this time. What is the least-bloated way to insert a value into a list at the first index using add(). I couldnt figure out a method which is elegant and simple.


P#77539 2020-06-02 16:45

:: Unfold ::


I am making a roguelike and i would like to add in procedural generation of rooms. I would have prebuilt rooms in the map editor and when the character goes below, above, left or right of the current room, it would take them to a new room with which that entry was possible. I can do this ok apart from one thing:

How do i store the layout of the rooms once you go into a new room? If it was just left and right i would make a list of the coordinates of the rooms and when the player goes to the right, a new random room would be appended at the end, if it is to the left then at the beginning. Though this doesn't work when i have up and down too. How do i store the coordinates of the rooms that the player has already been in is my question.

I would appreciate some help


P#77532 2020-06-02 14:44

:: Unfold ::


I am making a new metroidvania and i feel like a critical part of this is getting the jumping to feel right. I tinkered with it for a while before i realised that a true metroidvania really needs variable jumping, where the longer the button is pressed the higher you go. I have had some issues with implementing this and i would appreciate some help.


P#77447 2020-05-31 08:24

:: Unfold ::

Hello again!

I had a peek into Celeste's code and i believe it is made using ECS or Entity Component systems. It gripped me immediately as i can sort-of understand the way it works, i think. I believe that each entity in a game contains its own update draw and init functions, and in the main update draw and init functions you just have a foreach loop that cycles through them and updates/draws them individually. My first question would be is this right? My second and main question is can anyone expand and put it into (preferably extremely simple) code. I would love to use this new architecture.


P#77255 2020-05-27 07:22

:: Unfold ::


I am currently making a platformer and i have managed to program my own particle effects like wind and smoke (though they are probably far from optimised). Though i have been stumped with jumping. I would like to use pget() to get the colour of the tile below you so when you jump, little pieces of the same colour will fly up and then land in all directions. I would appreciate some help or perhaps some sample code for me to study. Thanks!

P#77082 2020-05-23 17:30 ( Edited 2020-05-23 17:31)

:: Unfold ::

Hello everyone!

I am having plenty of fun with pico8 but I feel as though i have gotten to the point where i can comfortably use lua to make a decent game. However, when i peek inside some big games like Celeste and Dank Tomb, it seems to chuck all i know out the window. I investigated and found out about metatables.

My first question would be should i learn about them? Will it help me get to the next stage of pico8 programming?

My second question is regarding an example of a 'simple' metatable:

-- meta class
rectangle = {area = 0, length = 0, breadth = 0}

-- derived class method new

function rectangle:new (o,length,breadth)
   o = o or {}
   setmetatable(o, self)
   self.__index = self
   self.length = length or 0
   self.breadth = breadth or 0
   self.area = length*breadth;
   return o

-- derived class method printarea

function rectangle:printarea ()
        print("the area of rectangle is "..self.area)


I have no clue what anything here does, so would it be possible if someone could go through line by line and explain.

Thanks a lot!
(If the answer to question 1 is no, could you give some pointers as to where to find something that will help)

P#77058 2020-05-23 09:25 ( Edited 2020-05-23 17:31)

:: Unfold ::

Graph plotter

I've been working on this for a while now

This is my alpha-release of this software. I intend to further develop it so you can have multiple graphs at the same time and also the use of trigonometric graphs.


Cart #graphplotter-0 | 2020-03-23 | Code ▽ | Embed ▽ | No License

P#74303 2020-03-29 10:55

:: Unfold ::

Cart #graphplotter-2 | 2020-04-03 | Code ▽ | Embed ▽ | No License

Graph Plotter

Been working on this for a while! Hope you enjoy!

This is my first pico-8 project so I'm open to critical feedback!

Version 1.1:

-Removed polynomial setting to make way for big update ;)
-Added ability to "stamp" current graph and then calculate the intersection of the two graphs (i.e. solve the simultaneous equations)
-Bug fixes

P#74138 2020-03-23 11:45 ( Edited 2020-04-03 09:28)

Follow Lexaloffle:          
Generated 2023-10-04 21:53:59 | 0.077s | Q:38