Re: python socket server allow multiple clients to connect

All i just wish to  understand is how does the communication between the client and the server work in online games. I know you make use of sending and receiving packets between the client and server, from server to client and then you also get the channels. i think if i am not understanding it wrong, the channel is the link to the machine or client connected to the server... but yeah. that's about all i could manage to understand. perhaps if any one could please explain to me how this works? like let's say i am for example coding server side movement: just the basic, like a side scroller. when the user presses right arrow key, he/she moves one step to the right. when the user presses the left arrow key, he or she moves one step to the left. that's it for the moving. now for the server: could it be that when the right key is pressed, the client sends "right" and the server sends to the client that it's alwrite to move right? and based on the feedback from the server, you make the code work to move the player to the right? the same for the left key... thanx and best regards.

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : bhanuponguru via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : bhanuponguru via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector

Reply via email to