Pular para o conteúdo
Skillpedia
Código em geral6,4 mil · #14218

melonjs

O que ela faz

É o ponto de partida para o desenvolvimento de jogos com o melonJS, indicando os guias detalhados de cada tema. É para desenvolvedores que criam jogos para navegador com o motor melonJS.

Quando usar

  • ✓Quando um desenvolvedor começa uma tarefa de melonJS e precisa saber qual guia ler primeiro.
  • ✓Quando um desenvolvedor trabalha com conteúdo 3D e precisa das regras de coordenadas antes de escrever código.
  • ✓Quando um desenvolvedor escreve código melonJS de memória e pode estar usando um método desatualizado.

Link da skill

https://github.com/melonjs/melonJS/blob/master/packages/melonjs/skills/melonjs/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/melonjs/melonJS/blob/master/packages/melonjs/skills/melonjs/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Quero construir um platformer 2D com o melonJS. Quais guias devo ler?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A skill funciona como um roteador. Ela lista os guias por tema, orienta a ler o guia de migração mais recente quando há código antigo envolvido e diz à IA para não adivinhar APIs que não estejam listadas.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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

  1. Find the specialised skill below that matches the task and follow it.
  2. If the task involves anything 3D, read melonjs-3d first — melonJS's coordinate conventions are the inverse of OpenGL's, so untutored 3D instincts are backwards.
  3. 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.
  4. 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
Perguntas frequentes

Isto é um tutorial independente?

Não. Ele aponta para guias mais detalhados sobre cada tema do melonJS.

Qual guia devo ler para 3D?

A skill diz para ler primeiro o guia 3D, já que suas regras de coordenadas são o inverso do OpenGL.

E se o tema não estiver listado?

A skill diz para usar sua saída de emergência em vez de adivinhar uma API.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
6,4 mil
Posição no ranking
#14218
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas