Add to Chrome

Log In

Sign Up

Try Gigabrain PRO

Supercharge your access to the collective wisdom of reddit, youtube, and more.
Learn More
Refine result by
Most Relevant
Most Recent
Most Upvotes
Filter by subreddit
r/learnprogramming
r/gamedev
r/AskProgramming
r/godot
r/node
r/Unity3D
r/playmygame

How to Code a Multiplayer Browser Game?

GigaBrain scanned 63 comments to find you 51 relevant comments from 10 relevant discussions.
Sort
Filter

Sources

Trying to make a multiplayer browser "game", what do I need?
r/learnprogramming • 1
How to implement online multiplayer to a simplistic browser-based + text-based game?
r/gamedev • 2
How should I learn to make a multiplayer web game?
r/AskProgramming • 3
View All
7 more

TLDR

Summary

New

Chat with GigaBrain

What Redditors are Saying

How to Code a Multiplayer Browser Game

Creating a multiplayer browser game involves several components, from client-side development to server-side architecture. Here's a breakdown of key considerations and recommendations based on discussions from various developers.

Client-Side Development

For the client side, JavaScript is essential. If your game has graphical elements, using the HTML <canvas> element can be beneficial [1:1][3:2]. For interface-driven games like Minesweeper, HTML/CSS might suffice. Libraries such as Phaser are recommended for beginners starting with web games [3:4].

Server-Side Architecture

Implementing multiplayer functionality requires a solid understanding of server-client architecture. Many developers use Node.js for the server due to its non-blocking, event-driven nature which suits real-time applications well [5:5]. WebSockets are commonly used for real-time communication between the client and server [3:2], ensuring low-latency interactions.

Game State Management

Managing game state is crucial in multiplayer games. Solutions like boardgame.io provide frameworks specifically designed for turn-based games, handling state management, game discovery, and more [3:1]. For fast-paced games, caching strategies using tools like Redis can enhance performance by reducing database queries during gameplay [5:3].

Multiplayer Networking

Networking can be challenging, especially for beginners. Some developers recommend starting with single-player games before moving to multiplayer [3:4]. For those ready to dive into multiplayer, understanding concepts like peer-to-peer (P2P) versus dedicated servers is important. P2P can simplify development but may introduce cheating risks [4:4].

Tools and Frameworks

Unity is a popular choice for developing multiplayer games due to its robust support for networking and available plugins [3:3]. However, it's noted that Unity might not be the easiest path for beginners unfamiliar with C# or its ecosystem [5:8]. Exploring simpler solutions like Steam's relay services or other networking libraries can be advantageous [5:7].

In conclusion, building a multiplayer browser game requires a blend of front-end and back-end skills, careful planning of game mechanics, and efficient state management. Starting with simpler projects and progressively incorporating multiplayer elements can provide a manageable learning curve.

See less

Helpful

Not helpful

You have reached the maximum number of searches allowed today.

Gigabrain for Chrome works on Bing too.

It's not just for google search! The Gigabrain extension can also bring you the most relevant and informative answers when you search on Bing.

Add to Chrome

Source Threads

POST SUMMARY • [1]

Summarize

Trying to make a multiplayer browser "game", what do I need?

Posted by AWrongUsername · in r/learnprogramming · 5 years ago
1 upvotes on reddit
2 replies
Helpful
Not helpful
View Source
ORIGINAL POST

Me and my buddy have made some projects using PHP before. We know HTML, CSS, PHP and a little javascript. What will I need to learn to make a small browser game that you can play multiplayer? We would like to avoid PHP for our next project. We would like to make a small minesweeper like game, but cooperative.

2 replies
M
my_password_is______ · 5 years ago

http://phaser.io/examples

2 upvotes on reddit
C
CreativeTechGuyGames · 5 years ago

You'll definitely need a lot more JavaScript knowledge. If your game is graphically intensive you probably want to use Canvas. If it's more interface driven (like minesweeper) then using HTML/CSS as your interface would probably make more sense. You don't need much else beyond that.

1 upvotes on reddit
See 2 replies
r/gamedev • [2]

Summarize

How to implement online multiplayer to a simplistic browser-based + text-based game?

