# Please, help me to update the MDN 2D Breakout tutorial to Phaser 3.80.1

**URL:** <https://phaser.discourse.group/t/please-help-me-to-update-the-mdn-2d-breakout-tutorial-to-phaser-3-80-1/14203>\
**Category:** Phaser 3\
**Created:** [April 12, 2024, 2:04pm UTC](https://phaser.discourse.group/t/please-help-me-to-update-the-mdn-2d-breakout-tutorial-to-phaser-3-80-1/14203 "2024-04-12T14:04:43Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![8Observer8](https://avatars.discourse-cdn.com/v4/letter/8/bbe5ce/32.png) [@8Observer8](https://phaser.discourse.group/u/8Observer8)\
**Post date:** [April 27, 2024, 9:35pm UTC](https://phaser.discourse.group/t/please-help-me-to-update-the-mdn-2d-breakout-tutorial-to-phaser-3-80-1/14203/11 "2024-04-27T21:35:16Z")

</div>

How to replace this code:

```js
ball.checkWorldBounds = true;
ball.events.onOutOfBounds.add(() => {
  alert("Game over!");
  location.reload();
}, this);

```

It is from the [Game over](https://developer.mozilla.org/en-US/docs/Games/Tutorials/2D_breakout_game_Phaser/Game_over) lesson. I have tried to use this solution: [Out of bounds checking - #5 by PavelMishin](https://phaser.discourse.group/t/out-of-bounds-checking/905/5)

```js
function update() {
    paddle.x = this.input.x || this.scale.width * 0.5;

    const inside = Geom.Rectangle.Overlaps(this.physics.world.bounds, ball.getBounds());
    if (!inside) {
        alert('Game over!');
        location.reload();
    }
}

```

But it cannot be reloaded: [Playground](https://plnkr.co/edit/YDm2eholZFLmoKiK?preview)

---

_[View the full topic](https://phaser.discourse.group/t/please-help-me-to-update-the-mdn-2d-breakout-tutorial-to-phaser-3-80-1/14203)._
