summaryrefslogtreecommitdiff
path: root/src/sliceitoff/main.py
blob: d4fb0bc0c1706572aba8520cd0ecb4503ccde5f2 (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
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

def main():
    pg_init()

    display = Display()
    Images.load_images()

    status = Status()
    field = Field()

    field.slice(20_000, 20_000, True, 1_000)
    field.slice(10_000, 20_000, False, 1_000)
    
    display.update(
            [
                status.get_sprites(),
                field.get_sprites()
            ])

    sleep(2)
    pg_quit()

main()