Over a million developers have joined DZone.

Py2D: Making Vector Creation Easier, One Game at a Time

· Web Dev Zone

Start coding today to experience the powerful engine that drives data application’s development, brought to you in partnership with Qlik.

Tired of dealing with the same common task while creating your vector-based games?  Stefan Seemayer feels your pain, and has been hard at work coming up with a solution to your problem.  He has created an impressive utility library featuring "tons of geometry-related functionalities" for creating vector-based games using Python, and while it's still in the early development stages, Py2D already has an impressive list of features including:

  • Classes for Vectors, Polygons, and Affine Transformations with basic operation
  • Polygonal Field-of-Vision Calculation
  • Generate polygon obstructions from tile map data
  • Perform boolean operations (union, intersection, difference) on polygons
  • Grom and shrink polygons (polygon buffering, polygon offsetting)
  • Decompose polygons into convex parts
  • Generate navigation meshes and navigate them

-- Py2D

Most of these features can be seen in action, thanks to Stefan's demo video:

Py2D is available on Github and is released under the BSD license, so feel free to use it in a commercial application or build on top of what Stefan has already created.  And, as previously mentioned, the project is still in it's early stages, so expect more features along the way.

Create data driven applications in Qlik’s free and easy to use coding environment, brought to you in partnership with Qlik.


The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}