diff options
Diffstat (limited to 'scenes/microgames/ad/ad.gd')
-rw-r--r-- | scenes/microgames/ad/ad.gd | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scenes/microgames/ad/ad.gd b/scenes/microgames/ad/ad.gd new file mode 100644 index 0000000..5a0a44a --- /dev/null +++ b/scenes/microgames/ad/ad.gd @@ -0,0 +1,18 @@ +extends Node2D + + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + # Stretch the funny image to fit in the window + const AD_WINDOW_SIZE = Vector2(1024, 1024) + var sprite := $Sprite2D + # Scale!? + sprite.scale = Vector2( + AD_WINDOW_SIZE.x / sprite.texture.get_width(), + AD_WINDOW_SIZE.y / sprite.texture.get_height() + ) + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + pass |