Skip to content

gundb/gaming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gaming

No frills p2p gaming server.

Please send us your game! We'd love to list it and help advertise it!

Deploy your own with:

Deploy

And then connect to it from any page via:

<html>
  <head>
    <script src="https://rawgit.com/amark/gun/master/gun.js"></script>
    <script src="https://rawgit.com/amark/gun/master/lib/nts.js"></script>
    <script>
      // You can use this gaming server for testing, but please run your own!
      var gun = Gun("https://gungame.herokuapp.com/gun");
      var game = gun.get("your-alias/your-game-name");
    </script>
  </head>
</html>

Note: It is important to include the nts.js library with gun for gaming, it synchronizes the clocks of connected devices.

You might also find the synchronous extension helpful for building games. You don't want to be making async calls on every frame.

About

No frills p2p gaming server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published