Sign in to follow this  

Determining what is visible for a network client

This topic is 3409 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Greetings, You'll have to excuse my ignorance on this one. This is my first attempt at any sort of networked gameplay. I'm working on putting together a very simple 2D, top down networked game. My plan is to only transmit packets that are relevant to the client's field of view + a little of what's outside. My question is what is the process for handling different resolutions? I might have one client connected who's running 1900x1200 and another at 800x600. Is screen resolution information normally transmitted along with the 'hey I want to enter the game' information or is there another process that takes place? That seems so simple that it has me worried. Heh. Thanks!

Share this post


Link to post
Share on other sites
you can do that, sure. that's client side info, so everytime the client changes his resolution, he needs to notify the server of his settings.

also, you have to think of the advantage a player would gain from having a higher resolution.

Share this post


Link to post
Share on other sites
The problem with variable resolutions in a 2d game is that 2d games draw a larger area, unlike 3d games which draw the same view space but with more pixels. Sony's 2d top-down shooter Infantry allowed this, and as a result, people who could run at higher resolutions could see a lot more of the screen. Being on a crappy computer, I was stuck with a much smaller view and often was being shot at by people I couldn't even see.

Share this post


Link to post
Share on other sites
Hi! I'm also working on a "simple" top down 2d network game.

I agree that the variable resolutions could make the game unbalanced...
The way I'm handling player updates is just by having my worlds be made up of separate levels (800 * 640 pixel which is also my game's resolution), and updating players if an event occurs in the level they are in and the 8 levels around them.

It may not be the most efficient system, but it saved me code headaches and it's more important for me to just get this thing finished and polish it later.

Share this post


Link to post
Share on other sites
I would not display more game map info on a higher resolution screen. Either, I would scale the map I have to the resolution selected, or I would change the resolution to the defined resolution when going full-screen.

Share this post


Link to post
Share on other sites
You could also use a "radar" to help level the playing field among players with various screen resolutions. If everyone has the same field of view on their radar then the bounding box for what information to send is the same for all clients.

In truth there is never a completely egalitarian game. Even if you lock the resolution to the same value on all clients there is still an advantage to those with better computers, or faster/lower latency networks connections, and so on.

Again a radar would give everyone access to the same amount of information.

Share this post


Link to post
Share on other sites

This topic is 3409 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this