mariante Posted September 3, 2016 Share Posted September 3, 2016 Hi, I'm thinking in few ideas to create a game but i was wondering if is there a way to interact with bluetooth in Phaser (or some javascript pure that its possible to implement). Any ideas?! Thanks in advance Link to comment Share on other sites More sharing options...
carlosnufe Posted September 3, 2016 Share Posted September 3, 2016 Yes, why not, but you are missing the backend. Not backend to handle bluetooth = it does not work. Only front end it is not possible, there is not API to this purpose. mariante 1 Link to comment Share on other sites More sharing options...
tips4design Posted September 3, 2016 Share Posted September 3, 2016 It kinda is, but not well supported: https://developers.google.com/web/updates/2015/07/interact-with-ble-devices-on-the-web?hl=en mariante 1 Link to comment Share on other sites More sharing options...
mariante Posted September 3, 2016 Author Share Posted September 3, 2016 Thanks guys, maybe WebSocket is better.. Any good tutorials by implementing Nodejs or WebsocketIO or others in my games?! Link to comment Share on other sites More sharing options...
tips4design Posted September 3, 2016 Share Posted September 3, 2016 Websockets are pretty easy to use, use a library like Socket.io and you only need a few lines of code to send messages between your server and clients. If you know nothing about multiplayer games you should look at some basic, general tutorials about multiplayer games, game snapshots, interpolation, extrapolation and stuff like that. mariante 1 Link to comment Share on other sites More sharing options...
Recommended Posts