Network Component----API

Network Component of V2Ray Engine


Introduction

<p>This is the API doc for the network component of <a href="https://github.com/apress/build-your-own-2d-game-engine">V2 Engine</a>.</p> <p>Before reading this tutorial, You must have a good understanding of the original V2 Engine.</p> <p>For running the demo, you must first install the python(version&gt;3.4) library <code>asyncio and websockets</code> and run the <code>server.py</code> to start a server.</p> <p><code>python server.py</code></p> <blockquote> <p>Recommand using PowerShell to run the server. It runs successful when the console appeares &quot;Server Start&quot;, </p> </blockquote> <p>Then you can lauch two <code>index.html</code> to simulate two players. </p> <p>(If you want to test it in the same computer, you mush make sure the two windows are juxtapose. When one window was hidden by the browser, it can't receive the message that server transmit to it.)</p>

页面列表

ITEM_HTML