Warning: The magic method EDD_Blocks::__wakeup() must have public visibility in /home/wcc1969/public_html/phasergames.com/wp-content/plugins/edd-blocks-master/edd-blocks.php on line 101

Warning: The magic method EDD_Blocks::__wakeup() must have public visibility in /home/wcc1969/public_html/phasergames.com/wp-content/plugins/edd-blocks/edd-blocks.php on line 101

Warning: The magic method GAINWP_Manager::__wakeup() must have public visibility in /home/wcc1969/public_html/phasergames.com/wp-content/plugins/ga-in/gainwp.php on line 78

Deprecated: Optional parameter $filter declared before required parameter $metric is implicitly treated as a required parameter in /home/wcc1969/public_html/phasergames.com/wp-content/plugins/ga-in/tools/gapi.php on line 555

Deprecated: Optional parameter $filter declared before required parameter $metric is implicitly treated as a required parameter in /home/wcc1969/public_html/phasergames.com/wp-content/plugins/ga-in/tools/gapi.php on line 585

Deprecated: Optional parameter $filter declared before required parameter $metric is implicitly treated as a required parameter in /home/wcc1969/public_html/phasergames.com/wp-content/plugins/ga-in/tools/gapi.php on line 617

Deprecated: Optional parameter $filter declared before required parameter $metric is implicitly treated as a required parameter in /home/wcc1969/public_html/phasergames.com/wp-content/plugins/ga-in/tools/gapi.php on line 651

Deprecated: Optional parameter $filter declared before required parameter $metric is implicitly treated as a required parameter in /home/wcc1969/public_html/phasergames.com/wp-content/plugins/ga-in/tools/gapi.php on line 686

Deprecated: Optional parameter $filter declared before required parameter $metric is implicitly treated as a required parameter in /home/wcc1969/public_html/phasergames.com/wp-content/plugins/ga-in/tools/gapi.php on line 745

Deprecated: Optional parameter $filter declared before required parameter $metric is implicitly treated as a required parameter in /home/wcc1969/public_html/phasergames.com/wp-content/plugins/ga-in/tools/gapi.php on line 785

Warning: Cannot modify header information - headers already sent by (output started at /home/wcc1969/public_html/phasergames.com/wp-content/plugins/edd-blocks-master/edd-blocks.php:101) in /home/wcc1969/public_html/phasergames.com/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/wcc1969/public_html/phasergames.com/wp-content/plugins/edd-blocks-master/edd-blocks.php:101) in /home/wcc1969/public_html/phasergames.com/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/wcc1969/public_html/phasergames.com/wp-content/plugins/edd-blocks-master/edd-blocks.php:101) in /home/wcc1969/public_html/phasergames.com/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/wcc1969/public_html/phasergames.com/wp-content/plugins/edd-blocks-master/edd-blocks.php:101) in /home/wcc1969/public_html/phasergames.com/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/wcc1969/public_html/phasergames.com/wp-content/plugins/edd-blocks-master/edd-blocks.php:101) in /home/wcc1969/public_html/phasergames.com/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/wcc1969/public_html/phasergames.com/wp-content/plugins/edd-blocks-master/edd-blocks.php:101) in /home/wcc1969/public_html/phasergames.com/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Deprecated: Automatic conversion of false to array is deprecated in /home/wcc1969/public_html/phasergames.com/wp-content/plugins/publitio-offloading/includes/class-publitio-offloading.php on line 577

Deprecated: Automatic conversion of false to array is deprecated in /home/wcc1969/public_html/phasergames.com/wp-content/plugins/publitio-offloading/includes/class-publitio-offloading.php on line 577

Deprecated: Automatic conversion of false to array is deprecated in /home/wcc1969/public_html/phasergames.com/wp-content/plugins/publitio-offloading/includes/class-publitio-offloading.php on line 577

Warning: Cannot modify header information - headers already sent by (output started at /home/wcc1969/public_html/phasergames.com/wp-content/plugins/edd-blocks-master/edd-blocks.php:101) in /home/wcc1969/public_html/phasergames.com/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/wcc1969/public_html/phasergames.com/wp-content/plugins/edd-blocks-master/edd-blocks.php:101) in /home/wcc1969/public_html/phasergames.com/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":8628,"date":"2018-12-09T08:17:23","date_gmt":"2018-12-09T08:17:23","guid":{"rendered":"https:\/\/phasergames.com\/?post_type=download&p=8628"},"modified":"2020-06-10T15:47:06","modified_gmt":"2020-06-10T08:47:06","slug":"phaser-3-input-text-example-code","status":"publish","type":"download","link":"https:\/\/phasergames.com\/downloads\/phaser-3-input-text-example-code\/","title":{"rendered":"Phaser 3 Input Text Example Code"},"content":{"rendered":"

Needing a way to put text input into a Phaser 3 game, I came up with this FormUtil.js class. You can read more about it here<\/a>.<\/p>\n

This example relies on you placing form elements inside the HTML file. If you prefer, I’ve made a video example here<\/a>.<\/p>\n

