以下是我照抄寫的部分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
拜託高手指點迷津一下,謝謝!