pygame is
Simple DirectMedia Layer is
Site Swing
Hello World

Hello World - 0.3

Barry (isharacomix)



As the name implies, this is my first Pygame project. Made out of 100% concentrated boredom. When I made this game, I was more focused on learning the language than good style or how to distribute the program. The code is some really sloppy stuff, and the README isn't particularly helpful. I plan on using this program as my personal sandbox to learn new Pygame features, so if anyone sees any mistakes at this point, I'd appreciate advice/critique of any kind. It's an honor to be here! I really hope to learn a lot!


Version 0.3's here already! Normally I don't like to upload files so quickly, but I made a huge addition to the game. We can now load variable size maps (rather than everything being 10x10 tiles) and we've got a nice camera that follows the alien without being a pain. I also implemented Andy's idea and made it possible to destroy scientists (stick figures) by pushing them between a red block and the wall. Note that this update makes old map files obsolete. Very sorry about that. I hope you find the upgrades worth it!


Home Page:


click to view original size


Hello World - 0.3 - Apr 6, 2009
Hello World - 0.2 - Apr 5, 2009
Hello World - 0.1 - Mar 30, 2009 account Comments

If you wish to leave a comment with your account, please sign in first.

April 13, 2009 1:21pm - Barry - nickname: (isharacomix)
Thanks for your comments, I really do appreciate them. Most of the bugs seem to be coming from the versions of python and pygame. str.partition() is a new feature in Python 2.5, and the LayeredUpdates group is new to Pygame 1.8.

I had no idea the str.split() function even existed, though. Thanks so much for pointing it out. It might make my code that much less obfuscated.
April 13, 2009 8:55am - Jordan Trudgett - nickname: (tgfcoder)
I'm getting a TON of bugs. Like splitting a string using .partition() ? which always raises an exception, always returning (-1, -1). And the splitList function, which is equivalent (but wrong) to mystring.split(t) where t could be ";" for example.

And foo = bar[2], when bar only has 2 elements (index 2 is the third element)

I'd like to get this to work, but I've stopped at

self.sprites_game = pygame.sprite.LayeredUpdates(goals,blocks,
AttributeError: 'module' object has no attribute 'LayeredUpdates'

which seems like I'm missing a dependency.

I'm using python 2.4.4, pygame 1.7.1.
April 7, 2009 12:38pm - pymike - nickname: (pymike) - 4/5
This is awesome.
April 6, 2009 7:34am - Barry - nickname: (isharacomix)
Smashing stick figures, that's a great idea! The challenge will be getting it to work before class starts. O_O

Thanks for the feedback! It's appreciated more than you know.
April 5, 2009 11:16pm - Andy Hanson - nickname: (rhodiumgames)
By the way, I ran it and many other programs on this site on Vista (Service Pack 1) with no problems at all; IDLE, newest versions of Python and Pygame.
April 5, 2009 11:12pm - Andy Hanson - nickname: (rhodiumgames)
This would be fun if you could squish the stick figures against a wall! >:)
(and if I didn't have to read legal stuff every time I ran it)
Startlingly bugless!
April 2, 2009 7:20pm - Koen Lefever - nickname: (koenlefever)
I've tried the editor again, this time it worked immediately without a glitch. Have had strange things with Pygame on my Vista machine earlier, I've uninstalled it a couple of times before. I'm going to give up on that and do everything on Linux too.
April 1, 2009 10:11pm - Barry - nickname: (isharacomix)
Aha! Thanks for catching that. I never would have thought of clicking on the text box. But that shouldn't have anything to do with being able to edit the board...

I can't find anything in the code that looks like it would mess up the editing... Can you still delete objects off of the board? Use the recycling bin tool (bottom right) to destroy things. It's working like a charm with me on Linux.
April 1, 2009 8:39pm - Koen Lefever - nickname: (koenlefever)
I love the idea of turning "Hello world" into a game - a charming sandbox indeed. The game itself worked fine. In the editor, I could click on the icons on the right, but I could not change anything on the board itself. When I click on the text field, the editor crashes with a message:

File "C:\Users\Koen\Desktop\Pygames\HelloWorld\", line 388, in click
gui_check = obj.code
AttributeError: 'NameLabel' object has no attribute 'code'

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Jan 31, 2017

Jan 24, 2017

Jan 19, 2017

Jan 18, 2017

Jan 7, 2017

Dec 30, 2016

Dec 8, 2016

Nov 28, 2016

Nov 27, 2016

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)