Log inGet started
Package

ReadApart.module

README.md

ReadApart (module)

The squint test, measured: how far apart the players, the enemies and the pickups read on the frame the player sees. Each group's things are averaged over their own part of the presented frame, as a squint blurs them, and the answer is the colour distance between the groups (CIE Lab: 0 the same, 100 black against white). With no roles, groups under one look sit 1 to 3 apart; told apart at a glance is about 8 and more.

local ReadApart = require("~styleRoles.ReadApart")
local r = ReadApart.measure()            -- groups from the roles in the scene
print(r.pairs["enemies-players"], r.least, r.leastPair)
ReadApart.measure({ players = { "Hero" }, enemies = { "Goblin1", "Goblin2" }, pickups = { "Coin" } })

Run it in play, from the client whose frame you want to judge (it reads the presented frame). styleRoles' tests use it to check every role set under the look it is made for, and every set for a kind of game under a pencil look, the hardest case.

Known limits

  • Two engines on one account join as one player, so a two-player check needs two accounts or two machines (#14448).
  • A world boot can wait about 30 s on a network handshake before any content starts (#24669).
  • The web build was not checked from here (#20946).

The package README's Known limits lists the rest.