fear (?) Added a is_on_boat function for the player
This commit is contained in:
@@ -10,7 +10,8 @@ fill_from = Vector2(1, 0)
|
||||
fill_to = Vector2(0, 1)
|
||||
|
||||
[sub_resource type="SegmentShape2D" id="SegmentShape2D_dliv6"]
|
||||
b = Vector2(0, 27.7419)
|
||||
a = Vector2(9.78128e-07, 0.256411)
|
||||
b = Vector2(9.78128e-07, 33.0769)
|
||||
|
||||
[node name="Barrier" type="StaticBody2D"]
|
||||
|
||||
@@ -21,6 +22,6 @@ texture = SubResource("GradientTexture2D_eesv4")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(-3.8147e-06, -65)
|
||||
scale = Vector2(4.65, 4.65)
|
||||
scale = Vector2(3.9, 3.9)
|
||||
shape = SubResource("SegmentShape2D_dliv6")
|
||||
one_way_collision_margin = 66.3
|
||||
one_way_collision_margin = 51.0
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://c7todenm3hn4d"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/boat.gd" id="1_brclq"]
|
||||
[ext_resource type="Script" uid="uid://bvejqjdvu7eb1" path="res://scripts/boat.gd" id="1_brclq"]
|
||||
|
||||
[node name="Boat" type="Node2D"]
|
||||
position = Vector2(-1, 0)
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dy71gkll44btc"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dy71gkll44btc"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/player.gd" id="1_jlots"]
|
||||
[ext_resource type="Script" uid="uid://ceijb6ltpgsy1" path="res://scripts/player.gd" id="1_jlots"]
|
||||
[ext_resource type="Texture2D" uid="uid://s4iiumvei5wc" path="res://assets/triangle.svg" id="2_jjceo"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_g2els"]
|
||||
radius = 6.0
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
motion_mode = 1
|
||||
script = ExtResource("1_jlots")
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||||
position = Vector2(-14, 2.86102e-06)
|
||||
rotation = 1.58969
|
||||
scale = Vector2(0.998311, 1.01563)
|
||||
polygon = PackedVector2Array(-9.03255, -0.816984, -0.51107, -26.5797, 8.99469, -1.15189)
|
||||
|
||||
[node name="Sprite2D2" type="Sprite2D" parent="."]
|
||||
position = Vector2(0, -9.53674e-07)
|
||||
position = Vector2(5, 0)
|
||||
rotation = -1.5708
|
||||
scale = Vector2(0.230709, 0.642787)
|
||||
texture = ExtResource("2_jjceo")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_g2els")
|
||||
|
||||
Reference in New Issue
Block a user