Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/05/2010, 21:14
laurarojas86
 
Fecha de Ingreso: mayo-2010
Mensajes: 1
Antigüedad: 14 años
Puntos: 0
ayuda con juego con pygame

HOLA SOY NUEVA PROGRAMANDO CON PYTHON AHORA ESTOY TRATANDO DE HACER UN JUEGO EN PYGAME PERO NO HE PODIDO CARGAR EL FONDO DE PANTALLA NI LA IMAGEN ALGUIEN PODIA AYUDARME Y EXPLICARME CUAL SERA EL PROBLEMA AQUI LES DEJO EL CODIGO.

Código Python:
Ver original
  1. # ! /usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. # Modulos
  4. import pygame
  5. from pygame. locals import*
  6. import sys
  7. # Constantes
  8. SCREEN_WIDTH = 840
  9. SCREEN_HEIGHT = 680
  10. # Clases
  11. #----------------------------------------------------------------------------
  12.  
  13. #----------------------------------------------------------------------------
  14.  
  15. # Funciones
  16. #----------------------------------------------------------------------------
  17.  
  18. #----------------------------------------------------------------------------
  19. def main():
  20.         pygame.init()
  21.         screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))
  22.         pygame.display.set_caption("APREDIENDO C++")
  23.  
  24.         fondotesis = pygame.image.load("fondotesis.jepg").convert()
  25.         imagentesis22 = pygame.image.load("imagentesis22.png").convert_alpha()
  26.  
  27.         screen.blit(fondotesis, (0, 0))
  28.         screen.blit(imagentesis22, (550, 200))
  29.        
  30.         pygame.display.flid()
  31.  
  32.         while True:
  33.                 for eventos in pygame.event.get():
  34.                         if eventos. type ==pygame.QUIT:
  35.                                 sys.exit(0)
  36.                
  37. if __name__== "__main__":
  38.        
  39.         main()
ESO ES LO QUE LLEVO APENAS ESTOY COMENZANDO .
EL ERRO QUE ME MUESTRA ES

Traceback (most recent call last):
File "C:\Documents and Settings\Administrador\Mis documentos\PYTHON TESIS\tesis.py", line 48, in <module>
main()
File "C:\Documents and Settings\Administrador\Mis documentos\PYTHON TESIS\tesis.py", line 33, in main
fondotesis = pygame.image.load("fondotesis.jepg").convert()
error: Couldn't open fondotesis.jepg

SI ALGUIEN PUEDE AYUDARME

Última edición por AlvaroG; 31/05/2010 a las 10:36 Razón: arreglar coloreado de sintaxis