22 lines
324 B
Python
22 lines
324 B
Python
import pygame
|
|
import random
|
|
|
|
#start
|
|
pygame.init()
|
|
|
|
#background
|
|
WIDTH , HEIGHT = 600,200
|
|
screen = pygame.display.set_mode((WIDTH,HEIGHT))
|
|
pygame.display.set_caption("dinosour running")
|
|
|
|
#colour
|
|
WHITE = (255,255,255)
|
|
BLACK = (0,0,0)
|
|
|
|
clock = pygame.time.Clock()
|
|
FPS = 60
|
|
gravity = 0.8
|
|
jump_vel = -16
|
|
is_jump = False
|
|
|
|
#dinosaur |