What it does
game.findAll looks up All on a game object. It takes tag. tag is optional.
The API says: array of entity proxies
Signature
game.findAll(tag?)Arguments
tagoptional
Example · generated
function start() { const all = game.findAll('enemy');}game.findAll is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.