Posted by BoostToDiamond · in r/gamedev · 5 years ago

Hey there, I'm a complete beginner when it comes to game development, but I have an idea of a game I would like to create. The game is very simplistic on the graphical side (text-based), but I have no idea of how to implement multiplayer to it. An example of a similar type of game would be TypeRacer. In this example I would be able to create an offline version of TypeRacer where I could test my own typing speed (By using Html/css/javascript). But I have no idea how to make it possible for, in example, 2 people to compete against eachother.

I hope the question was understandable and not too general.

1 upvotes on reddit
2 replies
Helpful
Not helpful
View Source
2 replies
weigert · 5 years ago

I have written a small blog post on this before http://weigert.vsos.ethz.ch/2017/05/14/simple-online-multiplayer/. It has full source code. If you think what I do is suitable for your needs, feel free to PM me if you have more questions.

5 upvotes on reddit
BoostToDiamond · OP · 5 years ago

Thanks alot!

2 upvotes on reddit
See 2 replies
r/AskProgramming • [3]

Summarize

How should I learn to make a multiplayer web game?

Posted by TheLegend008 · in r/AskProgramming · 3 years ago

Hey so I have an idea for a multiplayer web game that would work similar to how websites like skribblio let you make lobbies and play simple games with friends, but I'm wondering what I would need to look up/learn to do this project. I know some basic JavaScript, but are there other things in particular I should be looking up on how to learn, or does anyone know how most of these multiplayer web games work? Any advice would be appreciated!

10 upvotes on reddit
4 replies
Helpful
Not helpful
View Source
4 replies
brandons404 · 3 years ago

Probably the <canvas/> html element. And web sockets. I've never made anything like that before but I like the idea. Good luck my friend!

2 upvotes on reddit
chipotle_sauce · 3 years ago

You can use Unity to make it. It supports JavaScript however I would recommend using C#. I'm sure the asset store already has a lot of easy plugins for multiplayer. But honestly, you should learn to make games first then go into multiplayer.

1 upvotes on reddit
N
nutrecht · 3 years ago

> I know some basic JavaScript

Start with a single player web game first then. Mutliplayer is not something that's suitable for a beginner. Phaser is a good start for web games.

3 upvotes on reddit
Rurouni · 3 years ago

Depending on your game's requirements, you might consider investigating boardgame.io. It is focused on turn-based board games, but that might be all you need. They discuss state management (including secrets), game discovery, turn processing, and other useful features.

1 upvotes on reddit
See 4 replies
r/godot • [4]

Summarize

Its making a turn-based multiplayer game this hard?

Posted by NeoCiber · in r/godot · 6 months ago

I'm new to godot but have experience in web development.

I'm developing a simple tic-tac-toe game to learn the basics of multiplayer and matchmaking using the godot `ENetMultiplayerPeer`.

The architecture I'm thinking its this:

  1. Run godot in headless mode as a SERVER and track all the users that connect from the `peer_connected` signal also save each user in a queue (array).
  2. Other CLIENTs that run the game will connect to the server.
  3. When the SERVER queue have at least 2 CLIENTs (players) it starts a match and make a RPC call to also start a match on the CLIENT.
  4. The SERVER match will be the source of truth and the CLIENT just receive updates through RPC calls to update the UI and also they send RPC calls to notify the SERVER about the next move.
  5. The SERVER tracks all the active matches so any number of matches can exists at any time.

In general I will have something like this:

- `class Server` takes care of managing the matches.
- `class ServerPlayer` an entity that represents the player on the server side
- `class ClientPlayer` an entity that represents the player on the client side this is where the UI will exists.

The typical server-client architecture but I'm not sure if I'm overthinking this and there is a easier way of doing this but this its what makes sense to me but I have not experience making multiplayer games.

11 upvotes on reddit
10 replies
Helpful
Not helpful
View Source
10 replies
N
nonchip · 6 months ago

and where's the hard bit you wanna ask about?

2 upvotes on reddit
N
NeoCiber · OP · 6 months ago

I call the server-client architecture HARD because I don't know if that's a proper way here.

The other comment recommend making the player the server which it's more p2p

1 upvotes on reddit
N
nonchip · 6 months ago

