Monthly Archives: December 2012

Balloon Ninja: Releasing balloons

Back to Tutorial Contents Showing a balloon In the previous section we created an empty game window, and gave the window a background color. Now let’s add a balloon to the screen. First we need to describe what a balloon is. … Continue reading

Posted in programming | Tagged , , , | Leave a comment

Balloon Ninja: Creating a screen

Back to Tutorial Contents In this first section of the Balloon Ninja tutorial, we will install Pygame and create an empty screen. Installing Pygame If you are using ubuntu, you can install pygame in one line: Creating a screen Here is … Continue reading

Posted in programming | Tagged , , , , | Leave a comment

Balloon Ninja: A Simple Pygame Tutorial

Introduction If you are learning to program in Python, writing your own game is a great way to immerse yourself in the language.  Writing a game pushes you  to understand the core parts of the language such as data structures … Continue reading

Posted in programming | Tagged , , , , | Leave a comment

Python or Ruby: 6 Months on Hacker News

I teach high school math and science, and over the last couple years I have started to teach an Introduction to Programming class.  This past spring I decided to reassess whether I should continue to base this class in Python. … Continue reading

Posted in programming | Tagged , , , , , , | 2 Comments

Matplotlib Basemap Tutorial: Interesting datasets to explore

Update: This tutorial has been updated and moved to http://introtopython.org/visualization_earthquakes.html. In this tutorial, we have learned how to make a simple map and plot points on that map.  We have learned how to pull those points from a large dataset.  Now … Continue reading

Posted in programming | Tagged , , , , , | 6 Comments

Matplotlib Basemap Tutorial: Plotting global earthquake activity

Update: This tutorial has been updated and moved to http://introtopython.org/visualization_earthquakes.html. In the last section of the tutorial, we learned how to plot single points on our maps, and how to plot sets of points on our maps.  We will use both … Continue reading

Posted in programming | Tagged , , , , | 2 Comments

Matplotlib Basemap Tutorial: Plotting points on a simple map

Update: This tutorial has been updated and moved to http://introtopython.org/visualization_earthquakes.html. In this part of the tutorial, we will see how to plot points on a map.  We will start out by plotting some communities on Baranof Island in southeast Alaska. Here … Continue reading

Posted in programming | Tagged , , , , | 5 Comments