So, I've been wanting to code a pico-8 game and I know the limits of the 8192 tokens, 64 sounds, blah blah blah, I just need to know some actual coding. For example, how would I make a kill trigger for spikes, or a windscreen for collecting something?
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](/media/85395/picocolordance_24.gif)
Lot of good places to start laid out here:
https://www.reddit.com/r/pico8/comments/urld39/deleted_by_user/
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](/media/85395/picocolordance_24.gif)
the original post is deleted but the top reply has the info, should still be viewable on the site (I don't use the app)
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](/bimg/pi/pi3.png)
The key to learning to code is to work in tiny steps. Don’t try to write your grand vision straight away. It’ll take you too long, there will be many things that can go wrong, and you’ll get discouraged.
Start with something small — as small as you can imagine. Drawing a sprite in the middle of the screen, for example.
Then add the smallest improvement to it that moves you towards your vision. Making the sprite move left/right when you hold a button, maybe.
Then another tiny improvement. Maybe move left, right, up and down.
Then another: maybe stop the sprite moving off the edge of the screen.
And keep going.
Keep your eyes on your end goal. But always keep your program working. Never make changes that break your program for too long. Make your changes small enough that you’re happy to throw a change away and try something new if it doesn’t work out.
And who knows, along the way you might be inspired by your program doing something cool that you didn’t expect.
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](/bimg/pi/pi15.png)
PegBall dev here… just in case you don’t see the reply on the other thread, press X and O together on the start screen to access a hidden menu! Also, in my opinion, the best way to start coding is watching some YouTube tutorials. Start with this one by Lazy Devs: https://youtu.be/81WM_cjp9fo?si=HAkCXbDT-pi97NwN
I followed this playlist (there are 50+ videos, I sent you the first), when I started and it was immensely helpful. Good luck!
![](/gfx/set_like0.png)
![](/gfx/top_drop.png)
![](/media/54252/8_76786560.png)
A good way to learn is to look at other cart code? studying how other project works and using the wiki to know the basic functions.
[Please log in to post a comment]