๐ดย : ํด๋ผ์ด์ธํธ โ ๊ฒ์ ์๋ฒ
๐ตย : ๊ฒ์ ์๋ฒ โ ํด๋ผ์ด์ธํธ
{
"type": "game",
"subtype": "connection_established",
"message": "You are now connected!"
}
{
"type": "game",
"subtype": "session_info",
"message": "",
"data": {
"battle_mode": 1,
"total_score": 15,
"level": 2,
"color": {
"paddle": "#FFFFFF",
"background": "#FFFFFF"
}
}
}
{
"type": "game",
"subtype": "match_init_setting",
"message": "",
"match_id": 123,
"data": {
"battle_mode": 1,
"color": {
"paddle": "#FFFFFF",
"background": "#FFFFFF",
"ball": "#FFFFFF"
},
"ball": {
"status": "in",
"x": 0.0,
"y": 0.0,
"radius": 0.04
},
"paddle1": {
"x": -2.8,
"y": 0.0,
"width": 0.1,
"height": 0.5
},
"paddle2": {
"x": 2.8,
"y": 0.0,
"width": 0.1,
"height": 0.5
},
"nickname": {
"player1": "wonyang",
"player2": "jeongmin"
}
}
}
{
"type": "game",
"subtype": "match_start",
"message": "go!",
"match_id": 123,
"data": {}
}
{
"type": "game",
"subtype": "match_run"
"message": "",
**"match_id": 123,**
"data": {
"battle_mode": 1,
"ball": {
**"status": "in",**
"x": 0.0,
"y": 0.0,
},
"paddle1": {
"x": -2.8,
"y": 0.0,
},
"paddle2": {
"x": 2.8,
"y": 0.0,
},
"score": {
"player1": 0,
"player2": 0,
},
},
}
{
"type": "game",
"subtype": "key_down",
"message": "key!",
**"match_id": 123,**
"data": {
"key_set": [],
},
}