multiplayer tetris based on memes - yoannbourse.com · network programming multiplayer tetris based...

of 11/11
Network programming Multiplayer tetris based on memes Yoann Bourse (with Antoine Amarilli, Marc Jeanmougin and Pablo Rauzy) 2010-2011 : Semestre 1

Post on 08-Sep-2018

223 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

  • Network programming

    Multiplayer tetris based on memes

    Yoann Bourse(with Antoine Amarilli, Marc Jeanmougin and Pablo Rauzy)

    2010-2011 : Semestre 1

  • ProtocolRules

    Implementation

    Presentation plan

    1 ProtocolServer-ClientClient-Client

    2 Rules

    3 ImplementationInteractionGame

    Yoann Bourse (with Antoine Amarilli, Marc Jeanmougin and Pablo Rauzy)Multiplayer tetris based on memes

  • ProtocolRules

    Implementation

    Protoclol

    Verbose humorous protocol

    No guarantee against cheat

    Acknowledgement of receipt

    Yoann Bourse (with Antoine Amarilli, Marc Jeanmougin and Pablo Rauzy)Multiplayer tetris based on memes

  • ProtocolRules

    Implementation

    Protoclol

    Server-client :

    Clients pings regularly

    Server broadcast the whole player list

    Gives to the clients random seed and neighbours

    Yoann Bourse (with Antoine Amarilli, Marc Jeanmougin and Pablo Rauzy)Multiplayer tetris based on memes

  • ProtocolRules

    Implementation

    Protoclol

    Client-client :

    Oriented ring :Connect to STARBOARDWait for connection from LARBOARD

    Direct introduction

    Broadcasting ascii art board

    Leaving/loss messages to reform the ring

    Yoann Bourse (with Antoine Amarilli, Marc Jeanmougin and Pablo Rauzy)Multiplayer tetris based on memes

  • ProtocolRules

    Implementation

    Rules

    10x20 board

    Pieces pseudo-randomly generated from seed(un+1 = 15731 unmod32003)Fall at one block per second,This timeout decreases to 90% every 10 lines.

    Send penalties to STARBOARD when lines are done

    Yoann Bourse (with Antoine Amarilli, Marc Jeanmougin and Pablo Rauzy)Multiplayer tetris based on memes

  • ProtocolRules

    Implementation

    Penalties

    Successive line-breaking creates combo points

    When n lines are broken at once,(n 1) + bcombo/2c penalties are sentPenalties send malus block lines with a single hole

    They are buffered : breaking lines removes bufferedpenalties before actually sending lines

    Yoann Bourse (with Antoine Amarilli, Marc Jeanmougin and Pablo Rauzy)Multiplayer tetris based on memes

  • ProtocolRules

    Implementation

    Interaction scheme : server

    6 classes, default port 4242, asks for another port if busy.

    Yoann Bourse (with Antoine Amarilli, Marc Jeanmougin and Pablo Rauzy)Multiplayer tetris based on memes

  • ProtocolRules

    Implementation

    Interaction scheme : client

    Yoann Bourse (with Antoine Amarilli, Marc Jeanmougin and Pablo Rauzy)Multiplayer tetris based on memes

  • ProtocolRules

    Implementation

    22 classes client

    Yoann Bourse (with Antoine Amarilli, Marc Jeanmougin and Pablo Rauzy)Multiplayer tetris based on memes

  • ProtocolRules

    Implementation

    Game scheme

    Yoann Bourse (with Antoine Amarilli, Marc Jeanmougin and Pablo Rauzy)Multiplayer tetris based on memes

    ProtocolServer-ClientClient-Client

    RulesImplementationInteractionGame