Questions tagged [pyglet]

Pyglet is a library for the Python programming language that provides an object-oriented application programming interface allowing the creation of games and other multimedia applications. Pyglet runs on Microsoft Windows, Mac OS X, and Linux; it is released under BSD Licence.

Filter by
Sorted by
Tagged with
4
votes
0answers
408 views

Python Code For Drawing a Fractal Tree using pyglet

So I've just finished doing a coding challenge that involved drawing a fractal tree. Instead of doing it recursively(which is what I did initially but it proved to be to slow for branches greater than ...
1
vote
1answer
104 views

Optimizing game camera

I'm moving some octagons around and I found a serious bottleneck: ...
8
votes
1answer
2k views

Drawing circles with triangles

As pyglet has no in-built method to return a vertex list of circle, I had to build one myself. This is a critical piece of code that I will use very frequently. I need it to be of very fine ...
5
votes
1answer
595 views

Pyglet: scene manager

This is my brief summary of Pyglet: it's a powerful, efficient, high-tech cage. But once you're in there, once you call pyglet.app.run(), it's all over - you can't ...
7
votes
1answer
1k views

Button presses counter

I'm moving on to graphics, picking Pyglet and Cocos2D. This is my first program in Python with GUI. Introducing: Two distinct high definition button sprites Satisfying high quality button pressing ...
4
votes
1answer
641 views

Speedups for Conway's Game of Life

I wrote Conway's Game of Life in Python with Pyglet. It works pretty well but is very slow when the number of cells gets high. Any easier speedups I can attain with this code? ...
4
votes
2answers
103 views

Changing the state of another entity into the constructor method

I have a Clock class who inherites from pyglet.clock.Clock and behaves like a Singleton. Into the constructor method I have the following line: ...