summaryrefslogtreecommitdiff
path: root/scenes/microgames/ad/ad.gd
blob: 5a0a44a48ae8b662151f106712376b3dbac7c37d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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