Skip to content

linwencai/fireflyDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fireflyDemo

Build Status Python Firefly

fireflyDemo是一个简单的游戏服务端Demo,基于Firefly 框架,多进程单线程异步回调


环境

  • Python2.7
  • MySQL5.6+
  • memcached

依赖

  • affinity==0.1.0
  • DBUtils==1.2
  • firefly==1.3.3.dev0
  • MySQL-python==1.2.5
  • python-memcached==1.58
  • six==1.11.0
  • Twisted==14.0.0
  • zope.interface==4.4.3

安装

  • 安装Python、MySQL、memcached

  • 执行tool目录下的install脚本,安装依赖、导入sql

    # windows
    >>> install.bat
    
    # linux
    >>> sh install.sh
    

快速开始

  1. 编辑config.json,配置端口、数据库
  2. 运行服务端
>>> python startmaster.py
  1. 运行客户端模拟器
>>> python tool/clienttest.py

☺️

About

游戏服务端框架

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published