Am playing around with some multiplayer concepts from the ground up. Am going on the basis that my packets will be 255 ish bytes in the first instance, with a view to servicing 25 clients max in the first instance. breaking it down to 10 bytes per client, the client count will allow the client to determine where the client's person is on the server, any comments appreciated!
; player/client count: 1 byte
; player: x, y co -ords, 2 bytes
; shot anything: yes/no 1 byte
; projectile alive: 1 byte
; projectile x,y: 2 bytes
; player world count: 1 byte
; leaving 2 bytes for whatever
this is kind of a WIP with a view to developing an appreciation of B3D's capability kind of in conjunction with this thread:
http://www.blitzbasic.com/codearcs/codearcs.php?code=2182#comments
I appreciate I may be re-inventing the wheel, but it's nice to do things from the ground up ......
; player/client count: 1 byte
; player: x, y co -ords, 2 bytes
; shot anything: yes/no 1 byte
; projectile alive: 1 byte
; projectile x,y: 2 bytes
; player world count: 1 byte
; leaving 2 bytes for whatever
this is kind of a WIP with a view to developing an appreciation of B3D's capability kind of in conjunction with this thread:
http://www.blitzbasic.com/codearcs/codearcs.php?code=2182#comments
I appreciate I may be re-inventing the wheel, but it's nice to do things from the ground up ......