赞
踩
放在文件夹取名为images
首先创建一个文件名为index.py
- import random
- import sys
- import time
-
- import pygame
- from pygame.locals import *
-
- pygame.init()
- canvas = pygame.display.set_mode((1200, 720))
- pygame.display.set_caption('奔跑吧恐龙')
- bg = pygame.image.load("images/bg.png")
- d1 = pygame.image.load("images/dinosaur1.png")
- d2 = pygame.image.load("images/dinosaur2.png")
- tip = pygame.image.load("images/tip.png")
- win = pygame.image.load("images/win.png")
- lose = pygame.image.load("images/lose.png")
- s1 = pygame.image.load("images/stone1.png")
- s2 = pygame.image.load("image
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。