Skip to content

sadnoodles/gamesocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game Socket

A socket interface game server. Build your own socket games! Learn from the example.py!

Example:

See example.py

Start it use python example.py and play it use :

telnet 127.0.0.1 52700

or

nc 127.0.0.1 52700

Or some other socket tools you like.

Install

Download or clone this repo, put it together with your scripts, then import.

Describe:

The server.py contains a GameServer which is the server. Most time you don't need to rewrite it, just use it.

The game.py contains a GameBase which is the game logic. Basicly you can copy a example.py and rewrite the game_begin function with you own game. And a new socket game done!

More

Login

Rewrite the login function, ask players for username or password or anything, then validate them. And return True, extra_data or False, error_info.

About

A Simple Framework For Building Socket Games.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages