├── .dockerignore ├── .github └── workflows │ └── main.yml ├── .gitignore ├── .prettierrc ├── .vscode └── settings.json ├── Dockerfile ├── LICENSE ├── README.md ├── docker-compose.yml ├── package.json ├── readme └── phaser-with-nodejs.png ├── src ├── client │ ├── assets │ │ ├── box.png │ │ ├── bug.png │ │ ├── controls.png │ │ ├── dude.png │ │ ├── fullscreen.png │ │ ├── mummy37x45.png │ │ ├── star.png │ │ └── starfield.jpg │ ├── components │ │ ├── animations.ts │ │ ├── controls.ts │ │ ├── cursors.ts │ │ ├── fullscreenButton.ts │ │ ├── fullscreenEvent.ts │ │ ├── resize.ts │ │ └── texts.ts │ ├── config.ts │ ├── game.ts │ ├── index.html │ ├── index.ts │ └── scenes │ │ ├── mainScene.ts │ │ ├── menuScene.ts │ │ └── preloadScene.ts ├── constants.ts ├── physics │ ├── game.ts │ ├── index.html │ └── index.ts ├── server │ ├── game │ │ ├── arcadeObjects │ │ │ ├── box.ts │ │ │ ├── dude.ts │ │ │ ├── map.ts │ │ │ ├── mummy.ts │ │ │ └── star.ts │ │ ├── config.ts │ │ ├── game.ts │ │ ├── matterObjects │ │ │ ├── box.ts │ │ │ ├── dude.ts │ │ │ ├── matterGameObject.ts │ │ │ ├── matterGameObjectGroup.ts │ │ │ └── star.ts │ │ └── scenes │ │ │ ├── arcadeScene.ts │ │ │ └── matterScene.ts │ ├── managers │ │ ├── roomManager.ts │ │ └── syncManager.ts │ ├── routes │ │ └── routes.ts │ ├── server.ts │ └── socket │ │ ├── ioGame.ts │ │ └── ioStats.ts └── stats │ ├── index.html │ └── index.ts ├── tsconfig.json ├── typings └── custom.d.ts └── webpack ├── webpack.client.cjs ├── webpack.client.prod.cjs ├── webpack.physics.cjs ├── webpack.physics.prod.cjs ├── webpack.server.cjs ├── webpack.stats.cjs └── webpack.stats.prod.cjs /.dockerignore: -------------------------------------------------------------------------------- 1 | /* 2 | !/dist 3 | !package*.json -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "git.enabled": true 3 | } 4 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/package.json -------------------------------------------------------------------------------- /readme/phaser-with-nodejs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/readme/phaser-with-nodejs.png -------------------------------------------------------------------------------- /src/client/assets/box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/assets/box.png -------------------------------------------------------------------------------- /src/client/assets/bug.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/assets/bug.png -------------------------------------------------------------------------------- /src/client/assets/controls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/assets/controls.png -------------------------------------------------------------------------------- /src/client/assets/dude.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/assets/dude.png -------------------------------------------------------------------------------- /src/client/assets/fullscreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/assets/fullscreen.png -------------------------------------------------------------------------------- /src/client/assets/mummy37x45.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/assets/mummy37x45.png -------------------------------------------------------------------------------- /src/client/assets/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/assets/star.png -------------------------------------------------------------------------------- /src/client/assets/starfield.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/assets/starfield.jpg -------------------------------------------------------------------------------- /src/client/components/animations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/components/animations.ts -------------------------------------------------------------------------------- /src/client/components/controls.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/components/controls.ts -------------------------------------------------------------------------------- /src/client/components/cursors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/components/cursors.ts -------------------------------------------------------------------------------- /src/client/components/fullscreenButton.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/components/fullscreenButton.ts -------------------------------------------------------------------------------- /src/client/components/fullscreenEvent.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/components/fullscreenEvent.ts -------------------------------------------------------------------------------- /src/client/components/resize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/components/resize.ts -------------------------------------------------------------------------------- /src/client/components/texts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/components/texts.ts -------------------------------------------------------------------------------- /src/client/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/config.ts -------------------------------------------------------------------------------- /src/client/game.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/game.ts -------------------------------------------------------------------------------- /src/client/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/index.html -------------------------------------------------------------------------------- /src/client/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/index.ts -------------------------------------------------------------------------------- /src/client/scenes/mainScene.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/scenes/mainScene.ts -------------------------------------------------------------------------------- /src/client/scenes/menuScene.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/scenes/menuScene.ts -------------------------------------------------------------------------------- /src/client/scenes/preloadScene.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/client/scenes/preloadScene.ts -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/physics/game.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/physics/game.ts -------------------------------------------------------------------------------- /src/physics/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/physics/index.html -------------------------------------------------------------------------------- /src/physics/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/physics/index.ts -------------------------------------------------------------------------------- /src/server/game/arcadeObjects/box.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/game/arcadeObjects/box.ts -------------------------------------------------------------------------------- /src/server/game/arcadeObjects/dude.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/game/arcadeObjects/dude.ts -------------------------------------------------------------------------------- /src/server/game/arcadeObjects/map.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/game/arcadeObjects/map.ts -------------------------------------------------------------------------------- /src/server/game/arcadeObjects/mummy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/game/arcadeObjects/mummy.ts -------------------------------------------------------------------------------- /src/server/game/arcadeObjects/star.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/game/arcadeObjects/star.ts -------------------------------------------------------------------------------- /src/server/game/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/game/config.ts -------------------------------------------------------------------------------- /src/server/game/game.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/game/game.ts -------------------------------------------------------------------------------- /src/server/game/matterObjects/box.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/game/matterObjects/box.ts -------------------------------------------------------------------------------- /src/server/game/matterObjects/dude.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/game/matterObjects/dude.ts -------------------------------------------------------------------------------- /src/server/game/matterObjects/matterGameObject.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/game/matterObjects/matterGameObject.ts -------------------------------------------------------------------------------- /src/server/game/matterObjects/matterGameObjectGroup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/game/matterObjects/matterGameObjectGroup.ts -------------------------------------------------------------------------------- /src/server/game/matterObjects/star.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/game/matterObjects/star.ts -------------------------------------------------------------------------------- /src/server/game/scenes/arcadeScene.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/game/scenes/arcadeScene.ts -------------------------------------------------------------------------------- /src/server/game/scenes/matterScene.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/game/scenes/matterScene.ts -------------------------------------------------------------------------------- /src/server/managers/roomManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/managers/roomManager.ts -------------------------------------------------------------------------------- /src/server/managers/syncManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/managers/syncManager.ts -------------------------------------------------------------------------------- /src/server/routes/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/routes/routes.ts -------------------------------------------------------------------------------- /src/server/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/server.ts -------------------------------------------------------------------------------- /src/server/socket/ioGame.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/socket/ioGame.ts -------------------------------------------------------------------------------- /src/server/socket/ioStats.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/server/socket/ioStats.ts -------------------------------------------------------------------------------- /src/stats/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/stats/index.html -------------------------------------------------------------------------------- /src/stats/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/src/stats/index.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/tsconfig.json -------------------------------------------------------------------------------- /typings/custom.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/typings/custom.d.ts -------------------------------------------------------------------------------- /webpack/webpack.client.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/webpack/webpack.client.cjs -------------------------------------------------------------------------------- /webpack/webpack.client.prod.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/webpack/webpack.client.prod.cjs -------------------------------------------------------------------------------- /webpack/webpack.physics.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/webpack/webpack.physics.cjs -------------------------------------------------------------------------------- /webpack/webpack.physics.prod.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/webpack/webpack.physics.prod.cjs -------------------------------------------------------------------------------- /webpack/webpack.server.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/webpack/webpack.server.cjs -------------------------------------------------------------------------------- /webpack/webpack.stats.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/webpack/webpack.stats.cjs -------------------------------------------------------------------------------- /webpack/webpack.stats.prod.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yandeu/phaser3-multiplayer-with-physics/HEAD/webpack/webpack.stats.prod.cjs --------------------------------------------------------------------------------