Skip to content

A simple multiplayer game created with the Phaser library and Socket.io

Notifications You must be signed in to change notification settings

gutogirardon/Phaser-Demo-Sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multiplayer Phaser Game with Socket.io

This is a simple multiplayer game created with the Phaser library and Socket.io. The game runs in the browser and the main objective is to collect stars as part of a team. The teams are divided into blue and red.

Game Rules

Each player controls a character that can move left or right using the arrow keys. The objective of the game is to collect as many stars as possible while avoiding obstacles and other players. The stars appear randomly on the screen and players must collect them by touching them with their character.

The game is won by the team that collects the most stars. Each team's score is displayed on the screen in real-time.

Installation To run this game, you will need to have Node.js installed on your computer. After installing Node.js, follow these steps:

  • Clone the repository to your local machine.
  • Navigate to the project directory in your terminal and run the command npm install.
  • Start the server by running the command node server.js
  • Open a browser window and navigate to http://localhost:8081.

Technologies Used

This game was built using the following technologies:

  • Phaser 3: A JavaScript game development library.
  • Socket.io: A JavaScript library that enables real-time, bidirectional and event-based communication between the browser and the server.
  • Node.js: A JavaScript runtime environment.

Contributing

Contributions are welcome! If you find a bug or have a feature request, please open an issue on this repository.

License

This project is licensed under the MIT License. Feel free to use and modify the code as you see fit.

About

A simple multiplayer game created with the Phaser library and Socket.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages