Game with multi player and single player: Create a server even for single player?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bastilo

Hi guys!

I’m developing a game that can be played in single player and multi player. To keep the code simple, can I just create a server (create_server on NetworkedMultiplayerENet) even for the single player mode? Does this have disadvantages like performance issues or problems with HTML5 mode? Or does it work just fine?


:bust_in_silhouette: Reply From: Calinou

Sure, this is how the Multiplayer Bomber demo does it. If there’s only one player, the game can still function as usual.