regression-test-project/MainScenes/Node2D.gd

50 lines
1.4 KiB
GDScript3
Raw Normal View History

2020-08-05 11:03:11 +02:00
extends Node2D
2020-11-06 16:57:49 +01:00
2020-08-05 11:03:11 +02:00
func _ready():
2020-11-06 16:57:49 +01:00
for _i in range(Autoload.RANGE):
2020-08-05 11:03:11 +02:00
add_child(Node2D.new())
2020-08-16 08:12:17 +02:00
add_child(AnimatedSprite2D.new())
2020-08-05 11:03:11 +02:00
add_child(Area2D.new())
add_child(KinematicBody2D.new())
add_child(RigidBody2D.new())
add_child(StaticBody2D.new())
add_child(AudioStreamPlayer2D.new())
2020-11-06 16:57:49 +01:00
add_child(BackBufferCopy.new())
2020-08-05 11:03:11 +02:00
add_child(Bone2D.new())
add_child(CPUParticles2D.new())
add_child(Camera2D.new())
add_child(CanvasModulate.new())
2020-11-06 16:57:49 +01:00
# add_child(CollisionPolygon2D.new()) # Errors
2020-08-05 11:03:11 +02:00
add_child(CollisionShape2D.new())
add_child(DampedSpringJoint2D.new())
add_child(GrooveJoint2D.new())
add_child(PinJoint2D.new())
add_child(Light2D.new())
add_child(LightOccluder2D.new())
add_child(Line2D.new())
add_child(MeshInstance2D.new())
add_child(MultiMeshInstance2D.new())
add_child(Navigation2D.new())
add_child(ParallaxLayer.new())
2020-08-16 08:12:17 +02:00
add_child(GPUParticles2D.new())
2020-08-05 11:03:11 +02:00
add_child(Path2D.new())
add_child(PathFollow2D.new())
add_child(Polygon2D.new())
add_child(Position2D.new())
add_child(RayCast2D.new())
add_child(RemoteTransform2D.new())
add_child(Skeleton2D.new())
2020-08-16 08:12:17 +02:00
add_child(Sprite2D.new())
2020-08-05 11:03:11 +02:00
add_child(TileMap.new())
add_child(TouchScreenButton.new())
add_child(VisibilityNotifier2D.new())
add_child(VisibilityEnabler2D.new())
add_child(YSort.new())
2020-11-06 16:57:49 +01:00
func _process(_delta: float) -> void:
for i in get_children():
2020-08-05 11:03:11 +02:00
if i is Node2D:
2020-11-06 16:57:49 +01:00
i.set_position(Vector2(1000 * randf() - 500, 1000 * randf() - 500))