Online Game Question
Online Game Question
Online Game Question
Online Game Question
Online Game Question
Online Game Question Online Game Question Online Game Question Online Game Question Online Game Question Online Game Question Online Game Question Online Game Question
Online Game Question Online Game Question
Online Game Question
Go Back  Xtreme Visual Basic Talk > > > Online Game Question


Reply
 
Thread Tools Display Modes
  #1  
Old 07-19-2005, 08:03 AM
mrnugger mrnugger is offline
Freshman
 
Join Date: Jun 2005
Posts: 35
Smile Online Game Question


I have a question for creating online games.

When your playing the game, in order to view other players in realtime action is it a possible way to retrieve all the coordinates of players from the server, and draw then dd7 way onto the users screen?

eg:
(very simple, wrong syntax, just so u understand)
the loop
if player = online then
connect to server here
x = x_location
y = y_location

draw graphic using dd7
end if
end the loop
Reply With Quote
  #2  
Old 07-19-2005, 08:26 AM
DimmurWyrd DimmurWyrd is offline
Newcomer
 
Join Date: Jan 2005
Posts: 24
Default

Quote:
Originally Posted by mrnugger
I have a question for creating online games.

When your playing the game, in order to view other players in realtime action is it a possible way to retrieve all the coordinates of players from the server, and draw then dd7 way onto the users screen?

eg:
(very simple, wrong syntax, just so u understand)
the loop
if player = online then
connect to server here
x = x_location
y = y_location

draw graphic using dd7
end if
end the loop
not really sure what you mean... coordinate updates should probably be initiated by the server... so that the server sends a list of coordinates and the image value (i.e. offset number of the characters icon or if using a complex system send the offsets) for everyone online and within X distance of that particular player. (optionally use line of sight/occlusion checking here first)

server should always know where everyone is so it should be able to simply send an update packet with all the information nescessary on a regular schedule.
Reply With Quote
  #3  
Old 07-19-2005, 10:15 AM
DubbleClick's Avatar
DubbleClick DubbleClick is offline
Contributor
 
Join Date: Mar 2005
Location: Tennessee
Posts: 511
Default

Exactly what he said. The server should do ALL of the processing.

The game client should only have to "send" a packet to the server telling it what you are doing...
The server sends packets to the client for the client (your game) to process. The packets you receive should have all the information about what is around you, who's in the game...etc.

Of course, the server does NOT need to send the game client information you don't care about, like players that are not in your area... etc.

Server side processing is the brut force of your online programming and make the HUGEST impact on how well your game will play. You want the packets your game client receives to be as efficient as possible.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Online Game Question
Online Game Question
Online Game Question Online Game Question
Online Game Question
Online Game Question
Online Game Question Online Game Question Online Game Question Online Game Question Online Game Question Online Game Question Online Game Question
Online Game Question
Online Game Question
 
Online Game Question
Online Game Question
 
-->