but not knowing if something is the right option has nothing to do with implementing the option being hard? i don't think i understand your question?

now about the choice of approach, i'd personally use the highlevel/scenetree multiplayer, where the server spawns one node per player, and they use RPCs (and a MultiplayerSynchronized board) to communicate. simply because it's less manual legwork of figuring out a dedicated communication protocol etc.

0 upvotes on reddit
BainterBoi · 6 months ago

Was thinking same. Pretty standard, nothing too complex stuff here? :D

1 upvotes on reddit
T
tenuki_ · 6 months ago

Just have one of the clients run the server ie p2p.

My recommendation is to follow the example for networking in the manual. After that you should have a better idea.

19 upvotes on reddit
N
NeoCiber · OP · 6 months ago

Yeah, I started like that, was simpler I but want to run a dedicated server that manages the matches by itself without UI, I'm not sure how to translate it to that use case without the server-client architecture.

1 upvotes on reddit
T
tenuki_ · 6 months ago

https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_dedicated_servers.html#doc-exporting-for-dedicated-servers

4 upvotes on reddit
S
Seubmarine · 6 months ago

And now the host can cheat however it wants, it's just a tic tac toe, but depending on the kind of game you make, but p2p will enable the at least one player to cheat easily.

It.'s better to learn the proper way with a simple game like tic ta toe.

For cooperative game where you know that players will know each others like phasmophobia, terraria, you don't really care.

But if there's anything competitive and matchmaking in your game you don't want one player to have any advantage over another client.

-8 upvotes on reddit
T
tenuki_ · 6 months ago

OP asked how to make tic tack toe to learn networking…..

17 upvotes on reddit
N
NeoCiber · OP · 6 months ago

What's the other way?

1 upvotes on reddit
See 10 replies
r/gamedev • [5]

Summarize

Multiplayer Developer Noob Here - Quick Question

Posted by Peterama · in r/gamedev · 3 months ago

I’ve tried making a multiplayer game a few times before, but never with much success. This time though, everything’s actually working as expected—so I guess you could say this is my first real multiplayer programming project! I just want to make sure I’m not wasting my time here, heh. Since I only just started, I can still change things if needed.

I'm using Unity as a client, Node as the server and MongoDB for storage. The game is fast-paced and turn-based with real-time timers using a WebSocket connection.

Is this a common setup? What setup have you used? Is there a “better” way to do things, or anything I should know before diving in too deep? Any advice or wisdom would be really appreciated!

I'm making this game mostly for my friends, so I don't expect a large number of players—but you never know. People win the lottery all the time! ;)

Thank you.

[edit] spelling error :)

1 upvotes on reddit
11 replies
Helpful
Not helpful
View Source
11 replies
P
PhilippTheProgrammer · 3 months ago

Keep in mind that even though MongoDB is relatively fast thanks to in-memory caching, it's still much slower than the memory of the Node server. Probably by several orders of magnitude. Especially when database and gameserver don't run on the same hardware. So you should consider to not query the database for every information during ongoing games. The database should only be used for "cold" data or data that is used very rarely.

2 upvotes on reddit
Peterama · OP · 3 months ago

OK, good to know, thank you! So far it is just storing user login information and their game stats. I am also using it to manage my tickets for matchmaking and private lobbies but maybe I can just use Node for that.

1 upvotes on reddit
AdOther7046 · 3 months ago

U might also need redis for best performance for your game. IF dont want to pay for it, then u need to cache all user data to node.js memory, which then limits your application to a single instance and prevents load balancing.

2 upvotes on reddit
AdOther7046 · 3 months ago

for exmaple if you game has chat, you want to have some ratelimiting so users cant send milliom messages per second. So every time the user sends chat, the backend server must check does he have "chat-tokens". And where you store this chat-tokens? in some cache, not in database. because db query per message is not good.

But also obiviously add the ratelimiting in clientside.

2 upvotes on reddit
Peterama · OP · 3 months ago

Good point. Thank you, I'll see if it is worth paying for. This is just a small user base project for now but you make a good argument.

1 upvotes on reddit
Peterama · OP · 3 months ago

