accelerate your game development with pygletx...accelerate your game development with pyglet © arun...
TRANSCRIPT
Accelerate your Game
Development with Pyglet
© Arun Ravindran
Development with Pyglet
Arun Ravindran
www.arunrocks.com
PyCon India 2009
Who am I?
© Arun Ravindran
Programmer | Blogger | EAI
Consultant | Python Fan |
© Arun Ravindran
Consultant | Python Fan |
Game Developer | Web Designer
In Real Life…
© Arun Ravindran
www.arunrocks.com
© Arun Ravindran
I have worked on…
© Arun Ravindran
Actionscript | Haxe | Python |
C++ | Lisp | VB |
© Arun Ravindran
C++ | Lisp | VB | Haskell
Pyglet?
© Arun Ravindran
Pyglet != Minor Carrier of Swine Flu
© Arun Ravindran
Pyglet is a cute library
© Arun Ravindran
© Arun Ravindran
Pyglet is so easy
© Arun Ravindran
That even you can make games in 10
mins
© Arun Ravindran
mins
Yes, YOU
© Arun Ravindran
YOU
YOU
YOU
© Arun Ravindran
YOU
YOU
YOU
</Marketing>
© Arun Ravindran
pyglet: a cross-platform windowing
and multimedia library for Python
© Arun Ravindran
and multimedia library for Python
Hang on… isn’t that Pygame?
!
© Arun Ravindran
Pygame != Pyglet
© Arun Ravindran
Pyglet is a wrapper to OpenGL
© Arun Ravindran
Pygame is a wrapper to SDL
Pyglet has no external dependency
© Arun Ravindran
Pygame has dependency on SDL
Pyglet lives in 3D World
© Arun Ravindran
Pygame lives in 2D World
Pyglet can use OpenGL Accel easily
© Arun Ravindran
Hardware acceleration on Pygame not easy
Things I ♥ Love about Pyglet
© Arun Ravindran
I ♥ the Pythonic code
© Arun Ravindran
I ♥ the BSD license
© Arun Ravindran
I ♥ the Multi-monitor support
© Arun Ravindran
Let’s get to the meat of this talk
© Arun Ravindran
© Arun Ravindran
Fruit Catch
One Shy Hero
© Arun Ravindran
Simple Mission:
© Arun Ravindran
Catch Fruit
Many Goodies
© Arun Ravindran
Except one
© Arun Ravindran
Coding Begins…
© Arun Ravindran
First Version
© Arun Ravindran
Run using: python main.py
© Arun Ravindran
© Arun Ravindran
Not Bad, eh?
© Arun Ravindran
Full Code
© Arun Ravindran
© Arun Ravindran
© Arun Ravindran
© Arun Ravindran
Demo
© Arun Ravindran