SkillsReviewed · melonjs

melonjs-renderables

melonjs-renderables is a set of instructions for AI coding assistants helping melonJS game developers, with advice that depends on engine version, renderer and physics adapter. It addresses drawing coordinates, pointer input, draw order, shader effects, opacity and update behavior. Assistant-specific installation instructions and runtime validation are not supplied.

Researched 16 Nov 2026

In short.

melonjs-renderables is an AI coding assistant skill for melonJS developers troubleshooting game objects, with version-sensitive advice that needs checking against their project. Its strength is explaining failures that can leave code running while objects draw incorrectly, ignore clicks or stop appearing to update. It connects those symptoms to specific API choices, including this.pos, isKinematic, addChild(child, z), post-effect lifetime and redraw signaling. No code was executed, and runtime correctness, assistant compatibility and performance remain unassessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete captured folder packages/melonjs/skills/melonjs-renderables, whose manifest contains SKILL.md, plus the repository-level LICENSE.md outside that folder. Both originals are identified at revision 837bd09106a0dcd1f4e4925a2b8a25cbcbdfc33c. Engine implementation, other skills, linked documentation, dependencies and game assets are excluded. No code was executed; installation, runtime correctness, performance and compatibility remain untested.

The overview

Identity

The resource is SKILL.md in packages/melonjs/skills/melonjs-renderables within the melonjs/melonJS repository. Its front matter names the skill melonjs-renderables and describes when an assistant should use it. It supplies instructions and JavaScript examples rather than a separate rendering library. The captured original is available at [https://raw.githubusercontent.com/melonjs/melonJS/837bd09106a0dcd1f4e4925a2b8a25cbcbdfc33c/packages/melonjs/skills/melonjs-renderables/SKILL.md].

Assessment

This is a useful candidate for developers or assistants already working with melonJS Renderable objects. Its most distinctive feature is explaining why plausible code can produce the wrong visual result without an obvious error. The symptom-to-cause table makes it practical as a debugging reference. It is less suitable as a first introduction to game development because it assumes familiarity with engine objects, containers and rendering. Whether loading it improves an assistant's output is unknown.

Users

The main audience is JavaScript developers building or debugging melonJS game objects, alongside AI assistants helping with that code. Beginners can use its explanations to understand misplaced objects, missing clicks and frozen-looking scenes. Experienced developers get detail about sorting, physics-adapter differences, GPU effect ownership and container bounds. Developers using another engine would need separate documentation because these API rules are specific to melonJS.

Capabilities

The skill covers custom draw coordinates and anchors, pointer-event eligibility, spatial-query participation, explicit draw layers, sorting by screen position and sortOffset. It explains that changing depth after insertion may require a manual sort, while automatic x/y sorting follows different rules.

Further guidance covers enabling and removing post effects, multiplying opacity through a container hierarchy, preserving vector depth, recognizing ignored settings, hiding objects, managing masks, signaling redraws, updating off-screen objects, clipping and camera visibility. These are instructional capabilities; the captured resource does not provide an automated diagnostic or repair tool.

Using it

Requirements

Applying the examples assumes a melonJS project and enough JavaScript knowledge to edit classes and object properties. Automatic use also requires an assistant capable of loading this kind of skill file, but no supported assistant, model, loading interface or minimum version is specified. Several rules depend on the engine release and physics adapter. Shader effects require a programmable graphics pipeline; the guide says ShaderEffect remains disabled under the Canvas renderer. Hardware requirements are unknown.

Mechanism

The resource works through written instructions that pair symptoms with explanations and corrective code patterns. For example, it explains custom drawing in terms of the parent container's translation and the child's anchor offset, then shows why drawing from this.pos matters. Other explanations trace clicks to isKinematic, visual order to container sorting, and frozen scenes to redraw signaling. The captured folder contains no separate runtime helper or installation script.

Setup

The supplied artifact is SKILL.md. An assistant that supports skill files would need to load it through that assistant's documented mechanism; this resource gives no installation command, required directory or activation check. It can also be read directly as a reference. Before applying examples, identify the project's melonJS version, renderer, physics adapter and container sorting settings, because those details change how several recommendations apply.

Example

For a custom marker appearing at its parent's origin, the guide shows renderer.fillRect(this.pos.x, this.pos.y, this.width, this.height) rather than drawing at zero coordinates. It separately sets this.anchorPoint.set(0, 0) in the constructor to avoid the default centered-anchor offset. For a plain renderable whose pointer handler never fires, its example sets this.isKinematic = false before registering the handler. These illustrate the supplied guidance; no example code was executed.

Assessment & evidence

Limitations

The available material is a focused troubleshooting skill, not a complete engine tutorial or compatibility specification. Engine implementation files, a runnable example project and automated tests are outside the supplied evidence. Its API explanations and version boundaries therefore lack independent corroboration here.

Some advice has important exceptions. Shared effects opt out of automatic destruction on removal; Camera3d uses distance-based depth sorting; physics adapters differ in spatial-query behavior. Canvas can leave effects disabled instead of producing the expected visual output. Advice copied without these qualifications could miss the actual cause of a problem.

Reasoning

The resource's practical value comes from connecting a visible symptom to a specific mechanism. It distinguishes changing a container's alpha from overwriting every child's alpha, removing an effect from temporarily disabling it, and moving a renderable with setPosition from resetting a vector's z value. Those distinctions give developers concrete hypotheses to investigate. They do not establish that the listed cause explains every occurrence of a symptom, and no measured improvement in debugging or assistant accuracy is supplied.

Alternatives

For avoiding custom drawing altogether, the skill points to built-in features such as ParticleEmitter, Tween, ShaderEffect presets, UI widgets and NineSliceSprite. These are alternatives to particular implementation tasks rather than replacements for the entire skill. It also names related skills for getting started, scenes and state, UI and text, cameras, and version-20 migration. Their contents are not supplied, so their coverage and quality cannot be compared. Other engines and competing assistant skills are not assessed.

Evidence

The available evidence consists of the complete selected SKILL.md and the repository-level LICENSE.md at revision 837bd09106a0dcd1f4e4925a2b8a25cbcbdfc33c. The skill supports the descriptions of its guidance and examples; the licence supports the stated redistribution terms. The original licence is available at [https://raw.githubusercontent.com/melonjs/melonJS/837bd09106a0dcd1f4e4925a2b8a25cbcbdfc33c/LICENSE.md]. No runtime behavior, assistant loading behavior or performance result was tested.

Access & freshness

Costs

The supplied MIT licence grants its permissions free of charge. The evidence provides no prices for assistant access, model usage, support or game hosting. Any such costs are unknown. It also supplies no measurements of development time saved, rendering overhead or financial benefit.

Rights

SKILL.md declares MIT licensing. The repository's captured LICENSE.md permits use, copying, modification, merging, publication, distribution, sublicensing and sale, provided the copyright and permission notices remain in copies or substantial portions. Its copyright notice names Olivier Biot (AltByte Pte Ltd), 2011–2023. The licence disclaims warranties and liability. These notices do not establish rights for separately acquired game assets or other dependencies.

Freshness

The files were captured on 2026-11-16 at 22:30:58.219 UTC from revision 837bd09106a0dcd1f4e4925a2b8a25cbcbdfc33c. The source includes topic-specific notes about shader deprecation since 19.2.0, mask teardown before 20.7.0, clipping and bounds behavior around 20.13, and input behavior involving melonJS 20.14, matter-adapter 1.6.0 and planck-adapter 1.7.0. These references do not establish a universal supported-version range. The author's last edit date and compatibility with later releases are unknown.

Actions

Use this skill when a melonJS task involves custom renderables, missing pointer events, unexpected ordering, shader effects or container visibility. Match the relevant explanation to the project's engine version, renderer and adapter, then inspect the affected API before changing code. Start with the smallest relevant pattern, such as explicit z in addChild or preserving depth with setPosition. Verify the resulting drawing, interaction and update behavior in the actual project; those outcomes remain unassessed here.

Evidence for this report

LICENSE.mdnotice · checked 2026-11-16