Uros de Selbi
Uros de Selbi

Reputation: 55

Difference between pyglet and pygame, in simple words?

There are many questions dealing with pyglet and pygame, but what I want to know is difference in theses two, in simple terms.

Not in technical terms, not experimental features and all that.

They are both libraries, both API, both for creation of games and multimedia apps, right?

Just in plain English, for someone like me, relative begginer, who has finished course about Python in Codecademy and read Head first Python book.

Upvotes: 2

Views: 4003

Answers (3)

pfaber11
pfaber11

Reputation: 1

I've tried pyglet and pygame and rate pygame as the best .

Upvotes: -3

furas
furas

Reputation: 142909

PyGame is low-level library. You have to do all on your own - starting at mainloop and all functions called by mainloop. You can do it in different ways.

(And you can learn something about mainloops in Pyglet, Tkinter, PyQt, wxPython and other GUIs, not only in Python)

Pyglet is framework - it has already mainloop and you can't change it and you can't see how it works. You override functions which mainloop calls. You have to keep its rules.

Upvotes: 1

Wayne Werner
Wayne Werner

Reputation: 51877

Pyglet is a wrapper around OpenGL, while Pygame is wrapper around SDL.

OpenGL is primarily concerned with 3d rendering, while SDL

is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.

Upvotes: 7

Related Questions