summaryrefslogtreecommitdiff
path: root/src/sliceitoff/main.py
blob: d604d0b574579edeb9583f30471d960623cc8d99 (plain)
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
from pygame import (
    init as pg_init,
    quit as pg_quit)
    
from time import sleep
    
from display import Display
from status import Status
from field import Field
from images import images, load_images

def main():
    pg_init()

    display = Display()
    scaling = display.get_scaling()
    load_images(scaling.scale)

    status = Status(scaling=scaling)
    field = Field(scaling=scaling)
    
    print(scaling)
    
    display.update(
            [
                status.get_sprites(),
                field.get_sprites()
            ])

    sleep(2)
    pg_quit()



main()