Thanks again. I looked into this and yes, Redis makes a lot of sense and is not too expensive for what I'll be doing. As a proof of concept, I'll get the game working in Node for now and if there is more interest, beyond my friends, I'll add Redis into the mix. I appreciate it.

1 upvotes on reddit
melisa_don · 3 months ago

Totally valid setup! Unity + Node + MongoDB works well for turn-based games. Just watch for scalability stuff later—you're on the right track

2 upvotes on reddit
Peterama · OP · 3 months ago

Thank you! I appreciate that. Phew!

1 upvotes on reddit
SantaGamer · 3 months ago

Well you sure ain't doing it the easy way.

Most people making multiplayer games just use something like netcode, mirror or fishnet for their networking stuff and Steam's relay (p2p free) which is pretty easy in the end

2 upvotes on reddit
Peterama · OP · 3 months ago

Man.... I never thought of Steam. I've tried using netcode and mirror in the past but those two specifically I ran into problems. I think the code ownership confused me, Like how the code is the client & server. Never used fishnet.

I guess I'm doing it this way because it's working.
I'll look into steams p2p. Thanks!

1 upvotes on reddit
S
ScaryBee · 3 months ago

>I think the code ownership confused me, Like how the code is the client & server.

Totally ... I get why it's like this but it feels like there should be some simple architectural patterns/guidance on how to write code in this situation ... I've started splitting classes/objects into having client/server 'sides' to make it easier to understand WTF is happening where but ... still a lot to parse.

2 upvotes on reddit
See 11 replies
r/node • [6]

Summarize

Making a multiplayer pong game

Posted by Sure_Ad_3391 · in r/node · 1 month ago

Is node a good option for building a multiplayer pong game (as in you can create a lobby and have someone join it from another computer)? I've seen concerns about node handling realtime multiplayer but was hoping for some more input on this.

3 upvotes on reddit
4 replies
Helpful
Not helpful
View Source
4 replies
fuccdevin · 1 month ago

research Websockets. That will allow you to do realtime state changes. I’ve used it to do chat apps and a “painting with friends” like app. It’s a steep learning curve if you have never touched sockets before. Once you get it working you never want to not use sockets for applicable stuff.
here is a good jumping off resource: https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers

edit: there are also packages/frameworks specifically for games using websockets but I don’t know any off the top of my head

2 upvotes on reddit
europeanputin · 1 month ago

I would go with webrtc for a game like pong since webrtc runs over UDP unlike websockets which is an upgraded TCP. It also comes with a learning curve though.

1 upvotes on reddit
L
lovesrayray2018 · 1 month ago

Yes, if u are proficient in node already. Given that pong isnt a very compute intensive game and doesnt have very complex gameplay calculations involved for each communication update it shouldnt overwhelm node. Game state updates in pong probably wouldnt require nanosecond sync either and shouldnt overwhelm nodes's i/o unless you have a massive player base. Latency is partly dependent on your infrstructure and concurrent playerbase count, shouldnt be a bottleneck at the outset. ofc dont try using node alone, use websockets for the broadcast and targeted communication.

1 upvotes on reddit
Thin_Put7802 · 1 month ago

Yes, Node.js is a good choice for a multiplayer Pong game. Pong is lightweight, so you don’t need ultra-low latency or complex networking.

Use WebSockets (via ws or socket.io ) to handle real-time communication. Node can easily manage lobbies, player inputs, and game state updates.

WebRTC isn’t necessary unless you're aiming for peer-to-peer with very low latency, which is overkill for a basic Pong.

If you're already familiar with Node, go for it. Just keep your update loop simple and avoid sending too much data too often.

2 upvotes on reddit
See 4 replies
r/Unity3D • [7]

Summarize

Can you make a multiplayer browser game with Unity?

Posted by BettyLaBomba · in r/Unity3D · 3 years ago

Any resources on building a multiplayer game that I can export to the browser?

1 upvotes on reddit
2 replies
Helpful
Not helpful
View Source
2 replies
Kaosumaru · 3 years ago

Yes, you can. Look at the photon library. Though, it can be a daunting task if you are a beginner.

2 upvotes on reddit
B
BettyLaBomba · OP · 3 years ago

I have some experience with photon (not a finished project, all I did was get some simple LAN games working with multiplayer)

