Skip to content
Permalink
b52c4dbd1a
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
32 lines (28 sloc) 877 Bytes
import os
import pygame
width = 800
height = 425
fps = 30
basic_font = 'courier new.ttf'
textX, textY = 10, 10
spritesheet1 = "p2_spritesheet.png"
spritesheet2 = "tiles_spritesheet.png"
title = "You should be in quarantine!"
# setup game assets (images/sounds)
game_folder = os.path.dirname(__file__)
img_folder = os.path.join(game_folder, "img")
sound_folder = os.path.join(game_folder, "sound")
background = pygame.image.load('img/background.jpg')
BG_colour = (69, 219, 222)
score_font = '8-BIT WONDER.ttf'
# Player properties
player_acc = 0.9
player_friction = -0.12
player_gravity = 1.2
player_jump = 15
# Starting platforms
# X Y
platform_list = [(0, 220),(35, 220), (70, 220), (105, 220),
(0, 425), (35, 425), (70, 425), (105, 425),
(800 / 2, 250), (365, 250), (330, 250), (295, 250),
(90, 125)]