initial commit
This commit is contained in:
commit
79951d8075
22 changed files with 729 additions and 0 deletions
5
world/killbrick.gd
Normal file
5
world/killbrick.gd
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
extends Area3D
|
||||
|
||||
func _on_body_entered(body: Node3D):
|
||||
if body is Player:
|
||||
body.health = 0
|
||||
25
world/killbrick.tscn
Normal file
25
world/killbrick.tscn
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://qb8cbljxgnub"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://btnombvdi88t1" path="res://world/killbrick.gd" id="1_mh5je"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_qp2fc"]
|
||||
size = Vector3(4, 1, 4)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xiu23"]
|
||||
albedo_color = Color(0.84313726, 0.23137255, 0.23921569, 1)
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_d4c1g"]
|
||||
material = SubResource("StandardMaterial3D_xiu23")
|
||||
size = Vector3(4, 1, 4)
|
||||
|
||||
[node name="Killbrick" type="Area3D"]
|
||||
collision_mask = 7
|
||||
script = ExtResource("1_mh5je")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("BoxShape3D_qp2fc")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("BoxMesh_d4c1g")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
21
world/radiohead_cube.tscn
Normal file
21
world/radiohead_cube.tscn
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://bcmrj6qkemrll"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dau5jd2ty4a6c" path="res://thebends.jpg" id="1_ujsvd"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_ig7tw"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_h2yge"]
|
||||
albedo_texture = ExtResource("1_ujsvd")
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_0xm2m"]
|
||||
material = SubResource("StandardMaterial3D_h2yge")
|
||||
|
||||
[node name="radiohead cube" type="StaticBody3D"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0)
|
||||
shape = SubResource("BoxShape3D_ig7tw")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0)
|
||||
mesh = SubResource("BoxMesh_0xm2m")
|
||||
Loading…
Add table
Add a link
Reference in a new issue