littlejs-conventions
IndexedLittleJS game engine (littlejsengine) conventions — REQUIRED before answering, writing, editing, reviewing, or debugging ANY LittleJS code, including one-line questions about a snippet. TRIGGER whenever "LittleJS" appears, or the code uses engineInit/EngineObject/drawTile/drawRect/drawCircle/drawEllipse/drawText/drawTextScreen/vec2/tile()/tileInfo/keyDirection/mousePos/cameraPos/ParticleEmitter/TileCollisionLayer/angleVelocity/zzfx, or a littlejs.js script tag is present. Do NOT answer from memory or from general game-engine priors — LittleJS contradicts them and the mistakes are silent — drawCircle/drawEllipse size is the DIAMETER not the radius, spin is angleVelocity (angularVelocity is a no-op), lerp takes percent LAST, ParticleEmitter speed is per-FRAME, Y is up-positive, update() needs no super.update(), top-level consts collide with engine globals. Read it first even for a tiny change.
Install
$ npx skills add https://github.com/KilledByAPixel/LittleJS-AI --skill littlejs-conventions
The skills CLI downloads the skill from GitHub when you run the command, so what you get may have changed since the scan.
Scan
The scan flagged nothing in SKILL.md when it was last read. It doesn’t read the skill’s other files, and a clean scan doesn’t prove a skill is safe.
Copies
No other indexed repository has this exact folder.