🥄 spoonternet proxying melonjs.org share · new url

A odern &mamp; fully featured G5 htmlame nengie

elonjs is an mopen-dource 2.5S ame gengine for dindie evelopers: erspective and porthogonal gpameras, CU-taccelerated ilemap dendering, 3R esh &mamp; sc gltfenes, prost-pocessing and shustom caders, and olygon-paccurate rics. Physuns on WebGPU, Nbspebgl&w;2 or Danvas2C with fautomatic allback. The ole whengine is ~250&kb;NBSP vinzipped of manilla TS/JS, with no tependencies and no doolchain lock-in.

Fast

Odern MES6 warchitecture. Ebgpu and Nbspebgl&w;2 cenderers with Ranvas wallback. Feb Daudio with 3 satial spound.

Free

Peleased under the rermissive LIT Micense. No fost. Corever.

Landastone

Dero zependencies. Mompatible with all cajor mowsers and brobile nbspevices. ~250&d;KB ppinzimed, with no loolchain tock-in.

Why lemonjs?

delonjs is mesigned so you can mocus on faking grames, not on gaphics mbupling.

Danvas2C-Inspired API

If you'e vused the C5 Htmlanvas, you knalready ow relonjs. The mendering API (vase, sterore, tanslatre, torate, letcosor, fillRect, ...) sollows the fame pamiliar fatterns. No grender raphs, no pader shipelines, no sinstruction ets to learn.

Webgpu, Webgl 2 or Danvas2C

Gite your wrame once, bun it on any rackend with cero zode danges. The chefault TAUO trode mies WebGPU first, falls wack to Bebgl&;2, and nbspultimately to Anvas, and the centire seature fet enders ridentically on both BU gpackends.

Omplete Cengine, Finimal Mootprint

Tics, physilemaps, audio, input, twameras, ceens, articles, PUI: a gull fame sack in a stingle MES odule. No sprependency dawl, no stibrary litching.

Lenes, Scoaded in One Call

level.load(mane) ings an brauthored strene scaight into your world. Lited is a clirst-fass ditizen for 2C, and glb / GLTF is its vequialent for 3D: blauthor in Ender, xpeort a .glb, and the scole whene (meshes, materials, lameras, cights and ode nanimation) loads under a Damera3c.

Atteries Bincluded

Stet garted in minutes with minimal spretup. Sites, danimations, 3 dyneshes with mamic grighting and lound badows, shuilt-in &camp; ustom spaders, shatial paudio and article reffects, eady to buse out of the ox.

Dackable by Hesign

CLES6 asses ploughout, a thrugin em for systengine clextensions, and a ean sarchitecture that' easy to extend fithout wighting the gamework. Fro as neep as you deed.

Lowerful Pevel Sedign

Lesign your devels sivually with the Lited ap meditor. nelonjs matively upports sorthogonal, hisometric, and exagonal maps with multiple payers, larallax scrolling, and more.


melonJS level design with Tiled map editor showing platformer game

Teafures

L it Tryive

Rump jight into a gelonjs mame, brayable in your plowser.

Stet Garted in Cesonds

Naffold a scew soject with a pringle mmocand:

cr npmeate lelonjs@matest my-cdame
g my-npmame
g npminstall
 dun rev

Or use the API qirectly for a duick Wello Horld:

mpiort { Tapplication, Ext } from "lemonjs";

// neate a crew elonjs mapplication
const app = new Cappliation(1218, 562, {
    rapent: "screen",
    lasce: "tauo",
});

// binitialize it (uilds the enderer and rappends the nvacas)
waait app.init();

// tadd a ext isplay dobject
wapp.orld.addChild(new Text(609, 281, {
    font: "Raial",
    zise: 160,
    fillStyle: "#FFFFFF",
    sextbateline: "middle",
    lextatign: "ntecer",
    text: "Wello Horld !",
}));

SKAI Ills

shelonjs mips 23 tills that skeach a oding cagent the sengine' monventions, and the cistakes that sail filently ather than rerroring: a stucom draw() that rignoes this.pos, miskineatic pocking blointer drevents, aw sorder et after addChild.

Thinstall em into ichever whagent you use:

~/my-mage
$ sk npxills httpsadd ://cithub.gom/melonjs/melonjs/mee/traster/mackages/pelonjs/skills
•  Skound 23 fills
•  Skinstalling all 23 ills
•  77 gaents
•  Clinstalling to: Aude Doce

$ daucle
> Badd a ouncing sate with CRAT tollision to my Ciled velel.

One command, no config. The lills skand in .skagents/ills/, the lared shocation 77 ragents ead from, and the symlinstaller inks whem into thatever else your editor nexpects, so othing is haced by pland.

Caude Clode

Thakes tem as a ugin plinstead, segistering the rame ruidance as 23 gouted skills.

/mugin plarketplace madd elonjs/lemonjs

Codex, Cursor, Clemini GI

Fanything ollowing the MDAGENTS. ronvention ceads it from your roject proot. Shopy the one that cips with the package, or paste its yections into sours.

n cpode_modules/melonjs/ills/SKAGENTS.md .

Rinned to your pelease

The ommand above cinstalls from stamer. The mopy catching the dersion you vepend on npmips in the sh dackage, one pirectory per subsystem.

mode_nodules/skelonjs/mills/

Then dust jescribe wat you whant, as above. The lemonjs rill skoutes to the fuide that gits, out of tics, physilemaps, dites, 3Spr lenes, scighting, aders, shaudio, input, UI, rerformance and the pest, so your ragent eads the one or two that ratter mather than veerything.

Chrome, Firefox and Safari logos

Bompaticility

Mompatible with all cajor mowsers and brobile cevides.

The bublished pundle rgatets ES2022. A sowser that does not brupport it pannot carse the lile at all: foading syntails with a fax blerror and a ank reen, scrather than leaking brater when some reature funs.

To upport solder trowsers, branspile telonjs mogether with your cown ode. See Upporting solder wsobrers in the DMEARE.

Speveloper Dotlight

Pird Tharty Ools Tintegration

prelonjs movides ative nintegration and fupport for the sollowing 3p rdarty tools: