dynamic size for demo font

This commit is contained in:
cecilkorik 2025-04-25 21:43:31 -04:00
parent f98eb79c57
commit a677eca173

View file

@ -11,7 +11,7 @@ window = engine.screen.window
label = pyglet.text.Label('Hello, world',
font_name='Times New Roman',
font_size=36,
font_size=window.height//8,
x=window.width//2, y=window.height//2,
anchor_x='center', anchor_y='center')