1 upvotes on reddit
See 2 replies
r/gamedev • [8]

Summarize

Creating a simple 2D browser multiplayer game

Posted by vroemboem · in r/gamedev · 4 years ago

I would like to create a simple 2D browser based card game with cross play with mobile app versions. People would have their own profile with play statistics.

What would be the ideal programming languages and technologies for this project?

I have some knowledge of HTML, CSS, PHP, Javascript and MySQL.

03 replies
Helpful
Not helpful
View Source
3 replies
the_blanker · 4 years ago

For android you can make simple app with webview component (embedded browser) in it that just displays your page. It's 10 lines of code.

1 upvotes on reddit
T
TristoMenace · 4 years ago

You could achieve that quite easily with the languages you mentioned. Assuming you understand the basics of what you're trying to achieve (handling card logic, player turns, etc) the rest is just hooking it together to make it work.

Have a look into techniques such as polling, web sockets, events. Some good frameworks to learn would be Laravel (PHP) and React/Vue (JavaScript). Given that, you'd have everything you need to create your game. Happy to help answer any specifics you might have.

1 upvotes on reddit
T
TristoMenace · 4 years ago

Perhaps also look into PWA's for the mobile aspect. That way you don't need to create mobile specific apps and get to reuse your web interface across all devices. Pushing updates is a lot easier too, it's as simple as updating the site — you avoid the app stores all together.

2 upvotes on reddit
See 3 replies
r/godot • [9]

Summarize

Godot MMO Writeup

Posted by RespectfulOk · in r/godot · 4 months ago
post image

Hey everyone! I've been messing around with Godot for about 1–2 years, on and off, making small projects and eventually dropping them. Along the way, I’ve created some fun things and picked up a lot of knowledge. I’m definitely not an expert, but I’ve gotten pretty comfortable with it, and I felt like my recent project had some lessons worth sharing.

Over the past two weeks, I have been working on a project similar to an MMO built in Godot, and let me tell you, it is tough. There are so many moving parts that even a small change can ripple out and affect different areas of the codebase.

The core idea I love about MMOs is the persistent data. Everything is saved to a centralized database, so no matter where you log in, your progress follows you. It all gets consolidated into one place, creating a consistent experience across the entire game for everyone.

For my project, I set up the client flow like this: Login/Registration Scene → Main Menu → Join Game. The "Join Game" screen shows a list of available servers, and I can connect to one of my headless servers running on a DigitalOcean droplet. When I join, all my player data is there. Think of RuneScape’s world list where you can hop into any world and your character is always the same.

But multiplayer is where things get really tricky. You have to make sure data is properly synced across peers, and that the server has all the data it needs to run the game smoothly. And that is just the Godot side which is made a lot easier with Multiplayer Spawner and Synchronizer's to handle the bulk of the work. But there is an entirely separate layer with a hosted API that Godot makes calls to, which adds even more complexity.

For my project, I hosted a Ruby on Rails app. Whenever Godot needed data from the database, it would ping the API and return the necessary information.

Is this scalable? That is the question I am working through now. I can easily support 5–10 players on a server, but supporting hundreds would be an entirely different challenge.

One downside to this architecture is that it locks you into an MMO-style setup. What if I want to allow players to host and play on their own servers? That would definitely reduce server costs, but it also opens up new risks. Giving users access to host their own servers could expose the API and database to attacks.

All in all, it has been a really fun project, but scaling it and turning it into something that could be more official would be interesting to see.

Here’s a diagram of the architecture. I should note that it is not a perfect 1:1 representation. There are scenarios where the client can directly make calls to the API, which is not ideal. Ideally, the client would send a request to the Godot server, and the server would make the API call on the client's behalf. However, for simplicity and ease of development, I opted for this approach in my project.

https://preview.redd.it/6qi88seqfcxe1.png?width=702&format=png&auto=webp&s=b543de508825bac86ea0c82c2485bf2e6fc232a1

Example Gameplay

- Showcases chat which heavily uses the multiplayer synchronizer to sync an array of the messages to each peer

- Showcases items getting added and removed from the player's inventory which are saved via calls to the API

https://reddit.com/link/1k8zvup/video/8inrb56ygcxe1/player

