feat: added new sprites
This commit is contained in:
parent
7c54b60337
commit
b4594bdd43
43 changed files with 609 additions and 74 deletions
|
@ -73,11 +73,3 @@ func _pick_random_screen_position() -> void:
|
|||
)
|
||||
|
||||
_target_pos = random_pos
|
||||
|
||||
|
||||
func set_scale(scale: float) -> void:
|
||||
var original_size: Vector2i = size
|
||||
size = Vector2i(size.x * scale, size.y * scale)
|
||||
dragon.scale = Vector2(scale, scale)
|
||||
|
||||
position += Vector2i((original_size.x - size.x) / 2.0, (original_size.y - size.y) / 2.0)
|
||||
|
|
|
@ -7,10 +7,11 @@
|
|||
[node name="DragonPopup" type="Window" node_paths=PackedStringArray("dragon", "draggable")]
|
||||
disable_3d = true
|
||||
transparent_bg = true
|
||||
size = Vector2i(128, 128)
|
||||
size = Vector2i(76, 88)
|
||||
unresizable = true
|
||||
borderless = true
|
||||
transparent = true
|
||||
content_scale_mode = 2
|
||||
script = ExtResource("1_ctdir")
|
||||
dragon_speed = 100.0
|
||||
dragon = NodePath("Dragon")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue