.:`=-~rANdOm~`-=:. Game Servers

Technology (Read Only) => Programming => Topic started by: Goat on September 26, 2011, 06:51:35 PM

Title: python help
Post by: Goat on September 26, 2011, 06:51:35 PM

in computer programming II we started using python
i fucking lol'd since i heard it was some sort of programing god language like assembly
first project is to make a game
im making a game were you buy/sell/breed hoerses
ive got 3 basic classes so far and im just wondering if anyone on you forums have a suggestion on were for me to go
this is a basic horse (LOL)

Code: [Select]


class BaseAlien(object)
def __init__(self, genus, species)
self.genus = genus \\ type of alien
self.species = species \\ the species of the hoers
self.age = 0 \\ age of teh hoers
self.pregnant = False \\ whether the hoers is pregnant or not

now ill show you the basic genus
Code: [Select]


class Pacer(BaseHorse):
def __init__(self, species):
        class Sprinter(BaseHorse):
def __init__(self, species):
super(Sprinter, self).__init__(,"Sprinter"species)

thats about it for now
Title: Re: python help
Post by: Сєşάя on October 06, 2011, 06:48:21 PM
I call Python: "The language that makes all for you"

Python is the easiest language in the world.

I made a game with Python:
(http://img3.imageshack.us/img3/4022/python2011092012410576.png)
Title: Re: python help
Post by: Goat on October 06, 2011, 07:05:37 PM
Shame I got help so late, I was able to figure this out about the third day after I posted this
Lock&bin if you want
Title: Re: python help
Post by: Сєşάя on October 07, 2011, 05:47:40 AM
Shame I got help so late, I was able to figure this out about the third day after I posted this
Lock&bin if you want

I didn't see the day when you posted. But if you're greating a game in python, I suggest you download pygame library.
Title: Re: python help
Post by: Goat on October 07, 2011, 04:46:19 PM
Already installed on my schools computers after a kid said he needed it etc