ChatCrawlersearch across public Telegram Open the app
J

JavaScript Ecuador

сообщение · 2023-11-30 17:34 UTC
D
extends Area2D var screen_size = Vector2.ZERO ## funciones que denotan valores func random_screen_position(): var x = randi_range(0, screen_size.x) var y = randi_range(0, screen_size.y) return Vector2(x, y) func start(screensize, pos): screen_size = screensize position = pos func grow_and_fade(size): var tween = create_tween().set_parallel().set_trans(Tween.TRANS_QUAD) tween.tween_property(self, "scale", scale * size, 0.3) tween.tween_property(self, "modulate:a", 0.0, 0.3) await tween.finished queue_free() ### metodos func pick_up(): $CollisionShape2D.set_deferred("disabled", true) grow_and_fade(3) #listo de momento func shine(): $AnimatedSprite2D.frame = 0 $AnimatedSprite2D.play() func reposition_coin(): position = random_screen_position() func _ready(): $Timer.start(randf_range(3, 8)) func _on_timer_timeout(): shine() func _handle_collision_with_obstacle(area): if area.is_in_group("obstacles"): reposition_coin()

All messages on 30 November 2023 · Whole feed · оригинал в Telegram

Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog