Basic game
This commit is contained in:
25
data/objects/stone.tscn
Normal file
25
data/objects/stone.tscn
Normal file
@ -0,0 +1,25 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://ikvaekbnft70"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://ttb1b3k07qu5" path="res://textures/world/biome/forest/boulder.svg" id="1_474a4"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_d7f4g"]
|
||||
script/source = "extends StaticBody2D
|
||||
|
||||
|
||||
var type = \"resource\"
|
||||
var resource_type = \"stone\"
|
||||
"
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_fb1fv"]
|
||||
radius = 64.0
|
||||
|
||||
[node name="stone" type="StaticBody2D"]
|
||||
script = SubResource("GDScript_d7f4g")
|
||||
|
||||
[node name="collision" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
shape = SubResource("CircleShape2D_fb1fv")
|
||||
|
||||
[node name="body" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.2, 0.2)
|
||||
texture = ExtResource("1_474a4")
|
24
data/objects/tree.tscn
Normal file
24
data/objects/tree.tscn
Normal file
@ -0,0 +1,24 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://c7ir6imnqx4py"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://i7fjjduk8b0c" path="res://textures/world/biome/forest/tree.svg" id="1_nvko3"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_d7f4g"]
|
||||
script/source = "extends StaticBody2D
|
||||
|
||||
|
||||
var type = \"resource\"
|
||||
var resource_type = \"wood\"
|
||||
"
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_fb1fv"]
|
||||
radius = 32.0
|
||||
|
||||
[node name="tree" type="StaticBody2D"]
|
||||
script = SubResource("GDScript_d7f4g")
|
||||
|
||||
[node name="collision" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_fb1fv")
|
||||
|
||||
[node name="body" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.2, 0.2)
|
||||
texture = ExtResource("1_nvko3")
|
Reference in New Issue
Block a user