我目前正在運行python 2.7並試圖安裝與AVBin Pyglet模塊。對於圖形和其他不需要AVBin但其他所有內容都有錯誤的圖形,它似乎工作正常。 這是我收到的錯誤。 Microsoft Windows XP [Version 6.1.7601]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Users\Brian\Documents\Pytho
和上次一樣,我遇到了一個新問題。當我移動鼠標時,FPS從大約60增加到500以上。我知道你在想什麼;這是不是因爲on_draw()被炒每個事件(我認爲),因爲我已經做了pyglet.app.EventLoop.idle覆蓋: class EventLoop:
def idle(self):
pyglet.clock.tick(poll=True)
return p
我在2D遊戲中使用python和pyglet,但碰到檢測碰到問題。我的代碼來檢查碰撞是這樣的: def distance(self,target):
return math.sqrt((self.x-target.x)**2 + (self.y-target.y)**2)
def check_collision(self):
for i in list_of_mobs:
所以每當我試圖運行http://codeflow.org/entries/2010/dec/09/minecraft-like-rendering-experiments-in-opengl-4/我總是得到錯誤 from pyglet.input.evdev import get_devices
ImportError: No module named input.evdev
我將如何解決這