diff --git a/draw_circle.gd b/draw_circle.gd new file mode 100644 index 0000000..2d87a9c --- /dev/null +++ b/draw_circle.gd @@ -0,0 +1,5 @@ +extends Sprite2D +@export var radius : float; + +func _draw(): + draw_circle(Vector2.ZERO, radius, Color.BLACK, true, -1.0, true) diff --git a/draw_circle.gd.uid b/draw_circle.gd.uid new file mode 100644 index 0000000..1f12484 --- /dev/null +++ b/draw_circle.gd.uid @@ -0,0 +1 @@ +uid://b5fhsy1xlreco diff --git a/earth.tscn b/earth.tscn new file mode 100644 index 0000000..20f0afd --- /dev/null +++ b/earth.tscn @@ -0,0 +1,22 @@ +[gd_scene load_steps=4 format=3 uid="uid://33k5v6skcbsm"] + +[ext_resource type="Texture2D" uid="uid://cy70quh6k3s1j" path="res://icon.svg" id="1_qbwya"] +[ext_resource type="Script" uid="uid://b5fhsy1xlreco" path="res://draw_circle.gd" id="2_2bhor"] + +[sub_resource type="CircleShape2D" id="CircleShape2D_5i67w"] +radius = 3000.0 + +[node name="Earth" type="Node2D"] + +[node name="Ground" type="StaticBody2D" parent="."] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Ground"] +shape = SubResource("CircleShape2D_5i67w") + +[node name="Sprite2D" type="Sprite2D" parent="Ground"] +texture = ExtResource("1_qbwya") +script = ExtResource("2_2bhor") +radius = 3000.0 + +[node name="Camera2D" type="Camera2D" parent="."] +position = Vector2(47, -3283) diff --git a/project.godot b/project.godot index 9365a52..ea99ec8 100644 --- a/project.godot +++ b/project.godot @@ -11,5 +11,12 @@ config_version=5 [application] config/name="The Dark Side of Earth" +run/main_scene="res://earth.tscn" config/features=PackedStringArray("4.4", "Forward Plus") config/icon="res://icon.svg" + +[display] + +window/size/viewport_width=1920 +window/size/viewport_height=1080 +window/size/mode=3