Re: Processing Game Help

2017-12-11 Thread Peter Otten
Chris Angelico wrote: > On Tue, Dec 12, 2017 at 5:46 AM, Peter Otten <__pete...@web.de> wrote: >> You can test for a collision and exit if an asteroid is close to a >> spaceship with >> >> for s in spaceship: >> for a in asteroid: >> if calculate_distance(s, a) < 62.5: >>

Re: Processing Game Help

2017-12-11 Thread Chris Angelico
On Tue, Dec 12, 2017 at 5:46 AM, Peter Otten <__pete...@web.de> wrote: > You can test for a collision and exit if an asteroid is close to a spaceship > with > > for s in spaceship: > for a in asteroid: > if calculate_distance(s, a) < 62.5: > print("One of you

Re: Processing Game Help

2017-12-11 Thread Peter Otten
Lauren Porter wrote: > Hello all! I've been trying to create a game in Python Processing where a > spaceship moves horizontally in order to miss a collision with an > asteroid. I'm having difficulty making it so that the game quits when an > asteroid hits the spaceship, could anybody help? Here is

Re: Processing Game Help

2017-12-11 Thread Michael Torrie
On 12/11/2017 07:27 AM, Dennis Lee Bieber wrote: > On Sun, 10 Dec 2017 16:05:37 -0800 (PST), Lauren Porter > declaimed the following: > >> Hello all! I've been trying to create a game in Python Processing Seems like most of the

Re: Processing Game Help

2017-12-10 Thread Bill
Lauren Porter wrote: Hello all! I've been trying to create a game in Python Processing where a spaceship moves horizontally in order to miss a collision with an asteroid. I'm having difficulty making it so that the game quits when an asteroid hits the spaceship, could anybody help? Here is my