-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.py
More file actions
53 lines (41 loc) · 1.26 KB
/
script.py
File metadata and controls
53 lines (41 loc) · 1.26 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -*- coding: utf-8 -*-
"""
Created on Fri Apr 17 12:22:01 2020
@author: Patrick
"""
import pygame
import sys
from pygame.locals import *
import os
# os.chdir('set path if not working')
import helpers
import states
#%%
#Idea for later:
#Make the points you gain in this skill, grant you internet accessto sites like youtube/facebook/reddit
#%%
#Globals
main = os.getcwd()
black = (0, 0, 0)
white = (255, 255, 255)
with open(main+'\\states\\screen_dims.txt','r') as f:
data = f.readlines()
screen_w,screen_h = tuple(data[0].split(','))
screen_w = int(screen_w)
screen_h = int(screen_h)
pygame.init()
def loop():
pygame.init()
state = {'running':1,'title':1,'game1':0,'options':0}
#Init and screen
screen = pygame.display.set_mode((screen_w,screen_h))
screen.fill(black)
pygame.display.flip()
while state['running']==1:
if state['running']==0: pygame.quit()
if state['title']==1: state = states.title_screen(state,screen)
if state['options']==1: state = states.options(state,screen)
if state['game1']==1: state = states.game1(state,screen)
loop()
##TODO:##
#IMplement data tracking from the main menu: plt plyplotting that shit