Skill

littlejs-conventions

LittleJS 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.

Bundled with LittleJS AI. Its trust score, security findings and other files are on the plugin page.

SKILL.md

Path
skills/littlejs-conventions/SKILL.md
Size
11 KB
SHA-256
5619ed1f6d9b3765e1101dd919c8c2f47ca5ea939e640553101b0d72469f6b1f

Install

Install the plugin's skills with the Skills CLI:

npx [email protected] add KilledByAPixel/LittleJS-AI