Log In  

BBS > Superblog
Posts: All | Following    GIFs: All | Postcarts    Off-site: Accounts

pico-api is a project consisting of definition files for the sumneko/lua extension for VSCode, allowing you to write PICO-8 or Picotron programs with the support of modern editor features.

Usage

  1. Install and enable sumneko/Lua extensions in VSCode Marketplace
  1. Download the repo from Github(pico8 or picotron)

  2. Put the folder .vscode/ and library/ into your workspace.

  3. Create Lua files in your VSCode workspace.

  4. Create a cartridge and include the Lua file in it with:
-- picotron
cd("/myproj")
include("main.lua")
-- pico8
#include main.lua

Then you can write code in the workspace of VSCode and enjoy code prompts, formatting, AI copilot, etc.

[ Continue Reading.. ]

12
14 comments


Cart #keys-2 | 2024-10-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

1
2 comments


I have looked in the docs and in the Picotron discord, I cannot find an answer to this... How does one find the current world-space coordinates of the mouse?

2 comments


My Scratch acc got banned like, 4 times, so I guess i'm using Pico-8 as my sort of "blog". Have fun, stay safe, luv ya! (つ◕‿◕)つ

0 comments


On vacation recently, I was excited about seeing Mt Fuji from a ropeway the next day and made a quick tweetcart about it! 275 bytes

(275 chars)

pal({7,12,140,13,129,1,5,8,8,14,142,143,7},1)r=rnd::_::x=r(128)y=r(128)c=9+y/26-2+r(1.5)
if(y<((x+40)/6)^1.6and y<((178-x)/6)^1.6and y<79+r(2))c=2.5-sgn(y-45-sin(x/21)*r(4))*1.5+r(2.5-sgn(x-69-r(8)-y/3+25)*.7)
pset(x,128-y,c)a=r(1)d=r(25)pset(28+sin(a)*d,30+cos(a)*d,9)goto _

9
3 comments


Cart #jmp_blind-0 | 2024-10-03 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

You are trapped alone in a forest, and must find a source of warmth...
Oh, and you're also blind.

Directions

- So... what do I do again?
Use the arrow keys to move. Please avoid running into walls.

- Wait! But I can't see the walls!
Use X + an arrow key to check in a particular direction for walls.

- Okay, but where am I going?
Press Z to check the temperature.

  • "Warmer" means you're getting closer.
  • "Colder" means you're getting further.
  • "..." means that it's the same distance away as the last time you checked, or that you haven't moved since last checking.

- Closer to what?
The exit, which will allow you to select a power-up, then take you to the next level.

- Pfft, this is going to be easy.
Keep an eye on the meter towards the bottom. When it runs out, you freeze to death.

- oh. . .

Tips

Tiles are "remembered" (become visible) as you traverse the level (or check things or run into stuff). However, they also fade from memory over time.

As you get closer to the exit, "embers" will become visible to help guide you.

Remember to eat some stew between levels, whenever possible. You might not last too long if you don't...

And finally

I had this weird idea in my head for a while, of some sort of dungeon crawler where the player would only be able to see tiles that they had visited recently. So I decided to create it. It took me a little under a week to finish this, though it isn't really a dungeon crawler anymore.

This is my first complete PICO-8 game. Hopefully it's fun. Enjoy!
--J. M. Potionwiz

8
1 comment


(Ae-dree-ai)

2
0 comments


Cart #fullsquares-0 | 2024-10-25 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

2
0 comments


Pico-8 logo made with pelogen2.

9
0 comments


rainbow spiral (64 second loop)

(256 chars)

::★::cls()
for r=4,128,4 do for i=0,7/4,1/4do
q=(t()*(1+r/32)/8)%1
v0=mid((q-i)*4,1) v1=mid((q-i)*4+2,1)
a=i-1/8 x=64+cos(a)*r*0.71 y=64+sin(a)*r*0.71
a+=3/8u=cos(a)v=sin(a)
if(v1>v0)line(x+u*v0*r,y+v*v0*r,x+u*v1*r,y+v*v1*r,8+(r/4)%8)
end end flip() goto ★
10
2 comments


Thanks to HTML export, it's now possible to run picotron cartridges on a mobile phone.
However, at present the DPAD isn't displayed, and touch operations are replaced by mouse movements, making operation very uncomfortable.

So I wrote the following code to simulate touch operations.
This also led me to notice some strange behavior, but that's another story.

I'd be happy if the picotron itself could support touch operations in the future.


function _init()
	window{cursor=0} -- Hide the mouse cursor
	tch = touch.new() -- Initializing the touch structure
end

function _draw()
	-- Touch Structure Update. This is necessary to determine touch.
	tch:check() 

	--[[
	*** Wait until it truly becomes the initial state ***

	Since _init cannot fully initialize, it waits for time to pass in the main program.
	It seems that the time t() stops in _init, and the mouse position does not change. 
	It seems that time progresses entirely within _draw(_update).

	This is to prevent unnecessary tap events from occurring because a touch is 
	determined by moving the position of the mouse cursor, and the initial position of 
	the mouse cannot be obtained correctly.

	There may be a way to avoid this using memory manipulation, etc. 
	This decision statement is clearly a waste of processing.
	--]]
	if t() < 0.2 then return end

	-- Processes when it is determined that a touch has occurred.
	if tch.tap then
		splatter(tch.x, tch.y)
	end
end

--

[ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=156240#p)
1
0 comments


Yeah... I probably should have put this in it's own post.
Anyways here ya go!;

Thank you for this list!
Also, above is a Image of a horror game Idea i have. Do you wanna see this in a game? (Summary in top right)

1 comment


My first GIF in Pico-8. :v

5
2 comments


Hi everyone!
Sorry I haven't posted(On the topic of mirror) in a while.

Anyways heres LV3:
As Usual lemme know if it's impossible.

Cart #tizofuwawi-0 | 2024-10-24 | Code ▽ | Embed ▽ | No License

I have also added Debug exits to Lvl 1 and 2 for ur convenience.
Oh, Btw All other updates will be posted here from now on.

0 comments


Once Upon a late night dreary, I logged in weak and weary, Over many a quaint of forgotten Splore...
I searched up "Horror" and it said "Nevermore"

Old poetry aside, Anyone know any Pico-8 horror games? Seeing as it's Halloween and I've come up short, and HALLOWEEN of all times. If any have good releases, please post them here for the next thrill seeker like me.

I'll start:

https://arkicade.itch.io/cheshire-in-a-chatroom

2
8 comments




i felt i should bring this up! having to move my mouse so slowly to try and get the number i need out of a knob in SFX tends to really strain my wrist ;; being able to click a box and type a number much like GFX allows would be much, much appreciated, or perhaps the scroll wheel could allow you to increment/decrement by 1!

2
0 comments


Cart #zanisohru-2 | 2024-11-04 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
9


v1.1

Here is a Text system that I've been working on! Any type of feedback or criticism is welcome!

~~ PROS ~~

  • Dynamic Name Tab
  • Simply Formatted
  • Light Weight

~~ CONS ~~

  • Manually add a new line using '\n'

~~ UPDATE CHANGELOG ~~
1.1 - Dynamic name now works with special icons (Thanks @RealShadowCaster)
1.0 - Initial release

9
7 comments


Cart #deleuze-0 | 2024-10-20 | Embed ▽ | License: CC4-BY-NC-SA
9

Hi folks,

I realised I hadn't shared this in the BBS yet!

I made this game back in July for the LITHOBREAKERS - 01 Defenestration Jam. It is an anonymous jam with between friends, so I originally had to publish it under a pseudonym. Hence why I didn't post it here at the time.

This is my first Picotron (and pico-whatever) ever!

I made it using about.p64 as a base. The text is picked up from a .tsv file and it uses a parser that a friend wrote for me. If you check the code it also has a function for visualising table data that I found in stackoverflow LOL

I really enjoyed making this and trying to figure out Lua and the quirks of Picotron!

9
2 comments


Cart #steelhunter_tactics-0 | 2024-10-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
9

Speed, skill, luck...high scores

This is a high score companion cart to Steel Hunter. Navigate the minefield to collect as many pickups as you can within 2-minutes, or see how fast you can complete levels as they get more challenging.

  • 2 modes of play
  • 3 difficulty settings
  • High score tables

Controls

Arrows / D-Pad = Move submarine

Gamepad recommended. Controller mappings may vary.

Modes of play

  • Challenge mode - You get 2 minutes to collect as many pickups as you can. You get bonus points for lasting the entire time and for each extra sub you have.

  • Survival mode - Collect all the pickups as quickly as possible to advance to the next level. Bonus points are relative to speed.

Difficulty settings

  • Easy: Screen wrapping. No oxygen meter. Only grid minefield.
  • Normal: Screen wrapping. Oxygen meter. Grid and maze minefields.
  • Hard: No wrapping. Oxygen meter. Only maze minefields.

Collect high scores

High score tables for each mode and each difficulty. Challenge yourself or challenge your friends to get your name etched into history.


Behind the game

I found myself treating the first level of Steel Hunter as a speed challenge, not unlike the original "Sea Chase" game I used for inspiration. That along with some suggestions from the community brings you Steel Hunter: Evasion Tactics!

For more sea battles and a boss fight,

[ Continue Reading.. ]

9
1 comment




Top    Load More Posts ->