From 85adc89f53763b4390f7e51161a05ab394143152 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Sat, 16 Mar 2024 11:11:56 +0200 Subject: drafting game components --- src/sliceitoff/main.py | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'src/sliceitoff/main.py') 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 -- cgit v1.2.3