https://github.com/congcoi123/tenio-phaserjs
This is a client of TenIO project based on Phaserjs.
https://github.com/congcoi123/tenio-phaserjs
game-server javascript js phaser phaserjs server-game tenio websocket ws
Last synced: 10 days ago
JSON representation
This is a client of TenIO project based on Phaserjs.
- Host: GitHub
- URL: https://github.com/congcoi123/tenio-phaserjs
- Owner: congcoi123
- License: mit
- Created: 2019-12-09T13:04:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-17T12:18:56.000Z (almost 5 years ago)
- Last Synced: 2025-03-29T22:41:17.767Z (about 1 month ago)
- Topics: game-server, javascript, js, phaser, phaserjs, server-game, tenio, websocket, ws
- Language: JavaScript
- Homepage: https://congcoi123.dev
- Size: 512 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# TenIO Phaserjs [](https://twitter.com/intent/tweet?text=TenIO%20is%20a%20java%20NIO%20based%20server%20specifically%20designed%20for%20multiplayer%20games.%0D%0A&url=https://github.com/congcoi123/tenio%0D%0A&hashtags=tenio,java,gameserver,multiplayer,nio,netty,jetty,msgpack,cocos2dx,unity,libgdx,phaserjs%0D%0A&via=congcoi123)
This is a client of [TenIO](https://github.com/congcoi123/tenio) project base on Phaserjs.## Features
- It's used to simulator the communication between the client and its server via WebSocket.## First glimpse
## Wiki
The [wiki](https://github.com/congcoi123/tenio-js/wiki) provides implementation level details and answers to general questions.## Dependencies
- jquery.min.js
- msgpack.min.js
- bootstrap.min.css
- bootstrap-theme.min.css
- phaser.min.js## License
This project is currently available under the [MIT](LICENSE) License.## Installation
You can get the sources:
```sh
$ git clone https://github.com/congcoi123/tenio-phaserjs.git
```## Contributing
Please check out the [contributing guideline](CONTRIBUTING.md) for more details.## Running the game
For the client, Phaser is included in the code (`js/vendor/phaser.min.js`). You will need [npm](https://www.npmjs.com/) to install the Node.js packages required for the server. To run the server, you'll need to have Node.js installed.Clone the repository. Inside the newly created directory, run `npm install` to install the Node.js packages listed in `package.json`. Then run `node server.js` to start the server. The server will listen to connections on port `9999`. You can change that behaviour by editing the code. After that, you can access the app by navigating to `http://localhost:9999`.
In the nutshell:
```sh
$ cd tenio-phaserjs
$ npm install
$ node server.js
```## Other clients
| [
TenIO Cocos2dx](https://github.com/congcoi123/tenio-cocos2dx)
| [
TenIO Unity](https://github.com/congcoi123/tenio-unity)
| [
TenIO Libgdx](https://github.com/congcoi123/tenio-libgdx)
|
| :-----------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------: |## Running
Please start the server in example 7 before running this client.```txt
|-- example
|-- example7
| |-- TestServerPhaserjs.java
```> Happy coding !