{"repo":"phaserjs/discord-multiplayer-template","free":true,"listed":false,"github":"https://github.com/phaserjs/discord-multiplayer-template","clone":"git clone https://github.com/phaserjs/discord-multiplayer-template.git","description":"A quickstart Phaser template for creating multiplayer Discord Activities","language":"TypeScript","stars":47,"topics":["canvas","colyseus","discord","game","phaser","webgl","multiplayer","websockets"],"license":null,"category":"game-templates","readme_excerpt":"Phaser Discord Multiplayer Games Template This project template is designed to be used in conjunction with our Creating Multiplayer Discord Games with Phaser tutorial. It provides a starting point for creating multiplayer games on Discord with Colyseus and Phaser, utilising their new Embedded App SDK. Requirements You need to have Node.js v21 or higher version. Template Project Structure We have provided a default project structure to get you started. This is as follows: - packages/client - Contains the game & Discord SDK source code. - packages/client/src/main.ts - The main entry point for the client. This contains the game & Discord SDK configuration which starts the game. - packages/client/src/scenes/ - The Phaser Scenes are in this folder. - packages/client/public/assets/ - Contains game assets(sprites, sounds, spritesheets, etc). - packages/client/src/utils - Contains custom code for responsivity of the game. - packages/server/server.ts - Contains Discord SDK for OAuth2 & initiates WebSocket server for Colyseus. - packages/server/rooms/GameRoom.ts - Contains game session, channels communication between client/server. - packages/server/schemas/GameState.ts - Defines the structure and types of data that can be synchronized between the server and client. 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","default_branch":null,"files":null,"tree":[],"storefront":"/r/phaserjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/phaserjs/discord-multiplayer-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."}