[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] Collaborative game in 8 weeks.



Tom Chance schreef op woensdag 12 maart om 04:40:20 +0000:
> It seems like a lot of different game ideas have been suggested. Perhaps it 
> would be a good idea to work together on some general code first, so you 
> don't all go off on your own projects and find you're in groups of two or 
> three coders.

I think its impossible to reach consensus on this one. Some people like
platformers, others like rpg or somethink else. It seems everyone likes
to create what they like to play; that's true for me at least :)

> For example, several seem to involve top-down views, whilst others use 
> scrolling side-on views. Some classes to handle these might be a good 
> starting point.

For both top-down and side-on, scrolling code in neccasary. I have a
Screen class in my Brian game:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pybrian/brian/screen.py?rev=1.9&content-type=text/vnd.viewcvs-markup

The majority of this can be used for all games involving scrolling.

> People might also work together on some generalised AI classes, giving units 
> the ability to follow either fixed waypoints or autonomously move around, and 
> giving them the ability to react to the presence of other units.

The same is true here again. The main difference between a platformer and
a different style game is only the gravity. My classes doing this can
be easily generalized, too:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pybrian/brian/basesprites.py?rev=1.14&content-type=text/vnd.viewcvs-markup
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pybrian/brian/usersprites.py?rev=1.7&content-type=text/vnd.viewcvs-markup

> Networking classes too, as I can't seem them differing much between these 
> games.

For a platform game, networking doesn't seem much of a priority to me.

> Maybe even general classes to implement powerup systems?

The Powerup class in by basesprites.py does this, although it could be
better generalized (currently, Player knows about Powerup, but Powerup
should tell Player to add points, not vica versa).

> Some of these might be inappropriate, but I think it'd be a good idea to build 
> up a toolkit of classes together before specialising, as that way you're 
> bound to get much better code, and of course the resulting toolkit will be 
> immeasurably useful to others wanting to develop their own games!

True.

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pybrian/brian/ ;)

yours,
Gerrit.

-- 
Asperger Syndroom - een persoonlijke benadering:
	http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
	http://www.sp.nl/