1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-25 17:14:20 +00:00

Update changed things??

This commit is contained in:
Steffo 2023-09-30 23:59:28 +02:00
parent bf6541fe60
commit 42c2344ec0
Signed by: steffo
GPG key ID: 2A24051445686895
5 changed files with 8 additions and 15 deletions

View file

@ -1,5 +0,0 @@
extends RigidBody2D
class CoinCopper
func _integrate_forces(state: PhysicsDirectBodyState2D):

View file

@ -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)

View file

@ -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]

View file

@ -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"]