local monocle = require("#monocle")

local vector2 = require("#microsoft.xna.framework.vector2")

function onBegin()
  disableMovement()
  disableRetry()
  player.ForceCameraUpdate = false
  wait(1.5)
  say("Donk_Ch3_Intro")
  engine.Scene:NextColorGrade("Donker19/LackOfInsiration/0_BlackFade")
  wait(2)
  setFlag("donk_FadeInPlanet3", true)
  engine.Scene:NextColorGrade("none")
  wait(1)
  say("Donk_Ch3_Intro2")
  enablePause()
  enableMovement()
end

function onEnd(room, wasSkipped)
  enableMovement()
  engine.Scene:NextColorGrade("none")
  setFlag("donk_FadeInPlanet3", true)
  player.DummyAutoAnimate = true
  player.ForceCameraUpdate = true
  engine.Scene:NextColorGrade("none")
  getLevel():ResetZoom()
  enableMovement()
end