Skip to content

Commit

Permalink
readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kleber-jg committed Jan 5, 2022
1 parent d8506db commit 8e02066
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ Inside your game, after the Phaser's Game instance is created, add it as a Phase
game.plugins.add(new Phaser.Plugin.RuntimeEditor(game));
```

Also, add to your `index.html` after the insertion of `phaser.js` and before your `game.js`:

```html
<script id="phaser-runtime-editor" src="/js/phaser-runtime-editor.min.js"></script>
```

This will make it available for you at runtime. You will notice a small icon at the top left corner of your game. Click on it to open the editor.

### Options
Expand Down
2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<!-- DEV -->
<script id="phaser-runtime-editor" src="/js/index.js"></script>
<!-- PROD -->
<!-- <script src="/js/phaser-runtime-editor.min.js"></script> -->
<!-- <script id="phaser-runtime-editor" src="/js/phaser-runtime-editor.min.js"></script> -->
<link rel="stylesheet" href="./styles.css" type="text/css" />
<link rel="stylesheet" href="./js/phaser-runtime-editor.css" type="text/css" />
</head>
Expand Down

0 comments on commit 8e02066

Please sign in to comment.