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

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":16754,"date":"2020-03-30T07:21:50","date_gmt":"2020-03-30T00:21:50","guid":{"rendered":"https:\/\/phasergames.com\/?post_type=download&p=16754"},"modified":"2020-06-16T11:42:00","modified_gmt":"2020-06-16T04:42:00","slug":"ultimate-game-parts-template-for-phaser-3-2","status":"publish","type":"download","link":"https:\/\/phasergames.com\/downloads\/ultimate-game-parts-template-for-phaser-3-2\/","title":{"rendered":"Ultimate Game Parts Template for Phaser 3"},"content":{"rendered":"

version 3.1.4<\/p>\n

You can find full set up instructions for this template here<\/a>.<\/p>\n

This version of the ultimate game parts template was built upon the phaser 3 project template by Richard Davey<\/p>\n

https:\/\/github.com\/photonstorm\/phaser3-project-template<\/a><\/p>\n

The following comments are taken from the documentation from the phaser3 project template<\/p>\n

<\/a>Requirements<\/h2>\n

Node.js<\/a>\u00a0is required to install dependencies and run scripts via\u00a0npm<\/code>.<\/p>\n

<\/a>Available Commands<\/h2>\n\n\n\n\n\n\n\n
Command<\/th>\nDescription<\/th>\n<\/tr>\n<\/thead>\n
npm install<\/code><\/td>\nInstall project dependencies<\/td>\n<\/tr>\n
npm start<\/code><\/td>\nBuild project and open web server running project<\/td>\n<\/tr>\n
npm run build<\/code><\/td>\nBuilds code bundle with production settings (minification, uglification, etc..)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

<\/a>Writing Code<\/h2>\n

After cloning the repo, run\u00a0npm install<\/code>\u00a0from your project directory. Then, you can start the local development server by running\u00a0npm start<\/code>.<\/p>\n

After starting the development server with\u00a0npm start<\/code>, you can edit any files in the\u00a0src<\/code>\u00a0folder and webpack will automatically recompile and reload your server (available at\u00a0http:\/\/localhost:8080<\/code>\u00a0by default).<\/p>\n

<\/a>Deploying Code<\/h2>\n

After you run the\u00a0npm run build<\/code>\u00a0command, your code will be built into a single bundle located at\u00a0dist\/bundle.min.js<\/code>\u00a0along with any other assets you project depended.<\/p>\n

If you put the contents of the\u00a0dist<\/code>\u00a0folder in a publicly-accessible location (say something like\u00a0http:\/\/mycoolserver.com<\/code>), you should be able to open\u00a0http:\/\/mycoolserver.com\/index.html<\/code>\u00a0and play your game. “# phaser-ultimate-template”<\/p>\n

<\/a>Setting up a scene<\/h2>\n

Most of the common functions are found inside the baseScene class. You make scenes that extend this class to have access to those functions<\/p>\n

\n
export<\/span> class<\/span> SceneMain<\/span> extends<\/span> BaseScene<\/span> {\r\n    constructor<\/span>() {\r\n        super<\/span>('<\/span>SceneMain'<\/span><\/span>);\r\n    }\r\n    preload<\/span>() {}\r\n    create<\/span>() {\r\n\r\n        \/\/set up the base scene<\/span>\r\n        super<\/span>.create<\/span>();\r\n\r\n      }\r\n      update<\/span>(){ }\r\n\r\n      }<\/pre>\n<\/div>\n

<\/a>Setting up an align grid<\/h2>\n

This project works by placing game objects on a grid that scales with a dynamically sized canvas.<\/p>\n

You can do this inside any scene that extends baseScene<\/p>\n

\n
create<\/span>() {\r\n\r\n        \/\/set up the base scene<\/span>\r\n        super<\/span>.create<\/span>();\r\n\r\n        \/\/set the grid for the scene<\/span>\r\n        this<\/span>.makeAlignGrid<\/span>(11<\/span>, 11<\/span>);\r\n\r\n        \/\/show numbers for layout and debugging <\/span>\r\n        this<\/span>.aGrid<\/span>.showNumbers<\/span>();\r\n\r\n\r\n      }<\/pre>\n<\/div>\n

<\/a>Adding Images<\/h2>\n

Use placeImage to add an image on the grid and scale it.<\/p>\n

<\/a>Usage<\/h3>\n

this.placeImage(key,grid_number,percentage_of_screen_width)<\/p>\n

<\/a>Example<\/h3>\n

this.placeImage(“face”,60,.25);<\/p>\n

<\/a>Adding Text<\/h2>\n

You can place text on the grid by using placeText.<\/p>\n

<\/a>Usage<\/h3>\n

this.placeText(text,grid_number,text_style);<\/p>\n

<\/a>Example<\/h3>\n

this.placeText(“Game Title”,27,”TITLE_TEXT”);<\/p>\n

<\/a>Adding Reusable Text Styles<\/h2>\n

<\/a>Usage<\/h3>\n

this.textStyles.regSimple(key, color, fontSize, font);<\/p>\n

<\/a>Example<\/h3>\n

