MM

melonjs/melonjs

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

6513 stars 质量 73 趋势 85MIT

用于JavaScript/TypeScript的现代并全功能HTML5游戏引擎(2D & 3D),有WebGL/WebGPU渲染,内置物理,平面图和glTF支持和WebAudio.

概览

现代功能的 HTML5 游戏引擎( F) ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 在WebGPU,WebGL 2或Canvas2D上运行,自动回落. 整台发动机由香草JS/TS的~250KB minziped,没有依赖性和工具链锁入. 以现代类语法所建并用esbuilt来捆绑. 甜瓜JS获得麻省理工学院许可,并由球队在新加坡的AltByte积极维护. 为甚么瓜JS------------------------------------------. - 如果你用过HTML5 Canvas,你已经知道瓜JS。 渲染 API (保存, 恢复, 翻译, 旋转, 设置 Color, 填充 Rect, .

概述(AI 翻译)

地瓜JS 2

现代功能的 HTML5 游戏引擎( F)

melonJS是一款为Indie开发者设计的开源的2D & 3D游戏引擎——视角和正交相机,GPU-加速平面渲染,处理后效果,自定义阴影,3D网格支持,多边形精确物理,现代平面工作流程,以及高性能. 在WebGPU,WebGL 2或Canvas2D上运行,自动回落. 整台发动机由香草JS/TS的~250KB minziped,没有依赖性和工具链锁入. 以现代类语法所建并用esbuilt来捆绑.

甜瓜JS获得麻省理工学院许可,并由球队在新加坡的AltByte积极维护.

为什么瓜JS

地瓜JS的设计让你能够专注于制作游戏,而不是图形管道.

  • ** Canvas2D - 激发的API渲染** - 如果你用过HTML5 Canvas,你已经知道瓜JS了. 渲染API([[T0],[T1],[T2],[T3],[T4],[T5],.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

melonJS 2

melonJS is an open-source 2D & 3D game engine designed for indie developers — perspective and orthogonal cameras, GPU-accelerated tilemap rendering, post-processing effects, custom shaders, 3D mesh support, polygon-accurate physics, modern Tiled workflows, and high performance. Runs on WebGPU, WebGL 2 or Canvas2D with automatic fallback. The whole engine is ~300 KB minzipped of vanilla JS/TS, with no dependencies and no toolchain lock-in. Built with modern class syntax and bundled with esbuild.

melonJS is licensed under the MIT License and actively maintained by the team at AltByte in Singapore.

Why melonJS

melonJS is designed so you can focus on making games, not on graphics plumbing.

  • Canvas2D-inspired rendering API — If you’ve used the HTML5 Canvas, you already know melonJS. The rendering API (save, restore, translate, rotate, setColor, fillRect, …) follows the same familiar patterns — no render graphs, no shader pipelines, no instruction sets to learn.

  • True renderer abstraction — Write your game once, run it on WebGPU, WebGL 2 or Canvas2D with zero code changes. The engine handles all GPU complexity behind a unified API: the default AUTO mode tries WebGPU first at startup, falls back to WebGL 2 if that is unavailable, and ultimately to Canvas, and the entire feature set renders identically on both GPU backends.

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add melonjs/melonjs
新手?先看 mcpskill.org 教程 →