Skip to content

congcoi123/tenio-phaserjs

Repository files navigation

TenIO Phaserjs Tweet

This is a client of TenIO project base on Phaserjs.

Features

  • It's used to simulator the communication between the client and its server via WebSocket.

First glimpse

Simple Movement Simulation

Wiki

The 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.

Installation

You can get the sources:

$ git clone https://github.com/congcoi123/tenio-phaserjs.git

Contributing

Please check out the contributing guideline for more details.

Running the game

For the client, Phaser is included in the code (js/vendor/phaser.min.js). You will need npm 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:

$ cd tenio-phaserjs
$ npm install
$ node server.js

Other clients


TenIO Cocos2dx


TenIO Unity


TenIO Libgdx

Running

Please start the server in example 7 before running this client.

|-- example
    |-- example7
    |   |-- TestServerPhaserjs.java

Happy coding !