rameshvarun / netplayjs

Make P2P multiplayer browser games, no server hosting or synchronization code required. Powered by rollback netcode + WebRTC.
https://rameshvarun.github.io/netplayjs/
ISC License
496 stars 34 forks source link

Dissable network debug info? #83

Open zeronobody0 opened 1 year ago

zeronobody0 commented 1 year ago

I'm trying to make a game using this library and it seems like there is an always-on debug info box. Is there any way to disable it?

hchiam commented 6 months ago

i'd like an option for this too. otherwise i have to do this:

canvas + div {
  display: none !important;
}
hchiam commented 6 months ago

i'd like an option for this too. otherwise i have to do this:

canvas + div {
  display: none !important;
}

Alternatively:

class SimpleGame extends netplayjs.Game {
    // ...
}
const game = new netplayjs.LockstepWrapper(SimpleGame);
game.stats.remove();
game.start();