10 upvotes on reddit
6 replies
Helpful
Not helpful
View Source
6 replies
F
FrozenFirebat · 4 months ago

That's a good first step. How is the inventory handled? Does the Clients just say they are dropping item slot x and the server is authoritative on what was in that inventory. Otherwise the client could say they dropped anything if the client was cheating. What about movements and actions? Do you ask the client to update the server on it's position or does the client simulate movement, but only sends inputs to the server, which runs the simulation and then corrects the client as needed?

1 upvotes on reddit
RespectfulOk · OP · 4 months ago

Great questions! 

Right now it’s basically the client just says they are dropping x item and sends a request to the api. But this needs to be cleaned up to where the client sends the request to the server and then the server validates if this is acceptable and sends it on behalf of the client. 

As for movement (and interact) this one is handled by the multiplayer synchronizer node. So the client accepts the input for whichever player it has authority over and then the position is synced across the connected peers. But that is an excellent point on this one. The server probably should validate the movement from the client to make sure it’s a valid movement. 

1 upvotes on reddit
Advanced_Slice_4135 · 4 months ago

Great post, For scaling you probably want to look into containerizing your API server, and using digital oceans database clustering etc for Postgres.

1 upvotes on reddit
RespectfulOk · OP · 4 months ago

Exactly! I’m wanting to make a ci pipeline that would put the server (and my api) into a slim Debian container that I would then be able to load either and as many as I want onto a single machine that way I’d have quite a bit to pick from.

I’ll have to read up on digital oceans db clustering. Right now the api is in heroku with the Postgres attached to it so I can easily up the scale there if needed but I would like to tune it better. 

1 upvotes on reddit
lunatisenpai · 4 months ago

So I've actually been looking for some ideas for this. From the crazy (find a game with an existing private server , write a client for it in godot) to lots of other stuff.

Haven't had a chance to try it but spacetimedb and it's associated godot plugin look like a good way to go. So for example, the api would say "drop an item" send an sql request to the server, and the server would run the code, and validate if that's allowed, and everyone syncs to that server.

1 upvotes on reddit
RespectfulOk · OP · 4 months ago

Interesting! Yeah that looks like a very cool tool. For my architecture it looks like it would replace the top two pieces of my diagram as this looks to roll them up into one. 

I see a lot of mentions of speed with SpacetimeDb so I wonder how fast my own implementation is compared to it 

1 upvotes on reddit
See 6 replies
r/playmygame • [10]

Summarize

I am creating a multiplayer web browser game

Posted by ScreenCactus · in r/playmygame · 3 years ago
post image
hedgehogcreek.com
22 upvotes on reddit
7 replies
Helpful
Not helpful
View Source
7 replies
ScreenCactus · OP · 3 years ago

I made this game during the UK lockdown. I still continue to maintain it with updates.
This game is a simple MMO web browser game inspired by old flash games. It's a fun and friendly place to hang out. Chat with other hedgehogs. You can explore different areas such as the Cafe or the Cave.

You can collect coins and spend them in the shop to buy items for your character. Earn coins by playing mini-games. This project is still experimental.

👉 Play Game

4 upvotes on reddit
GingerLightningg · 3 years ago

If you don't mind me asking, what does the architecture look like for something like this?

1 upvotes on reddit
ScreenCactus · OP · 3 years ago

I'm not using any typical game engine, it's all mostly custom with the help of certain web libraries and frameworks. I also want the game to be accessible on mobile, tablet and desktop screens which I don't think game engines typically make this easy, however I might be wrong as I am not that experienced with using game engines...

I use a JamStack serverless approach for the main site. The game client uses PixiJS to render the graphics and I use ReactJS for the UI. For the game server I use NodeJS with SocketIo. If I need to scale the game I would be able to hook multiple backend NodeJS servers to handle that. So players would select the server to join etc. For the time being it's adequate enough with just one server while I work on core gameplay features.

2 upvotes on reddit
Joshs2d · 3 years ago

Very cool and nostalgic, only thing I would recommend is to make this available on mobile as most web based games of the flash era have been replaced. Not sure exactly which tool set you’re using but there are frameworks that allow you to natively port them to android/iOS or just as webpages that appear as apps, so if it’s coded with JavaScript then it should be fairly easy to port.

