Log In  

Learning to code using the Raspberry Pi!


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-01 12:24)

Cart #toknight-8 | 2020-07-03 | Code ▽ | Embed ▽ | No License

Toknight Pre-alpha 0.8

Patch notes:


  • Initial pre-alpha release


  • More map
  • Added Firerod


  • Added Icerod (placed at beginning, not permanent spot)
  • Added projectiles from rods
  • Bug fixes


  • Title screen and opening dialogue done
  • Visual changes to fades


  • Added new crossbow enemies
  • New obtainable item - Bread. This increases your maximum health
  • Many big fixes


  • Added money, dropped from enemies
  • Shovel Knight inspired money reclaiming system after you die
  • Minimap will show current checkpoint and where your lost money is
  • Bug fixes
  • Use for money to come later


  • Removed the icerod and replaced with hammer (still temporary location)
  • Now checkpoints require 2 coins to activate
  • Added in shops
  • Bug fixes
  • Logo screen


  • Hotfix of bug that broke the game
  • Added last weapon, excalibur
  • balanced item costs

Hope you enjoy, I've been working on this over lock-down and hope to finish it sometime next month. I would appreciate feedback or comments

Do post feedback, thanks

P#78190 2020-06-17 10:47 ( Edited 2020-07-03 10:56)

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


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


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


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

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


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)

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)

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

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 2020-07-04 10:51 | 0.102s | 2097k | Q:82