0

我正在制作一个破砖游戏,但不断收到 1180 错误。我找不到问题。有任何想法吗?

function checkLevel(event:Event):void{
    if(brickAmt == 0)
    {
        currentLvl ++;
        makeLvl();
        MrBall.x = 150;
        MrBall.y = 265;
        MrPaddle.x = 230;
        MrPaddle.removeEventListener(Event.ENTER_FRAME, movePaddle);
        MrBall.removeEventListener(Event.ENTER_FRAME, moveBall);
        removeEventListener(Event.ENTER_FRAME, checkLevel);
        stage.addEventListener(MouseEvent.CLICK, beginCode);
    }
}
stage.addEventListener(MouseEvent.CLICK, beginCode);
makeLvl();
4

0 回答 0