2 upvotes on reddit
ScreenCactus · OP · 3 years ago

>Hello, thank you for the feedback! The game is responsive and you can play it on mobile in the web browser right now without having to download anything. Visit the site on your mobile browser and it should work.
I have thought about submitting an app version to the app stores etc but for now, while I'm in the experimental development stages I don't think I am at that stage yet. Also on IOS (I haven't got an android to test), you can "Add to Home screen" on Safari and the game will feel somewhat native without seeing the Safari toolbars etc and the game will appear even more in fullscreen. Perhaps give it a try and let me know what you think?

2 upvotes on reddit
[deleted] · 3 years ago

looks like club penguin

4 upvotes on reddit
RashPatch · 3 years ago

was about to say that.

1 upvotes on reddit
See 7 replies

Top People to Talk to

These are some of the top contributors related to
learnprogramming
gamedev
AskProgramming
3+ others
T

tenuki_

No bio available
22861
Karma
57
Posts
6228
Comments
View Profile
Chat w/ Profile AI
A

AdOther7046

No bio available
18
Karma
17
Posts
105
Comments
View Profile
Chat w/ Profile AI
M

my_password_is______

No bio available
16069
Karma
51
Posts
7144
Comments
View Profile
Chat w/ Profile AI
W

weigert

No bio available
17949
Karma
69
Posts
472
Comments
View Profile
Chat w/ Profile AI
N

nutrecht

No bio available
454184
Karma
24
Posts
10000
Comments
View Profile
Chat w/ Profile AI
P

PhilippTheProgrammer

No bio available
87310
Karma
19
Posts
10000
Comments
View Profile
Chat w/ Profile AI
M

melisa_don

No bio available
76
Karma
0
Posts
82
Comments
View Profile
Chat w/ Profile AI
S

SantaGamer

No bio available
17342
Karma
215
Posts
5377
Comments
View Profile
Chat w/ Profile AI

Related

How to build a browser game?

What programming languages are used to build browser games?

How to monetize a browser game?

AI Answer

🤖

How to code a multiplayer browser game?

Key Considerations for Coding a Multiplayer Browser Game

  1. Choose a Game Type: Decide on the genre (e.g., action, strategy, RPG) and mechanics (turn-based, real-time) of your game. This will guide your design and technology choices.

  2. Select a Technology Stack:

    • Frontend: Use HTML5, CSS3, and JavaScript. Frameworks like React or Phaser can enhance your development.
    • Backend: Node.js is popular for real-time applications. Consider using WebSocket for real-time communication.
    • Database: Use a database like MongoDB or Firebase for storing user data and game state.
  3. Game Design and Prototyping:

    • Create a game design document outlining the gameplay, rules, and user interface.
    • Develop a prototype to test core mechanics before full implementation.
  4. Networking:

    • Implement a server to handle player connections and game state synchronization.
    • Use libraries like Socket.IO for real-time communication between clients and the server.
  5. User Authentication:

    • Implement user accounts and authentication (e.g., using OAuth or JWT) to manage player identities and save progress.
  6. Testing:

    • Conduct thorough testing, including unit tests, integration tests, and playtesting with real users to identify bugs and improve gameplay.
  7. Deployment:

    • Host your game on platforms like Heroku, AWS, or DigitalOcean. Ensure you have a scalable solution to handle multiple players.
  8. Post-Launch Support:

    • Be prepared to update the game based on user feedback, fix bugs, and add new features to keep players engaged.

Recommendation: Start with a simple game concept to learn the basics of multiplayer game development. Consider using game engines like Unity with WebGL support or frameworks like Phaser for 2D games, as they can simplify many aspects of game development.

Still looking for a better answer?

Get more comprehensive results summarized by our most cutting edge AI model. Plus deep Youtube search.

Try Gigabrain Pro for Free
gigaGigaBrain Logo
Support

Who are we?

Get API access

Leave us feedback

Contact us

Legal

Terms of Use

Privacy Policy

Shopping Tools

Product Comparisons

2023 GigaBrain Corporation
As an Amazon Associate, GigaBrain may earn a commission from qualifying purchases.