Hi all!
Im making a mario clone, and i was wondering how to write the jump function in the Mario class, any help would be good, im using PyGame by the way. heres my code so far:
#usr/bin/env python
import sys
import os
import pygame
from pygame.locals import *
class Mario():
def __init__(self):
self.image, self.rect = pygame.load_image('mario.png')
self.health = 1
self.alive = 1
def walkRight():
self.move()
def walkLeft():
self.-move()
def jump():
THanks