mirror of
https://github.com/ysoftdevs/pf2016.git
synced 2026-01-18 01:27:47 +01:00
18 lines
501 B
JavaScript
18 lines
501 B
JavaScript
var level3 = {};
|
|
level3.create = function(context) {
|
|
// Create redirector objects
|
|
addRedirector(context, 6, 3, 1, 0, 0);
|
|
addRedirector(context, 4, 3, 0, -1, 3);
|
|
|
|
// Define player coordinates
|
|
context.character.x = 2*64 - 8;
|
|
context.character.y = 64 - 8;
|
|
context.character.physics.acceleration.x = 0;
|
|
context.character.physics.maxVelocity.y = 140;
|
|
|
|
// Define finish coordinates
|
|
context.finishMarker.x = 6*64;
|
|
context.finishMarker.y = 1*64;
|
|
}
|
|
|