👾 SPrite eNgine 👾
spn
is a library for handling absolutely positioned elements effectively.
- Dom layout in
position: aboslute
context - Handle multiple display sizes
- Change image according to the current state of component
- Dom layout in
position: relative
context - Handle canvas
- Handle game progress (Not a game engine)
- Puzzle Game
- Action Game
- Role Playing Game
- Game in general
- jQuery
- capsid
- Promise
Via npm
npm install spn
const { Body } = require('spn')
const { component } = require('capsid')
@component
class MyCharacter extends Body {
...
}
const spn = require('spn')
- @param {number} time The time to wait (in milliseconds)
- @return {Promise}
Returns the promise which resolves after the given milliseconds.
- @param {jQuer} elem The element
Reflows (repaints) the element.
- v3.10.0 2016-09-16 Added @margin() and @ratio() decorators.
MIT