Pixeljs

A simple and flexible HTML5 and JavaScript powered game engine.

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

Entity.update Method

An abstract method with the purpose of updating the entity's state.

Parameters

Name Description
elapsedTime The time in milliseconds that has passed since the game started.
dt The time in fractional seconds since the last iteration of the game loop.

Remarks

No implementation is present for this method and must be implemented in classes which derive from Entity.

Supported Platforms

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