canvas-prime
canvas-prime copied to clipboard
Time Passed Delta
A delta should be included in the master loop so time sensitive data can be multiplied by it. For example, updating a square's x position should look like so.
Square = {
update: function () {
// Makes 2 a ratio relative to the time passed
this.x += 2 * cp.core.delta;
}
};