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
largecat
V2EX  ›  Python

cocos2d 的动画如何投影到第二块显示屏上?

  •  
  •   largecat · 2018-02-24 14:14:28 +08:00 · 1806 次点击
    这是一个创建于 2245 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我用的 cocos2d for python, 请教 cocos2d 的动画如何投影到第二块显示屏上?

    我的代码如下: (投影到第二块显示器无效)

    获取显示器列表
    screens =pyglet.window.get_platform().get_default_display().get_screens()

    设置投影到的显示器(第一块显示器是 0,第二块是 1 ,全屏显示)
    cocos.director.window.Window(screen=screens[1], fullscreen=True)

    下面执行动画
    cocos.director.director.init()
    scene=cocos.scene.Scene(test())
    cocos.director.director.run(scene)

    请问该如何更改?谢谢.
    1 条回复    2018-02-28 19:42:35 +08:00
    qile1
        1
    qile1  
       2018-02-28 19:42:35 +08:00 via Android
    这个啥时候支持 python 的?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1048 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:43 · PVG 06:43 · LAX 15:43 · JFK 18:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.