{"repo":"phaserjs/discord-template","free":true,"listed":false,"github":"https://github.com/phaserjs/discord-template","clone":"git clone https://github.com/phaserjs/discord-template.git","description":"A quickstart Phaser template for creating playable Discord Activities","language":"JavaScript","stars":31,"topics":["canvas","discord","game","phaser","phaserjs","webgl"],"license":null,"category":"game-templates","readme_excerpt":"Phaser Discord Games Template This Project Template is a great starting point for creating games on Discord with Phaser, utilising their new Embedded App SDK. It helps you seamlessly integrate custom games and activities into your Discord server, fostering community engagement, interaction, and fun. We have a comprehensive tutorial you can read on the Phaser site, which includes the steps required to create a Discord App and get your Phaser game running as an activity within it. Please work through our tutorial, as it was written to go with this template repository to get you up and running fast. Template Project Structure We have provided a default project structure to get you started. This is as follows: - client - Contains the game & Discord SDK source code. - client/main.js - The main entry point for the client. This contains the game & Discord SDK configuration which starts the game. - client/scenes/ - The Phaser Scenes are in this folder. - client/assets/ - Contains game assets(sprites, sounds, spritesheets, etc). - server/server.js - Contains Discord SDK for OAuth2 connection Handling Assets Vite supports loading assets via JavaScript module import statements. This template provides support for both embedding assets and also loading them from a static folder. To embed an asset, you can import it at the top of the JavaScript file you are using it in: To load static files such as audio files, videos, etc place them into the client/assets folder. Then you can use this pat","default_branch":null,"files":null,"tree":[],"storefront":"/r/phaserjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/phaserjs/discord-template/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}