Re: [Tutor] Game lag

2012-01-05 Thread Nate Lastname
Thanks for the profilers - never had hear of 'em. Also, no, I cannot strip out unnecessary parts, 'cuz I don't know what part is slowing it down. Thanks a lot, though Hugo. On Thu, Jan 5, 2012 at 11:02 AM, Hugo Arts wrote: > On Thu, Jan 5, 2012 at 3:56 PM, Nate Lastname wr

Re: [Tutor] Delay Between iterations

2012-01-12 Thread Nate Lastname
Hello ANKUR, Just add a timer variable to the plane class. Every time it is updated, subtract time from the timer. When it hits 0, the bullet can be fired. Else, it cannot. When the bullet is fired, reset the timer to a delay value. It's that simple :) Cheers, Nathanael Lastname. -- My Blo

Re: [Tutor] Installing Modules

2012-01-18 Thread Nate Lastname
Have you looked at help(sys)? sys stores the PYTHONPATH variable. Just run >>> import sys >>> help(sys) at the python prompt. On 1/18/12, Downey, Patrick wrote: > Hello, > > I'll start by saying that I have a math/stats background, not a computer > science one. I've found lots of great material

Re: [Tutor] Issue with a shapefile (ArcGIS) library (pyshp) "unpack requires a string argument of length 8"

2012-02-03 Thread Nate Lastname
On Fri, Feb 3, 2012 at 10:46 AM, Simeon Tesfaye < simeon.tesf...@eaudeparis.fr> wrote: > Hello everyone, > > I am having a bit of trouble here with my code, which uses a shapefile > library, named pyshp, to import, edit, and save GIS files within Python. > So, I open up my shapefile (data is poly

Re: [Tutor] Sandbox Game

2012-02-05 Thread Nate Lastname
> > More details: I want it to be something similar to this: powdertoy.co.uk. > It will have different elements, though. > ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tut

[Tutor] Sandbox Game

2012-02-05 Thread Nate Lastname
Hey List, I am thinking about making a sandbox game. Where should I start? Has anyone done this before? I'm having trouble in MANY places, and I couldn't find any similar projects with a Google search. ___ Tutor maillist - Tutor@python.org To unsubs

Re: [Tutor] Sandbox Game

2012-02-05 Thread Nate Lastname
Hello Robert, I appreciate the reply, but I have two things to say: 1. Your nastiness is not appreciated or really needed. 2. If you look at the results, none of them actually give relavant info. I DID do research before I asked here, extensively, and found nothing. Thanks, The Defenestrator. __

Re: [Tutor] Sandbox Game

2012-02-06 Thread Nate Lastname
Hello List, I am quite sorry for my attitude. I will look more thoroughly into the search results. Thanks for the link to Epik. I had found this, but I didn't realize that it was Python. I apologize once again, and thank you for your help. I did give you a link to a sandbox game (powdertoy.co

Re: [Tutor] Sandbox Game

2012-02-06 Thread Nate Lastname
P.S.: I also would like to say that I am a noob at Python, Pygame, and the list. I'll try not to post more stupid questions, though. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/li

Re: [Tutor] Sandbox Game

2012-02-06 Thread Nate Lastname
Hey all, The basic idea is that there are different types of sand. They fall and move (or don't, if they are solid) and interact with each other in different ways. I.E.; there is a lava type; it falls, and when it hits other sand types, it heats them up. If it gets cold, it becomes sand. I do

Re: [Tutor] exercise with classes

2012-02-06 Thread Nate Lastname
Hey Tonu, The problem is that in your statement definition, you are not including the self argument. Your definition needs to be something like: def dolt(self): # Do stuff. For more info on the self keyword, see http://docs.python.org/tutorial/classes.html, section 9.3.2. On 2/6/12, Tonu Mikk

Re: [Tutor] Sandbox Game

2012-02-06 Thread Nate Lastname
Some more info: It's in pygame. It's 2d. I cannot find any python versions out there. Yes, there is a graphical interface, and yes, it is a user-controlled game. Thank you all for your help! The Defenestrator On 2/6/12, bob gailer wrote: > On 2/6/2012 11:16 AM, Nate Lastname wrot

Re: [Tutor] Sandbox Game

2012-02-06 Thread Nate Lastname
Hold on... I just found one! It's not ideal, but it will work at least for a base - http://www.pygame.org/project-pysand-1387-2577.html. Thanks again, all, for your excellent help! The Defenestrator On 2/6/12, Nate Lastname wrote: > Some more info: > > It's in pygame. &g

Re: [Tutor] Sandbox Game

2012-02-06 Thread Nate Lastname
Thanks, Greg. I actually have two projects on the pygame website, and I already have a great book, too. But thank you very much :D -- My Blog - Defenestration Coding http://defenestrationcoding.wordpress.com/ ___ Tutor maillist - Tutor@python.org T

Re: [Tutor] Question on how to do exponents

2012-02-06 Thread Nate Lastname
Exponents and remainder (modulus) are **(or ^) and % respectively. I.E.; d = a ** b (exponent) c = a % b (modulus) There you are! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listi

Re: [Tutor] two-dimensional color map

2012-02-09 Thread Nate Lastname
Have you considered pygame and its surfarray module? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor