V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2016-02-26 10:45:32 +08:00 · 2305 次点击
    这是一个创建于 2989 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://github.com/Lwxiang/bombRoom

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

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

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

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

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

    第 1 条附言  ·  2016-02-27 00:15:19 +08:00

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

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

    host

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

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

    host

    1 条回复    2016-02-27 00:17:14 +08:00
    lwxiang
        1
    lwxiang  
    OP
       2016-02-27 00:17:14 +08:00
    更新了贴图:D
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2214 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 05:11 · PVG 13:11 · LAX 22:11 · JFK 01:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.