-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.py
More file actions
27 lines (24 loc) · 757 Bytes
/
Copy pathsettings.py
File metadata and controls
27 lines (24 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import pygame
from pygame.locals import *
from player import Player
class DataManager:
def __init__(self):
self.walls = []
self.running = True
self.jumping = False
self.jumping_to_go = 0
self.max_jump = 32
self.on_ground = False
self.sx = 640
self.sy = 480
self.screen = pygame.display.set_mode((self.sx, self.sy), HWSURFACE | DOUBLEBUF | RESIZABLE)
self.ent_list = []
self.font = pygame.font.Font(None, 26)
self.muted = False
self.volume = 0.1
self.block_size_x = 16
self.block_size_y = 16
self.blocks_row_size = 30
self.blocks_column_size = 40
self.spawnpoint = (0, 0)
self.player = Player(self)