mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-22 07:44:17 +00:00
Update changed things??
This commit is contained in:
parent
bf6541fe60
commit
42c2344ec0
5 changed files with 8 additions and 15 deletions
|
@ -1,5 +0,0 @@
|
||||||
extends RigidBody2D
|
|
||||||
class CoinCopper
|
|
||||||
|
|
||||||
|
|
||||||
func _integrate_forces(state: PhysicsDirectBodyState2D):
|
|
|
@ -1,22 +1,20 @@
|
||||||
[gd_scene load_steps=6 format=3 uid="uid://c3kitncwpi42j"]
|
[gd_scene load_steps=5 format=3 uid="uid://c3kitncwpi42j"]
|
||||||
|
|
||||||
[ext_resource type="PhysicsMaterial" uid="uid://c6kn1an85lccr" path="res://entity/coin.tres" id="1_1merf"]
|
[ext_resource type="PhysicsMaterial" uid="uid://c6kn1an85lccr" path="res://entity/coin_physics_material.tres" id="1_8k46m"]
|
||||||
[ext_resource type="Texture2D" uid="uid://dbdkb4vt7dh85" path="res://entity/coin_copper_4.png" id="1_wedw1"]
|
[ext_resource type="Texture2D" uid="uid://dbdkb4vt7dh85" path="res://entity/coin_copper_4.png" id="1_wedw1"]
|
||||||
[ext_resource type="Texture2D" uid="uid://2vtvoj6ua3cb" path="res://entity/coin_copper_outline_2.png" id="2_2ifq3"]
|
[ext_resource type="Texture2D" uid="uid://2vtvoj6ua3cb" path="res://entity/coin_copper_outline_2.png" id="2_2ifq3"]
|
||||||
[ext_resource type="Script" path="res://entity/coin_copper.gd" id="2_y0e7k"]
|
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_c6byl"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_c6byl"]
|
||||||
size = Vector2(14, 3)
|
size = Vector2(16, 5)
|
||||||
|
|
||||||
[node name="CoinCopper" type="RigidBody2D"]
|
[node name="CoinCopper" type="RigidBody2D"]
|
||||||
collision_layer = 5
|
collision_layer = 5
|
||||||
collision_mask = 7
|
collision_mask = 7
|
||||||
inertia = 20000.0
|
inertia = 20000.0
|
||||||
physics_material_override = ExtResource("1_1merf")
|
physics_material_override = ExtResource("1_8k46m")
|
||||||
continuous_cd = 1
|
continuous_cd = 1
|
||||||
linear_damp = 0.1
|
linear_damp = 0.1
|
||||||
angular_damp = 0.1
|
angular_damp = 0.1
|
||||||
script = ExtResource("2_y0e7k")
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
scale = Vector2(3, 3)
|
scale = Vector2(3, 3)
|
||||||
|
|
|
@ -36,9 +36,9 @@ window/handheld/orientation=1
|
||||||
|
|
||||||
2d/run_on_separate_thread=true
|
2d/run_on_separate_thread=true
|
||||||
2d/solver/solver_iterations=4
|
2d/solver/solver_iterations=4
|
||||||
2d/solver/contact_recycle_radius=3.0
|
2d/solver/contact_max_separation=1.0
|
||||||
2d/solver/contact_max_allowed_penetration=0.02
|
2d/solver/contact_max_allowed_penetration=0.02
|
||||||
2d/solver/default_contact_bias=0.1
|
2d/solver/default_contact_bias=0.0
|
||||||
2d/solver/default_constraint_bias=0.1
|
2d/solver/default_constraint_bias=0.1
|
||||||
|
|
||||||
[rendering]
|
[rendering]
|
||||||
|
|
|
@ -9,14 +9,14 @@ size = Vector2(100, 20)
|
||||||
script = ExtResource("1_xqfmg")
|
script = ExtResource("1_xqfmg")
|
||||||
|
|
||||||
[node name="Timer" type="Timer" parent="."]
|
[node name="Timer" type="Timer" parent="."]
|
||||||
wait_time = 0.02
|
wait_time = 0.1
|
||||||
autostart = true
|
autostart = true
|
||||||
|
|
||||||
[node name="Area2D" type="Area2D" parent="."]
|
[node name="Area2D" type="Area2D" parent="."]
|
||||||
collision_mask = 4
|
collision_mask = 4
|
||||||
|
|
||||||
[node name="Shape" type="CollisionShape2D" parent="Area2D"]
|
[node name="Shape" type="CollisionShape2D" parent="Area2D"]
|
||||||
position = Vector2(0, -10)
|
position = Vector2(0, -15)
|
||||||
shape = SubResource("RectangleShape2D_xnebx")
|
shape = SubResource("RectangleShape2D_xnebx")
|
||||||
|
|
||||||
[connection signal="timeout" from="Timer" to="." method="spawn"]
|
[connection signal="timeout" from="Timer" to="." method="spawn"]
|
||||||
|
|
Loading…
Reference in a new issue