Skip to content
Angus Hollands edited this page May 13, 2015 · 10 revisions

=Importing the library= To avoid namespace clutter, most modules in the library must be imported directly, rather than using from network import *. It is recommended to import specific objects, rather than all members from a namespace, to avoid confusion later on.

First of all, you'll need to establish a client or server:

from network.enums import Netmodes
from network.world_info import WorldInfo

# Setup server
WorldInfo.netmode = Netmodes.server

# Or, setup client
WorldInfo.netmode = Netmodes.client

=Use with game_system=

If you want to make use of a XXX_game_system library, why not import a blocking game loop?

from panda_game_system.game_loop import Client, Server

if WorldInfo.netmode == Netmodes.server:
    loop = Server()
else:
    loop = Client()

# Block
loop.delegate()

Getting Started

#Network

Worlds & Scenes

##Replication Overview

Attributes

Functions

Gotchas

##Serialisation Data handlers

##Communication Messaging

#Game Framework ##Bindings Creating bindings

Clone this wiki locally