Changed camera for transition
This commit is contained in:
parent
66ec656ca8
commit
a6481e788c
@ -10,6 +10,20 @@ function handleTransition(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
centerCameraOn(constants.player.defaultX, constants.player.defaultY);
|
||||||
|
|
||||||
|
if(camera.x > 898) {
|
||||||
|
camera.x = 898;
|
||||||
|
}
|
||||||
|
if(camera.x < -98) {
|
||||||
|
camera.x = -98;
|
||||||
|
}
|
||||||
|
if(camera.y < 245) {
|
||||||
|
camera.y = 245;
|
||||||
|
}
|
||||||
|
if(camera.y > 350) {
|
||||||
|
camera.y = 350;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -17,7 +31,7 @@ function handleTransition(){
|
|||||||
function drawLevelTransitionUI() {
|
function drawLevelTransitionUI() {
|
||||||
|
|
||||||
// centers camera on player
|
// centers camera on player
|
||||||
centerCameraOn(constants.player.defaultX, constants.player.defaultY);
|
|
||||||
|
|
||||||
// sets alpha for background drawing
|
// sets alpha for background drawing
|
||||||
canvases.ctx.globalAlpha = 1;
|
canvases.ctx.globalAlpha = 1;
|
||||||
|
Reference in New Issue
Block a user