summaryrefslogtreecommitdiff
path: root/src/sliceitoff/main.py
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-16 11:11:56 +0200
committerViljami Ilola <+@hix.fi>2024-03-16 11:11:56 +0200
commit85adc89f53763b4390f7e51161a05ab394143152 (patch)
treeb63de708a75d7ea3fd961f8d63ca2af381cb66c5 /src/sliceitoff/main.py
parent5d921239e0577988e2b7814025149d9160ecbdda (diff)
drafting game components
Diffstat (limited to 'src/sliceitoff/main.py')
-rw-r--r--src/sliceitoff/main.py24
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