JSPM

ragdoll

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q29763F
  • License MIT

A 2D JavaScript Game Engine

Package Exports

  • ragdoll

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ragdoll) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ragdoll

A 2D JavaScript Game Engine

Install

$ cortex install ragdoll --save

Usage

var ragdoll = require('ragdoll');

Class: ragdoll(options)

new ragdoll({
    name: 'Hulk'
});
  • options Object description of options
    • name String description of options.name

Creates a new ragdoll instance.

<method-name>(foo, bar, [bee], boo)

  • foo String='foo' description of foo
  • bar Boolean= description of bar
  • bee Object [] indicates that it is an optional parameter
    • abc Buffer a property of bee, i.e. bee.abc
  • boo function(arg1, arg2) what is the method used for

Event: '<event-name>'

  • e Object the first parameter of the callback

ragdoll.<method-name>(arguments)