Usage<\/h2>\n
    \n
  1. \n

    Make an instance of the formUtil class<\/h3>\n<\/li>\n<\/ol>\n

    this.formUtil = new FormUtil({
    \nscene: this,
    \nrows: 11,
    \ncols: 11
    \n});<\/p>\n

    2. show the grid for aligning and debugging<\/h3>\n

    this.formUtil.showNumbers();<\/p>\n

    3. scale and place the input text.<\/h3>\n

    this.formUtil.scaleToGameW(“myText”, .3);
    \nthis.formUtil.placeElementAt(16, ‘myText’, true);<\/p>\n

    \"\"<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

    Needing a way to put text input into a Phaser 3 game, I came up with this FormUtil.js class. You can read more about it here. This example relies on you placing form elements inside the HTML file. If you prefer, I’ve made a video example here. Usage Make an instance of the formUtil class […]<\/p>\n","protected":false},"author":1,"featured_media":8624,"template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"edd_variable_prices":[],"_edd_bundled_products":["0"],"_edd_button_behavior":["add_to_cart"],"footnotes":""},"edd-categories":[41,49],"edd-tags":[],"class_list":["post-8628","download","type-download","status-publish","has-post-thumbnail","hentry","download_category-code-samples","download_category-user-interface","edd-download","edd-download-cat-code-samples","edd-download-cat-user-interface"],"yoast_head":"\nPhaser 3 Input Text Example Code - Phaser Games<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/phasergames.com\/downloads\/phaser-3-input-text-example-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Phaser 3 Input Text Example Code - Phaser Games\" \/>\n<meta property=\"og:description\" content=\"Needing a way to put text input into a Phaser 3 game, I came up with this FormUtil.js class. You can read more about it here. This example relies on you placing form elements inside the HTML file. If you prefer, I’ve made a video example here. Usage Make an instance of the formUtil class […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/phasergames.com\/downloads\/phaser-3-input-text-example-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Phaser Games\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-10T08:47:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/media.publit.io\/file\/w_1024,h_640,c_fit,q_80\/websiteImages\/phasergames\/289.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"640\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/phasergames.com\/downloads\/phaser-3-input-text-example-code\/\",\"url\":\"https:\/\/phasergames.com\/downloads\/phaser-3-input-text-example-code\/\",\"name\":\"Phaser 3 Input Text Example Code - Phaser Games\",\"isPartOf\":{\"@id\":\"https:\/\/phasergames.com\/#website\"},\"datePublished\":\"2018-12-09T08:17:23+00:00\",\"dateModified\":\"2020-06-10T08:47:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/phasergames.com\/downloads\/phaser-3-input-text-example-code\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/phasergames.com\/downloads\/phaser-3-input-text-example-code\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/phasergames.com\/downloads\/phaser-3-input-text-example-code\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/phasergames.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Downloads\",\"item\":\"https:\/\/phasergames.com\/downloads\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Phaser 3 Input Text Example Code\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/phasergames.com\/#website\",\"url\":\"https:\/\/phasergames.com\/\",\"name\":\"Phaser Games\",\"description\":\"Tutorials Code and Resources\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/phasergames.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Phaser 3 Input Text Example Code - Phaser Games","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/phasergames.com\/downloads\/phaser-3-input-text-example-code\/","og_locale":"en_US","og_type":"article","og_title":"Phaser 3 Input Text Example Code - Phaser Games","og_description":"Needing a way to put text input into a Phaser 3 game, I came up with this FormUtil.js class. You can read more about it here. This example relies on you placing form elements inside the HTML file. If you prefer, I’ve made a video example here. Usage Make an instance of the formUtil class […]","og_url":"https:\/\/phasergames.com\/downloads\/phaser-3-input-text-example-code\/","og_site_name":"Phaser Games","article_modified_time":"2020-06-10T08:47:06+00:00","og_image":[{"width":1024,"height":640,"url":"https:\/\/media.publit.io\/file\/w_1024,h_640,c_fit,q_80\/websiteImages\/phasergames\/289.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/phasergames.com\/downloads\/phaser-3-input-text-example-code\/","url":"https:\/\/phasergames.com\/downloads\/phaser-3-input-text-example-code\/","name":"Phaser 3 Input Text Example Code - Phaser Games","isPartOf":{"@id":"https:\/\/phasergames.com\/#website"},"datePublished":"2018-12-09T08:17:23+00:00","dateModified":"2020-06-10T08:47:06+00:00","breadcrumb":{"@id":"https:\/\/phasergames.com\/downloads\/phaser-3-input-text-example-code\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/phasergames.com\/downloads\/phaser-3-input-text-example-code\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/phasergames.com\/downloads\/phaser-3-input-text-example-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/phasergames.com\/"},{"@type":"ListItem","position":2,"name":"Downloads","item":"https:\/\/phasergames.com\/downloads\/"},{"@type":"ListItem","position":3,"name":"Phaser 3 Input Text Example Code"}]},{"@type":"WebSite","@id":"https:\/\/phasergames.com\/#website","url":"https:\/\/phasergames.com\/","name":"Phaser Games","description":"Tutorials Code and Resources","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/phasergames.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en"}]}},"_links":{"self":[{"href":"https:\/\/phasergames.com\/wp-json\/wp\/v2\/edd-downloads\/8628"}],"collection":[{"href":"https:\/\/phasergames.com\/wp-json\/wp\/v2\/edd-downloads"}],"about":[{"href":"https:\/\/phasergames.com\/wp-json\/wp\/v2\/types\/download"}],"author":[{"embeddable":true,"href":"https:\/\/phasergames.com\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":4,"href":"https:\/\/phasergames.com\/wp-json\/wp\/v2\/edd-downloads\/8628\/revisions"}],"predecessor-version":[{"id":19320,"href":"https:\/\/phasergames.com\/wp-json\/wp\/v2\/edd-downloads\/8628\/revisions\/19320"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/phasergames.com\/wp-json\/wp\/v2\/media\/8624"}],"wp:attachment":[{"href":"https:\/\/phasergames.com\/wp-json\/wp\/v2\/media?parent=8628"}],"wp:term":[{"taxonomy":"download_category","embeddable":true,"href":"https:\/\/phasergames.com\/wp-json\/wp\/v2\/edd-categories?post=8628"},{"taxonomy":"download_tag","embeddable":true,"href":"https:\/\/phasergames.com\/wp-json\/wp\/v2\/edd-tags?post=8628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}