{"id":16774500,"url":"https://github.com/melonjs/spine-plugin","last_synced_at":"2025-03-16T17:29:16.166Z","repository":{"id":188633468,"uuid":"615965461","full_name":"melonjs/spine-plugin","owner":"melonjs","description":"melonJS official Spine plugin","archived":false,"fork":false,"pushed_at":"2023-09-23T07:13:08.000Z","size":3844,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-25T23:04:58.630Z","etag":null,"topics":["gamedev","melonjs","plugin","spine","spine-animation","spine-runtimes"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/melonjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-19T07:57:59.000Z","updated_at":"2024-12-02T16:11:54.000Z","dependencies_parsed_at":"2025-01-23T04:23:12.494Z","dependency_job_id":"269ba9af-9b52-4fa5-98aa-b121bdca89d2","html_url":"https://github.com/melonjs/spine-plugin","commit_stats":null,"previous_names":["melonjs/spine-plugin"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melonjs%2Fspine-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melonjs%2Fspine-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melonjs%2Fspine-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melonjs%2Fspine-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/melonjs","download_url":"https://codeload.github.com/melonjs/spine-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243905354,"owners_count":20366812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gamedev","melonjs","plugin","spine","spine-animation","spine-runtimes"],"created_at":"2024-10-13T06:49:18.336Z","updated_at":"2025-03-16T17:29:16.137Z","avatar_url":"https://github.com/melonjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# melonJS Spine Plugin\n\na [Spine](http://en.esotericsoftware.com/spine-in-depth) 4.x plugin implementation for [melonJS 2](http://www.melonjs.org)\n\n![melonjs-spine-gif](https://github.com/melonjs/spine-plugin/assets/4033090/dc259c8e-def6-419e-83a9-cda374715686)\n\n\u003eNote: although functional, this plugin is still a work in progress. Feedback and especially contributions are welcome!\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/melonjs/es6-boilerplate/blob/master/LICENSE)\n[![NPM Package](https://img.shields.io/npm/v/@melonjs/spine-plugin)](https://www.npmjs.com/package/@melonjs/spine-plugin)\n[![jsDeliver](https://data.jsdelivr.com/v1/package/npm/@melonjs/spine-plugin/badge?style=rounded)](https://www.jsdelivr.com/package/npm/@melonjs/spine-plugin)\n\n\n## Installation\n-------------------------------------------------------------------------------\nthis plugin is already bundled with the required Spine [4.x runtime](package.json#dependencies), so there is no need to install it separately.\n\u003eNote: this plugin requires melonJS version 15.12 or higher.\n\nTo install the plugin using npm :\n\n`$ [sudo] npm install @melonjs/spine-plugin`\n\nThen import and use the plugin in your project. For example:\n```JavaScript\nimport { SpinePlugin } from '@melonjs/spine-plugin';\nimport * as me from 'melonjs';\n\n// register the plugin\nme.plugin.register(SpinePlugin);\n\n// prepare/declare assets for the preloader\nconst DataManifest = [\n    {\n        \"name\": \"alien-ess.json\",\n        \"type\": \"spine\",\n        \"src\": \"data/spine/alien-ess.json\"\n    },\n    {\n        \"name\": \"alien.atlas\",\n        \"type\": \"spine\",\n        \"src\": \"data/spine/alien.atlas\"\n    },\n];\n\n// import default Spine class\nimport Spine from '@melonjs/spine-plugin';\n\n// preload assets\nme.loader.preload(DataManifest, async function() {\n\n    // create a new Spine Renderable\n    let spineAlien = new Spine(100, 100, {atlasFile: \"alien.atlas\", jsonFile: \"alien-ess.json\"});\n\n    // set default animation\n    spineAlien.setAnimation(0, \"death\", true);\n\n    // add it to the game world\n    me.game.world.addChild(spineAlien);\n\n}\n```\n\u003eNote: use \"spine\" as a value for the `type` property to indicate which assets and are actual Spine assets and to be loaded using the plugin (requires version 1.4.0 or higher of the Spine plugin)\n\nfor more details, see a complete usage example in the [test](test) folder\n\n## Compatibility\n-------------------------------------------------------------------------------\n\nbelow is the compatibility version matrix :\n\n| melonJS | @melonjs/spine-plugin | spine-runtime |\n|---|---|---|\n| v15.12.x (or higher) | v1.x | v4.1, v4.2-beta |\n\n\u003eNote: the current version of the spine-plugin is bundled with the 4.2.x beta version of the Spine runtime, which is for now backward compatible with the Spine 4.1 runtime (from a player/rendering point of view). \n\n## Questions, need help ?\n-------------------------------------------------------------------------------\nIf you need technical support, you can contact us through the following channels :\n* Forums: with melonJS 2 we moved to a new discourse [forum](https://melonjs.discourse.group), but we can still also find the previous one [here](http://www.html5gamedevs.com/forum/32-melonjs/)\n* Chat: come and chat with us on [discord](https://discord.gg/aur7JMk), or [gitter](https://gitter.im/melonjs/public)\n* we tried to keep our [wikipage](https://github.com/melonjs/melonJS/wiki) up-to-date with useful links, tutorials, and anything related melonJS.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelonjs%2Fspine-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmelonjs%2Fspine-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelonjs%2Fspine-plugin/lists"}