Log In  
Follow
Ahai64

make games with ❤


I made definition files so that LSP can support pico8/picotron's library functions and special syntax, so that pico8/picotron programs can be written in external editors such as VSCode while getting the help of various modern features.

How to

  1. Install and enable sumneko/Lua extensions in VSCode Marketplace
  1. Download pico-api

  2. New a folder .vscode in your workspace, and put the file setting.json into it
  1. Change the field Lua.workspace.library in .vscode/settings.json to the path to the folder picotron(or folder pico8, depending on the type of your project)
  1. New a cartridge and use this snippet at the top of its code:
-- picotron
cd("/myproj")
include("main.lua")

-- pico8

[ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=131319#p)
5
7 comments



Cart #understand14-1 | 2024-07-11 | Code ▽ | Embed ▽ | No License
2

Draw a line to try to fit the rules of the board.

TODO

  • more rules
  • more levels
  • custom level by clipboard
  • automatically generate levels
  • joystick control
  • sound effect
  • title animation

Credit

The idea of this game comes from

2
0 comments



Cart #snake_ahai_v2-0 | 2024-01-29 | Code ▽ | Embed ▽ | No License
4

4
4 comments



It seems that Vietnamese find some way to easily hack the verification measures of Lexaloffle BBS.

The superblog is full of ads now.

5
4 comments



I found a simple way to use printh on Windows without any setup by using Terminal in VSCode.

Using Lnk file

  1. Drag and drop the lnk of PICO-8 into VSCode Terminal;
  2. Press Enter to run it;
  3. Use printh in PICO-8!

Now printh will output its info to VSCode Terminal.

Using p8 file in VSCode

And if you set pico-8.exe as the default program to open your p8 file, you can just drag and drop your p8 file in the VSCode to Terminal. It will open PICO-8 and load the cart and printh still works.


Another way by editing lnk file: https://www.lexaloffle.com/bbs/?tid=42367

8
4 comments



@zep There is a mistake in the PICO-8 manual.

6.14 Additional Lua Features > Coroutines > costatus(c)

Return the status of coroutine C as a string:
  "running"
  "suspended"
  "dead"

The status "normal" is missing.

When coroutine A calls coroutine B, and you check the status of A in B, you will get "normal".

5
1 comment



Cart #neretepisu-1 | 2023-02-08 | Code ▽ | Embed ▽ | No License
5

5
7 comments



Cart #terufzoge-3 | 2023-02-17 | Code ▽ | Embed ▽ | No License
22

Controls

Rules

Like Tetris, but you can erase cells in 2 directions.

Have fun! 😜

22
10 comments