Author Topic: python help  (Read 95 times)

0 Members and 1 Guest are viewing this topic.

Offline Goat

  • ****
  • Windows UserDog LoverLeague Player
    View More Badges!

  • Posts: 472
  • Gender: Male
  • Respect: +178
python help
« on: September 26, 2011, 06:51:35 PM »
0

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
« Last Edit: September 26, 2011, 06:56:33 PM by Goat »

Offline Сєşάя

  • *****
  • Posts: 631
  • Gender: Male
  • I used to be annoying
  • Respect: +72
Re: python help
« Reply #1 on: October 06, 2011, 06:48:21 PM »
0
I call Python: "The language that makes all for you"

Python is the easiest language in the world.

I made a game with Python:

Offline Goat

  • ****
  • Windows UserDog LoverLeague Player
    View More Badges!

  • Posts: 472
  • Gender: Male
  • Respect: +178
Re: python help
« Reply #2 on: October 06, 2011, 07:05:37 PM »
0
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

Offline Сєşάя

  • *****
  • Posts: 631
  • Gender: Male
  • I used to be annoying
  • Respect: +72
Re: python help
« Reply #3 on: October 07, 2011, 05:47:40 AM »
0
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.

Offline Goat

  • ****
  • Windows UserDog LoverLeague Player
    View More Badges!

  • Posts: 472
  • Gender: Male
  • Respect: +178
Re: python help
« Reply #4 on: October 07, 2011, 04:46:19 PM »
0
Already installed on my schools computers after a kid said he needed it etc