melonjs
Что он делает
Это отправная точка для разработки игр на melonJS, которая указывает на подробные гиды по каждой теме. Он нужен разработчикам, которые создают браузерные игры на движке melonJS.
Когда использовать
- ✓Когда разработчик начинает любую задачу в melonJS и должен знать, какой гид прочитать первым.
- ✓Когда разработчик работает с 3D-контентом и нужны правила координат перед написанием кода.
- ✓Когда разработчик пишет код melonJS по памяти и может использовать устаревший метод.
Ссылка на скилл
https://github.com/melonjs/melonJS/blob/master/packages/melonjs/skills/melonjs/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Я хочу сделать 2D-платформер на melonJS. Какие гиды мне стоит прочитать?”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Навык работает как маршрутизатор. Он перечисляет гиды по темам, советует читать более новый гид по миграции, если затронут старый код, и велит ИИ не угадывать API, которых нет в списке.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
melonJS
Entry point for the melonJS skill collection. melonJS is an open-source HTML5 game engine for indie developers, covering 2D, 2.5D and 3D — perspective and orthogonal cameras, GPU-accelerated tilemap rendering, post-processing effects, custom shaders, 3D meshes, polygon-accurate physics and modern Tiled workflows. It runs on WebGPU, WebGL 2 or Canvas with automatic fallback, and has no runtime dependencies.
How to use this skill
- Find the specialised skill below that matches the task and follow it.
- If the task involves anything 3D, read
melonjs-3dfirst — melonJS's coordinate conventions are the inverse of OpenGL's, so untutored 3D instincts are backwards. - If you are writing melonJS from prior knowledge rather than from the current
docs, read
melonjs-20-migration— most published melonJS material predates 20.0 and its bootstrap no longer exists. - If none of them covers the task, use the escape hatch below rather than guessing at an API.
Skill router
| Skill | Load when… |
|---|---|
| melonjs-getting-started | Bootstrapping a game, new Application, await app.init(), choosing a renderer, preloading assets. |
| melonjs-20-migration | Code based on melonJS 19.x or earlier, or an API that "should exist" but doesn't — video.init, Entity, renderable.shader =. |
| melonjs-scenes-and-state | Stage subclasses, the state manager, transitions, pausing, the update loop, timers, tweens, saved data. |
| melonjs-renderables | Subclassing Renderable, custom draw(), draw order, anchors, floating, post effects on an object. |
| melonjs-sprites-and-animation | Sprite, frame animation, texture atlases (TexturePacker / Aseprite / ShoeBox), tint, flip, pooling. |
| melonjs-input | Keyboard actions, pointer and touch handling, drag, gamepad, virtual controls (fixed or floating sticks and buttons, tap to act). |
| melonjs-physics | Collision, bodies, movement, spatial queries, and the planck / matter adapters. |
| melonjs-math | Vectors and matrices: what mutates, what allocates, and interpolating with lerp, slerp, damp or moveTowards. |
| melonjs-tilemaps | Tiled maps — TMX/TSX loading, spawning entities from objects, collision layers, isometric maps, reading and changing tiles at run time (a tile layer as the game board). |
| melonjs-audio | Sound effects, music, audio sprites, spatial audio, procedural tone and noise. |
| melonjs-effects-and-shaders | Post effects, custom GLSL/WGSL shaders, blend modes, colour grading, screen capture. |
| melonjs-3d | Anything 3D or 2.5D — Camera3d, meshes, instancing, Sprite3d billboards, Light3d, distance fog, glTF scenes. |
| melonjs-3d-assets | Loading glTF/GLB or OBJ models — materials, imported lights, instancing, and what is not supported. |
| melonjs-camera-and-drawing | Camera follow, bounds, shake and fade, coordinate conversion, and immediate-mode shape drawing. |
| melonjs-ui-and-text | HUDs, buttons, menus, drag-and-drop, Text and BitmapText, web fonts, panels. |
| melonjs-particles-and-trails | ParticleEmitter, burst versus stream, referenceSpace, and the Trail renderable. |
| melonjs-lighting | 2D dynamic lighting — Light2d, stage ambient, normal-mapped sprites. |
| melonjs-deployment | Scaffolding a project, building, browser support and transpiling, native and mini-game platforms. |
| melonjs-loading-assets | Resource descriptors, the asset type list, base URLs, cross-origin, progress events, unloading. |
| melonjs-renderer-backends | A feature works on one machine but not another; choosing or pinning a backend; degrading gracefully. |
| melonjs-display-and-scaling | Blurry, soft or cropped output; the design resolution, how the canvas fills its page, and pix |
Частые вопросы
Это самостоятельный учебник?
Нет. Он указывает на более подробные гиды по каждой теме melonJS.
Какой гид читать для 3D?
Навык говорит сначала читать гид по 3D, потому что его правила координат обратны OpenGL.
Что делать, если нужной темы нет в списке?
Навык велит использовать его запасной вариант, а не угадывать API.
Подробности
Оригинальное описание автора
Use this skill FIRST for any melonJS task; it routes to the right specialised skill and lists the companion packages. melonJS is an open-source 2D, 2.5D and 3D HTML5 game engine running on WebGPU, WebGL 2 or Canvas. Covers Application setup, the scene graph, renderables, sprites, tilemaps, physics, audio, particles, shaders, and the 3D tier — perspective cameras, meshes and glTF scenes. Triggers on: melonjs, melonJS, me.game, Application, app.init, app.world, Renderable, Sprite, Stage, state.change, Camera2d, Camera3d, Mesh, tilemap, Tiled, TMX, ParticleEmitter, ShaderEffect, how do I make a g
repo: melonjs/melonJS
Популярность
- Звёзды на GitHub
- 6.4k
- Место в рейтинге
- #14218
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
melonjs-20-migration
6.4kПомогает агенту писать код игр на melonJS для версии 20 и не использовать устаревшие методы старых версий, например обязательный асинхронный запуск.
melonjs-3d-assets
6.4kПомогает агенту загружать 3D-модели, например файлы glTF, GLB и OBJ, в браузерную игру на melonJS с настройками масштаба и освещения.
melonjs-3d
6.4kПомогает агенту создавать 3D- или 2.5D-сцены в браузерной игре на melonJS, охватывая камеры, сетки, освещение и глубину, с правилами осей самого движка.
melonjs-audio
6.4kПомогает агенту добавлять звуковые эффекты и музыку в игру на melonJS, включая настройку аудио, фоновые треки, управление громкостью и пространственный звук.
Похожие скиллы
diffs
394kПозволяет агенту создать настоящее сравнение правок в виде ссылки или файла изображения, которым можно поделиться, вместо ручной сводки.
coding-agent
394kПомогает агенту передать большую задачу по коду в Codex, Claude Code или OpenCode как фоновому исполнителю, а затем проверять ее ход.
gh-issues
394kПомогает агенту находить задачи GitHub, выбирать, над какими работать, и открывать запросы на слияние с исправлениями, включая ответы на комментарии рецензентов.