Kai Kuehne | 1 Jan 2007 16:30
Picon

Re: PySpaceWar 0.9.3

Hey, I wish you all a happy new year! :-)

On 12/25/06, Marius Gedminas <mgedmin@...> wrote:
> [Descr. and URL]
>
> Testing, feedback of any kind, or return gifts (such as pretty artwork
> or sound effects) would be appreciated.

I like your game, it's funny. :-) I miss some sound effects but I wouldn't
use ship images because this is the charm of the game. :-)

> Cheers!
> Marius Gedminas

Greetings
Kai

Kai Kuehne | 2 Jan 2007 18:23
Picon

Re: PySpaceWar 0.9.3

Oh, and it would be nice if you would highlight the ship after it was shot
by the other ship. E.g., a red ring around the ship or something. I needed
too long to find it in the space, especially if there was a far distance between
the two ships.

Greetings
Kai

Marius Gedminas | 4 Jan 2007 03:05
Picon

Re: PySpaceWar 0.9.3

On Tue, Jan 02, 2007 at 06:23:32PM +0100, Kai Kuehne wrote:
> Oh, and it would be nice if you would highlight the ship after it was shot
> by the other ship. E.g., a red ring around the ship or something. I needed
> too long to find it in the space, especially if there was a far distance 
> between
> the two ships.

Done in Subversion.  You're right, this makes the game considerably more
fun.

Marius Gedminas
--

-- 
I've been in the sun for a week.  I took the bold step of leaving my
laptop at home.  I found only 4K messages pending when I returned.
        -- Keith Packard
Kai Kuehne | 4 Jan 2007 17:25
Picon

Re: PySpaceWar 0.9.3

Hi,

On 1/4/07, Marius Gedminas <mgedmin@...> wrote:
> On Tue, Jan 02, 2007 at 06:23:32PM +0100, Kai Kuehne wrote:
> > [Feedback]
> Done in Subversion.  You're right, this makes the game considerably more
> fun.

Great, much better. :)

> Marius Gedminas

Kai

Charles Christie | 4 Jan 2007 20:45
Picon

Newbie needs help, what's the most efficient (or easiest) way to do this?

Hey, I am making a typing game in Python using pygame. I have finally hit a
roadblock, and I think I'm toast. I started this game as my senior project,
and I need to have something to at least demonstrate by June.

I think I screwed myself on this one. I thought I knew a reasonable amount of
programming, but absolutely none of it is coming in handy. I had to ask for
help to get what I have now, and now I've hit a road block.

So, what I need is:

A. To find a way to feed multiple strings into the program. As in, when you
finish one string, instead of starting it over again you instead go to
the next word in the list, which I guessed should be an array of
strings. I'm probably wrong, though. What's the most efficient (or
easiest) way to do this?

B. Two timers, a combo timer and a word timer that count backwards. I
know I can figure out how to do these myself, though.

The code I have so far looks like this:
**************************************************************
#Credit to scriptedfun (http://www.scriptedfun.com) for the help
#Stil a very VERY barebones typing script. Still got one last part of the main
#engine to go before getting to work on part two.

import pygame
from pygame.locals import *

SCREENRECT = Rect(0, 0, 640, 480)

(Continue reading)

Brandon N | 4 Jan 2007 21:24
Picon

Re: Newbie needs help, what's the most efficient (or easiest) way to do this?

I will not give you the code since you have stated this in an  
assignment, but hopefully I can help.

You are correct that you will need an array, or a list in Python, to  
store the strings. I would be more concerned with ease of programming  
than efficiency, as this is a pretty straightforward and non- 
demanding application.

So, with that said, you will want your Textsprite class to take a  
list of strings instead of just a string. You can do this by saying:

a = Textsprite(["test string1", "another test!", "can you type this?"])

Now, in your textsprite class, you have a variable that stores the  
index of the current letter. You will also have to store the index of  
the current string, and replace all references of self.text with it,  
as in self.text[self.current_string]. Now, when the user completes a  
string, you can increment self.current_string and reset self.pos and  
the next string will be presented.

I hope that this is helpful for you.

Cheers,
  Brandon

On Jan 4, 2007, at 2:45 PM, Charles Christie wrote:

> Hey, I am making a typing game in Python using pygame. I have  
> finally hit a
> roadblock, and I think I'm toast. I started this game as my senior  
(Continue reading)

