Archived
1
0
Fork 0
This repository has been archived on 2026-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
Danmaku/client/danmaku!/scaling.gd

6 lines
266 B
GDScript

@tool
extends AspectRatioContainer
func _process(delta: float) -> void:
var board_screen_size = $ReferenceRect.get_rect()
$ReferenceRect/Container.scale = Vector2(board_screen_size.size.x / Globals.SERVER_SIZE.x, board_screen_size.size.y / Globals.SERVER_SIZE.y)