Log In  
Follow
jesstelford

Cart #man-0 | 2024-03-18 | Embed ▽ | No License
17

Documentation at your fingertips!

This cart installs the man terminal utility for reading documentation within picotron itself.

Something not documented? man will intelligently search the Fandom Wiki! 😱

Installation

  1. Setup yotta:

    • In the terminal
    • load #yotta
    • Press Ctrl-r
    • Press x to install
  2. Install this package:
    • In the terminal
    • yotta util install #man

This will install the following files for you:

appdata
└── system
    ├── lib
    │   └── man.lua  # The `man()` function for library usage

[ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=143718#p)
17
8 comments



Introducing PECS (PICO-8 Entity Component System)

✅ Small API
🏃‍♀️ Efficient even with lots of Entities
😀 Fun to say
🎈 Has a "lite" version for the token-conscious

Based on the fantastic Tiny ECS Framework by @KatrinaKitten 🙏

Full code & docs on GitHub: github.com/jesstelford/pecs

Here's a demo cart showing off some Particle Emitters using PECS v2.0.0:

Cart #pecs-1 | 2022-04-19 | Code ▽ | Embed ▽ | No License
10

Update 20210316: I have added a Camera Follow/Window example also:

Cart #pecs_camera-1 | 2022-04-19 | Code ▽ | Embed ▽ | No License
10

[ Continue Reading.. ]

10
1 comment



Cart #fgetty-1 | 2020-08-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

Pseudo motion blur using the extended palette + dithering with fillp.

The crux of making this happen is:

local defaultFills = {
  0b0000000000000000,   -- solid
  0b0000000000000001.1, -- single pixel missing
  0b0000010100000101.1, -- 4 pixels missing
  0b0101101001011010.1, -- half pixels missing
  0b1111101011111010.1, -- 4 pixels rendered
  0b1111111111111110.1, -- 1 pixel rendered
}

-- Derived from https://stackoverflow.com/a/10086034/473961
function resizeAndFill(input, outputLength)
  assert(outputLength >= 2, "behaviour not defined for n<2")
  local step = (#input-1)/(outputLength-1)
  local result = {}
  for x=1,outputLength do
    result

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