Charles Joseph Christie II | 4 Jan 2007 21:40
Picon

Re: Newbie needs help, what's the most efficient (or easiest) way to do this?

YOU'RE AWESOME!!!!! Thank you, I was trying to figure out how to do it,
and after a while thought my idea was completely wrong... I owe you
one, I'll go and try this right now!

Well, actually, after I finish all of the homework that's due tomorrow.
After I get this down, I just have to get the combo timer system thing
up... But I'll ask about that a little later. Thank you!

On Thu, 4 Jan 2007 15:24:46 -0500
Brandon N <kordova@...> wrote:

> I will not give you the code since you have stated this in an  
> assignment, but hopefully I can help.
> 
> You are correct that you will need an array, or a list in Python, to  
> store the strings. I would be more concerned with ease of
> programming than efficiency, as this is a pretty straightforward and
> non- demanding application.
> 
> So, with that said, you will want your Textsprite class to take a  
> list of strings instead of just a string. You can do this by saying:
> 
> a = Textsprite(["test string1", "another test!", "can you type
> this?"])
> 
> Now, in your textsprite class, you have a variable that stores the  
> index of the current letter. You will also have to store the index
> of the current string, and replace all references of self.text with
> it, as in self.text[self.current_string]. Now, when the user
> completes a string, you can increment self.current_string and reset
(Continue reading)

Kai Kuehne | 5 Jan 2007 01:09
Picon

Re: Newbie needs help, what's the most efficient (or easiest) way to do this?

Hi,

On 1/4/07, Charles Joseph Christie II <sonicbhoc@...> wrote:
> Well, actually, after I finish all of the homework that's due tomorrow.
> After I get this down, I just have to get the combo timer system thing
> up... But I'll ask about that a little later. Thank you!

Maybe you can find some "ideas" in TypusPocus:
http://python.com.ar/juegos/TypusPocus

Greetings
Kai

Charles Joseph Christie II | 5 Jan 2007 01:31
Picon

Re: Newbie needs help, what's the most efficient (or easiest) way to do this?

Saw that, but I didn't feel like getting ideas from other people's code
until I understood it myself. Oh yeah, and I couldn't make sense of
anything I read in that the first time I looked it over (I'd probably
get most of it now, but when I looked last time I didn't even know how
to get the typing portion, and I couldn't distinguish it from the rest
of the code :P ).
Thanks for the replies, guys. I was afraid of using mailing lists
because I thought I would get loads of "gtfo" and "noob" replies and,
well, I never tried to figure out how they worked. Thanks for not
outcasting me. You guys totally remind me of the Gentoo Linux forums
(which is a very good thing) so thanks again!

On Fri, 5 Jan 2007 01:09:40 +0100
"Kai Kuehne" <kai.kuehne@...> wrote:

> Hi,
> 
> On 1/4/07, Charles Joseph Christie II <sonicbhoc@...> wrote:
> > Well, actually, after I finish all of the homework that's due
> > tomorrow. After I get this down, I just have to get the combo timer
> > system thing up... But I'll ask about that a little later. Thank
> > you!
> 
> Maybe you can find some "ideas" in TypusPocus:
> http://python.com.ar/juegos/TypusPocus
> 
> Greetings
> Kai

(Continue reading)

Luke Paireepinart | 5 Jan 2007 01:35
Picon
Gravatar

Re: Newbie needs help, what's the most efficient (or easiest) way to do this?

Charles Joseph Christie II wrote:
> Saw that, but I didn't feel like getting ideas from other people's code
> until I understood it myself. Oh yeah, and I couldn't make sense of
> anything I read in that the first time I looked it over (I'd probably
> get most of it now, but when I looked last time I didn't even know how
> to get the typing portion, and I couldn't distinguish it from the rest
> of the code :P ).
> Thanks for the replies, guys. I was afraid of using mailing lists
> because I thought I would get loads of "gtfo" and "noob" replies and,
> well, I never tried to figure out how they worked. Thanks for not
> outcasting me. You guys totally remind me of the Gentoo Linux forums
> (which is a very good thing) so thanks again!
>   
If you find you have any non-pygame-specific Python questions, the 
Python Tutor mailing list is very friendly also,
and there are some really knowledgeable people on that list.
You can subscribe to it from the python.org website.
Hope to see you there! :)
-Luke


Gmane