diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-16 11:11:56 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-16 11:11:56 +0200 |
commit | 85adc89f53763b4390f7e51161a05ab394143152 (patch) | |
tree | b63de708a75d7ea3fd961f8d63ca2af381cb66c5 /src/sliceitoff/main.py | |
parent | 5d921239e0577988e2b7814025149d9160ecbdda (diff) |
drafting game components
Diffstat (limited to 'src/sliceitoff/main.py')
-rw-r--r-- | src/sliceitoff/main.py | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/src/sliceitoff/main.py b/src/sliceitoff/main.py index 5f1f3ce..6733466 100644 --- a/src/sliceitoff/main.py +++ b/src/sliceitoff/main.py @@ -5,11 +5,31 @@ from pygame import ( 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() - d = Display() - sleep(4) + + 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()
\ No newline at end of file |