this.textStyles.regSimple(“SCORE”, “#ffff00”, TextStyles.SIZE_LARGE, “Impact”);<\/p>\n","protected":false},"excerpt":{"rendered":"

version 3.1.4 You can find full set up instructions for this template here. This version of the ultimate game parts template was built upon the phaser 3 project template by Richard Davey https:\/\/github.com\/photonstorm\/phaser3-project-template The following comments are taken from the documentation from the phaser3 project template Requirements Node.js\u00a0is required to install dependencies and run scripts […]<\/p>\n","protected":false},"author":1,"featured_media":16756,"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":[65,34],"edd-tags":[],"class_list":["post-16754","download","type-download","status-publish","has-post-thumbnail","hentry","download_category-premium","download_category-templates","edd-download","edd-download-cat-premium","edd-download-cat-templates"],"yoast_head":"\nUltimate Game Parts Template for Phaser 3 - 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\/ultimate-game-parts-template-for-phaser-3-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ultimate Game Parts Template for Phaser 3 - Phaser Games\" \/>\n<meta property=\"og:description\" content=\"version 3.1.4 You can find full set up instructions for this template here. This version of the ultimate game parts template was built upon the phaser 3 project template by Richard Davey https:\/\/github.com\/photonstorm\/phaser3-project-template The following comments are taken from the documentation from the phaser3 project template Requirements Node.js\u00a0is required to install dependencies and run scripts […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/phasergames.com\/downloads\/ultimate-game-parts-template-for-phaser-3-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Phaser Games\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-16T04:42:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/media.publit.io\/file\/w_300,h_300,c_fit,q_80\/websiteImages\/phasergames\/ulitmate_template.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/phasergames.com\/downloads\/ultimate-game-parts-template-for-phaser-3-2\/\",\"url\":\"https:\/\/phasergames.com\/downloads\/ultimate-game-parts-template-for-phaser-3-2\/\",\"name\":\"Ultimate Game Parts Template for Phaser 3 - Phaser Games\",\"isPartOf\":{\"@id\":\"https:\/\/phasergames.com\/#website\"},\"datePublished\":\"2020-03-30T00:21:50+00:00\",\"dateModified\":\"2020-06-16T04:42:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/phasergames.com\/downloads\/ultimate-game-parts-template-for-phaser-3-2\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/phasergames.com\/downloads\/ultimate-game-parts-template-for-phaser-3-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/phasergames.com\/downloads\/ultimate-game-parts-template-for-phaser-3-2\/#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\":\"Ultimate Game Parts Template for Phaser 3\"}]},{\"@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":"Ultimate Game Parts Template for Phaser 3 - 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\/ultimate-game-parts-template-for-phaser-3-2\/","og_locale":"en_US","og_type":"article","og_title":"Ultimate Game Parts Template for Phaser 3 - Phaser Games","og_description":"version 3.1.4 You can find full set up instructions for this template here. This version of the ultimate game parts template was built upon the phaser 3 project template by Richard Davey https:\/\/github.com\/photonstorm\/phaser3-project-template The following comments are taken from the documentation from the phaser3 project template Requirements Node.js\u00a0is required to install dependencies and run scripts […]","og_url":"https:\/\/phasergames.com\/downloads\/ultimate-game-parts-template-for-phaser-3-2\/","og_site_name":"Phaser Games","article_modified_time":"2020-06-16T04:42:00+00:00","og_image":[{"width":300,"height":300,"url":"https:\/\/media.publit.io\/file\/w_300,h_300,c_fit,q_80\/websiteImages\/phasergames\/ulitmate_template.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/phasergames.com\/downloads\/ultimate-game-parts-template-for-phaser-3-2\/","url":"https:\/\/phasergames.com\/downloads\/ultimate-game-parts-template-for-phaser-3-2\/","name":"Ultimate Game Parts Template for Phaser 3 - Phaser Games","isPartOf":{"@id":"https:\/\/phasergames.com\/#website"},"datePublished":"2020-03-30T00:21:50+00:00","dateModified":"2020-06-16T04:42:00+00:00","breadcrumb":{"@id":"https:\/\/phasergames.com\/downloads\/ultimate-game-parts-template-for-phaser-3-2\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/phasergames.com\/downloads\/ultimate-game-parts-template-for-phaser-3-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/phasergames.com\/downloads\/ultimate-game-parts-template-for-phaser-3-2\/#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":"Ultimate Game Parts Template for Phaser 3"}]},{"@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\/16754"}],"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":6,"href":"https:\/\/phasergames.com\/wp-json\/wp\/v2\/edd-downloads\/16754\/revisions"}],"predecessor-version":[{"id":19472,"href":"https:\/\/phasergames.com\/wp-json\/wp\/v2\/edd-downloads\/16754\/revisions\/19472"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/phasergames.com\/wp-json\/wp\/v2\/media\/16756"}],"wp:attachment":[{"href":"https:\/\/phasergames.com\/wp-json\/wp\/v2\/media?parent=16754"}],"wp:term":[{"taxonomy":"download_category","embeddable":true,"href":"https:\/\/phasergames.com\/wp-json\/wp\/v2\/edd-categories?post=16754"},{"taxonomy":"download_tag","embeddable":true,"href":"https:\/\/phasergames.com\/wp-json\/wp\/v2\/edd-tags?post=16754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}