From 6821f29256c181de7eb0137afffd4f9739749be5 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Thu, 2 Jan 2025 00:44:55 +0300 Subject: [PATCH] phaserjs: disable welcome message --- .../2025/js/phaser/disable_console_message.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 content/posts/2025/js/phaser/disable_console_message.md diff --git a/content/posts/2025/js/phaser/disable_console_message.md b/content/posts/2025/js/phaser/disable_console_message.md new file mode 100644 index 0000000..c0fbd12 --- /dev/null +++ b/content/posts/2025/js/phaser/disable_console_message.md @@ -0,0 +1,17 @@ +--- +title: "πŸ’¬ Phaser.js β€” ΠžΡ‚ΠΊΠ»ΡŽΡ‡Π΅Π½ΠΈΠ΅ сообщСния ΠΎ вСрсии Π΄Π²ΠΈΠΆΠΊΠ°" +date: 2025-01-02T00:41:58+03:00 +draft: false +tags: [gamedev, javascript, tips] +--- + +Π—Π° ΠΎΡ‚ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅ сообщСния ΠΎ вСрсии Π΄Π²ΠΈΠΆΠΊΠ° ΠΎΡ‚Π²Π΅Ρ‡Π°Π΅Ρ‚ ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ `showDebugHeader`. + +```javascript +const config = { + // ... + showDebugHeader: false, // <-- этот ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ +}; + +const game = new Phaser.Game(config); +```