As you can tell I am very new to python...I stumbled upon pygame and it looked fun. So I started to build a game and I got stuck right away...Player controls. I would like the player to be able to contorl the person. Thank you.
import pygame, random import random, os import sys from pygame.locals import * import time screen = pygame.display.set_mode((900, 50)) pygame.display.set_caption("game") pygame.mouse.set_visible(True) screen.fill((255,255,90)) img = pygame.image.load ('elder.jpg'). convert() running = 1 while running: event = pygame.event.poll() if event.type == pygame.QUIT: running = 0 screen.blit(img, (0, 0)) pygame.display.flip()
Edited 4 Years Ago by pyTony: Do not push code button before posting