Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 16874

Discover Python and Patterns (9): Pygame

$
0
0

In the previous posts, I introduced enough of Python and patterns to start creating games with graphics using the Pygame library.

This post is part of the Discover Python and Patterns series

Install Pygame

Pygame is a popular library for creating 2D games. Like the random library we used before, the import statement allows us to get access to all its features. However, the Anaconda environment we installed in the first post does not embed Pygame, and we have to install it.

To install a new python package, we need an Anaconda prompt. In Windows, type “Anaconda” in the start …


Viewing all articles
Browse latest Browse all 16874

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>