以下是我照抄写的部分python游戏程式码
import pygame
from pygame.locals import
pygame.init()
width, height = 640, 480
screen=pygame.display.set_mode((width. height))
player = pygame.images.load("resources/images/dude.png")
error:couldn't open resources/images/dude.png
就像大家看到的,无法打开 resources,想请问是为什么呢?? 我有先下载相关档案在
电脑文件夹里了啊...
我的作业系统是ubuntu12.04,用python2.7写,以上程式码是参照Beginning Game
programming for Teens with python抄的,网址是
http://www.raywenderlich.com/24252/beginning-game-programming-for-teens-with-python
拜托高手指点迷津一下,谢谢!