PPML

Pixel Place Map Loader

נכון ליום 22-04-2022. ראה הגרסה האחרונה.

אין להתקין סקריפט זה ישירות. זוהי ספריה עבור סקריפטים אחרים // @require https://update.greasyforks.org/scripts/443803/1042799/PPML.js

יוצר
Exnonull
גרסה
1.2
נוצר
22-04-2022
עודכן
22-04-2022
Size
4.69 קילו-בייט
רישיון
MIT

to make this lib working require CWSS and WorkerTimer



Variable: PPML || window.PPML

PPML.ws // WebSocket
PPML.safeEmit(x,y,pixel) // undefined
PPML.emit(x,y,pixel) // undefined / false / true
PPML.map
{
    pixels, // Uint8[]
    colors, // Uint32[]
    width, height, // number
    find(pixel) // index of pixels
    get(x,y) // pixel
    set(x,y,pixel) // undefined
}

PPML.setHook({
    priority: 0,
    init(map) {
        // ...
    }
});
长期地址
遇到问题?请前往 GitHub 提 Issues。