Permalink
Cannot retrieve contributors at this time
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?
Quarantine-game/settings.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
33 lines (27 sloc)
861 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pygame | |
width = 960 # 960/32 = 30 | |
height = 480 # 480/32 = 15 | |
tilesize = 32 # 30/15 TILE SCREEN | |
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 = 17 | |
# Platform/tile images | |
grass_left = pygame.image.load('img/grassLeft.png') | |
grass_middle = pygame.image.load('img/grassMid.png') | |
grass_right = pygame.image.load('img/grassRight.png') | |