V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · Feb 24, 2018 · 2427 views
    This topic created in 2988 days ago, the information mentioned may be changed or developed.
    我用的 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 replies    2018-02-28 19:42:35 +08:00
    qile1
        1
    qile1  
       Feb 28, 2018 via Android
    这个啥时候支持 python 的?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2496 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 09:55 · PVG 17:55 · LAX 02:55 · JFK 05:55
    ♥ Do have faith in what you're doing.