Boxhead recreated with Python with Tkinter

There is a fantastically entertaining computer game called Boxhead, where essentially you and/or a second person fight off hordes of attacking Zombies and Devils with different weapons. For a computer science class this year that I am taking, the final project was to recreate a computer game in Python with Tkinter. Boxhead seemed to be the logical choice and I set about recreating it. I hope you enjoy what it has turned into so far and I hope to add more weapons, level with objects and a second player in the future.

As of now Boxhead can only fight with a pistol and mines, but it would be great to have access to shotgun and rockets.

Feel free to copy the code and play yourself or add weapons. Just keep in mind that the program and images must be kept within the same folder and the images are in sub folders. For example the Boxhead images are within a separate folder than the Zombie images. The Zombies go in the “zombies” sub folder, devils in “devils”, boxhead in “boxhead” and mine/blood/devil attack (yellow sphere) in “game elements”.

The controls for movement are “WASD”, pause “p”, un-pause “o”, switch between weapons “i” and “u”. Most importantly, though, “space” is fire.

If you want to play the game all of the images needed to go along with the code are available here along with the code.

I agree. Do you know how to make the page width wider in the 'source' section when I create the Instructable? If you head over to http://builtbyben.net/2013/01/01/boxhead-recreated-and-programmed-in-python/ (my website) the layout is nicer.

Perhaps Instructables will adopt a format like that, or maybe they already do and I would love to know about it.

In the 3rd to last line add in between the quotations so it looks like "",key_press . I think that when I uploaded this the page thought that, that was some sort of page formatting for the instructable and removed it.

Thanks for catching that error. I will fix it. Please refer to my website if there are any more errors like that. As the formatting there was not effected.

About This Instructable

Bio:From solder to zip ties, lead acid batteries and LEDs, and especially Legos, putting things together has always fascinated me. The more challenging the better, because whats the fun of putting somethi...read more »