Skip to main content

A Non-Blocking Event Driven Applications Framework

Project description


This is a demonstration package illustrating the use of python_banyan in creating a peer-to-peer game using arcade.



pip install p2p-arcade


sudo pip3 install p2p-arcade

                     [-p PLAYER]

optional arguments:
  -h, --help            show this help message and exit
                        None or Common Backplane IP address
  -n PROCESS_NAME       Banyan Process Name Header Entry
  -p PLAYER             Select player 0 or 1

After installation, to run the demo on a single computer, start player 0 (the coins) by opening a terminal and typing:


Next open a second terminal and type:

p2pa -p 1

This will open player 1's window (the human sprite). Move the mouse into this window, click the left mouse button to start the coins moving. Now click the right mouse button and start to collect the coins.

If you wish to run this as a distributed application, after opening up player 0's window, note the IP address being used by the backplane.

Arcade p2p player0 using Back Plane IP address:
Subscriber Port = 43125
Publisher  Port = 43124
Loop Time = 0.0001 seconds
************************************************************ is the address that the backplane selected.

Now to start a second copy of p2pa on the second computer, specifying both player 1 with the -p 1 option and the backplane address with the -b option. Use the IP address noted when opening the first window:

p2pa -p 1 -b

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for p2p-arcade, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size p2p_arcade-0.2-py2.py3-none-any.whl (19.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size p2p_arcade-0.2.tar.gz (7.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page