Skip to content

yapicimurat/ship-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

2D SHIP GAME

Simple 2D HTML Canvas game in JavaScript

Frameworks

p5.js socket.io

What to set to use

1.Go to ship/client/index.html
Change <YOUR_IP> with your IP
<script src="http://<YOUR_IP>:3000/socket.io/socket.io.js"></script>
2.Go to ship/client/game.js
Change <YOUR_IP> with your IP
static connectToServer(io)
{
    Game.socket = io.connect('http://<YOUR_IP>:3000');
    Game.socket.on('connect',function()
    {
        player.id = Game.socket.id;
        console.log(Game.socket.id);
        Game.reportNewLogin();
    });
}

Setup to build project

* There are two dependencies in "ship/server/package.json"

You should install all of dependencies using by npm install command.

Screenshot from the game

Image

About

2D Simple HTML Canvas Multiplayer Ship Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published