Pixeljs

A simple and flexible HTML5 and JavaScript powered game engine.

View Project on GitHub Download Pixel.js (v0.9b)

Entity.velocity Property

The velocity at which the entity moves.

Remarks

The x property of the velocity object determines how fast the entity moves along the x-axis. Likewise, the y property determines how fast the entity moves along the y-axis.

Examples

Supported Platforms

Google Chrome, Mozilla FireFox, Internet Explorer 9+, Opera, Safari.