-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/11/2011 12:32 PM, Wolf Halton wrote: > I think pygame would let you do a simple graphical game. >
pygame can do plenty of complex graphics too. FWIW, you might have a better time using something like PySFML(2) or pyglet (I like pyglet much more than pygame, seems more pythonic) which wrap OpenGL instead of SDL, allowing for more stuff. Not to mention if you ever need a GUI there are a ton for OpenGL (even Qt, if you wanted). Of course, it's up to the OP. On 06/11/2011 07:34 AM, Tommy Bell wrote: > Now, regarding the title, building games, i need to be able to place > buildings, like squares that is placed with the mouse and can be > clicked and these kind of things. > In pygame/pyglet you'd want to be capturing mouse-click events and then acting on the location of the click, seeing if it's in the area of the square, etc.. Game programming is rather event-driven, similar to GUI programming. > Can anyone recommend places to go or books to read? the books i've > found so far are mostly about 2d-games like asteroids or something > similar. Not quite what I was hoping, and pygame.org has alot of good > sources, but outside of simply taking apart an existing game and > looking at how they did it, are there any ressources to help me > learn? The docs for pygame and pyglet are great, use them. Of course, reading the source of existing games is a great way to see how things are done, and is always a good learning experience. Cheers, - -- Corey Richardson -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQEcBAEBAgAGBQJN85uFAAoJEAFAbo/KNFvpaNoIAI0OeY7lnqdTR4AsdOdwZK0k HrZ5xuEaXVyO6UArYvVynoB6cZF+hNGiYmIiv2IO/aYLCjU0WWAvSLfLGD4zgWFR NnHdZvJ7SwfR4In4cYo2A6tkhNwHJpk2zSTgXqT07zDFvgCmyGGpTSjkHR6nWPdH jowbVm4i34K3ToPbIH1bl36+NG3OW5CynNRiOgz8bibjAtS+UrwvUFTojN3dsQ4O 9YfJ9OIXP0HMUQ71Gv4nBQFWKu6Q0qhXgTpF6JFtu9wbYiJWKj5oWNHyEdYm70Za zKeepAe9uNR2KZslQ6oB+AO2V2F2WoOoEARP6pBWmKg9lPNYCEt95HEYfe4a4MY= =ZH7D -----END PGP SIGNATURE----- _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor