Moving a Socket.IO/Express game project to Meteor with minimal code changes

I’m a Meteor beginner, and I’m trying to move this project: https://github.com/ahung89/bomb-arena to a Meteor project.

The linked project is an HTML5 multiplayer arena-style combat game, very similar to Bomberman. It uses the following technology:

  • Phaser
  • Socket.io
  • Node
  • Heroku
  • Gulp
  • Browserify/Watchify
  • Photoshop
  • Tiled
  • TexturePacker

How should I go about ‘changing’ this to a Meteor project? More specifically, the socket.io and express lines of code in server.js, what should they be changed to?

Hi @jorminator,

I’ve used both Meteor and Socket.io to build web applications.

You can’t convert Socket.io to Meteor just by changing the server.js. The difference is more fundamental than that.

Start by trying to rebuild some of the app in Meteor using the https://guide.meteor.com/.

Meteor is best for “dashboard” apps - Socket.io might be a better choice for a web game.

Cheers!

Mike

hi @michaelcole
i’ve been looking for use meteor and socket io

can you share your setup?
can I use meteor angular 2 with socket io?