Metadata-Version: 2.1
Name: aerics
Version: 0.0.1
Summary: A networking library for multiplayer games.
Home-page: https://github.com/Aermoss/Aerics
Author: Yusuf Rencber
Author-email: yusufrencber546@gmail.com
License: MIT
Platform: UNKNOWN
Description-Content-Type: text/markdown
License-File: LICENSE

# Aerics
A networking library for multiplayer games.

## Getting Started
1) Install Python
2) Open cmd/terminal and type:

```
pip install Aerics
```

## Examples
# Creating a server
``` python
from aerics import *

def on_connection(connection, address, id, clients):
    return {"x" : 0, "y" : 0}

def on_disconnection(connection, address, id, clients):
    print("Disconnect")

def on_recv(connection, address, id, clients, data):
    data = data.split(",")

    if data[0] == "move":
        clients[id]["x"], clients[id]["y"] = data[1], data[2]
        return clients

    if data[0] == "close":
        server.disconnect(connection)
        return None

if __name__ == "__main__":
    server = Server("localhost", 5656)
    server.listen()
```

# Creating a client
``` python
from aerforge import *
from aerics import *

def update():
    client.send(f"move,{player.x},{player.y}")
    players = client.recv()

    for i in players:
        forge.draw(width = 50, height = 100, x = int(players[i]["x"]), y = int(players[i]["y"]))

if __name__ == "__main__":
    forge = Forge()
    
    client = Client("localhost", 5656)
    client.connect()

    player = prefabs.TopViewController(forge)
    player.visible = False

    forge.run()
```

