推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
lwxiang
V2EX  ›  Python

简单的网页小游戏

  •  1
     
  •   lwxiang ·
    Lwxiang · Feb 26, 2016 · 3124 views
    This topic created in 3755 days ago, the information mentioned may be changed or developed.

    https://github.com/Lwxiang/bombRoom

    使用 Django + long polling (由于 Django 不支持 websocket, 又有特殊原因要用 Django )

    玩家通过输入指令的方式来进行移动 / 放置炸弹

    每个玩家结束回合时若脚下有炸弹就会被炸飞

    以最后留下来没被炸死的为胜利

    还有一些 bugs 和考虑不足的地方,如果喜欢的话求个 star :D

    Supplement 1  ·  Feb 27, 2016

    看到有一些小伙伴点进去了但是没有成功开始游戏

    游戏最少需要两个人,其中一人创建游戏,填好最大人数 / 房间边长 / 每回合的最大指令数

    host

    然后另一个玩家点击加入房间,填写的 ID 是第一个人房间里显示的 No.?

    然后房主开始游戏就可以啦

    host

    1 replies    2016-02-27 00:17:14 +08:00
    lwxiang
        1
    lwxiang  
    OP
       Feb 27, 2016
    更新了贴图:D
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5497 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 03:46 · PVG 11:46 · LAX 20:46 · JFK 23:46
    ♥ Do have faith in what you're doing.