anasazhar

settings.py

Nov 9th, 2020
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.59 KB | None | 0 0
  1. import pygame
  2.  
  3. class Settings:
  4.     def __init__(self):
  5.  
  6.         #Arena Settings
  7.         self.screen_width = 360
  8.         self.screen_height = 640
  9.         self.title = "Flappy Bird"
  10.         self.background = pygame.image.load("img/bg.PNG")
  11.  
  12.  
  13.         #Bird Settings
  14.         self.bird_image = pygame.image.load("img/bird.PNG")
  15.  
  16.         #Platform Settings
  17.         self.platform_image = pygame.image.load("img/land.PNG")
  18.         self.platform_speed = 1
  19.         #self.platform_image = pygame.transform.scale2x(self.platform_image)
  20.  
  21.         #Pipe Settings
  22.         self.pipe_width = 50
  23.         self.pipe_height = 200
  24.         self.pipe_color = [60, 60, 60]
  25.         self.pipe_speed = 1
  26.  
Advertisement
Add Comment
Please, Sign In to add comment