mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2024-11-15 05:25:57 +00:00
9ef5a6f749
Previously tried adding a collision mesh to the ships to avoid stacking, but it caused the ships to slide to the right when they spawned. This issue has been resolved. The volume slider now sets to a minimum to -60 dB so the audio only goes silent when set to the minimum. Also set the 'step' variable to 1 so that the slider could be more precise.
19 lines
539 B
Plaintext
19 lines
539 B
Plaintext
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://script/game/moveShip.gd" type="Script" id=1]
|
|
[ext_resource path="res://assets/game/3longShipBS.png" type="Texture" id=2]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 16, 48 )
|
|
|
|
[node name="3ShipB" type="RigidBody2D"]
|
|
input_pickable = true
|
|
custom_integrator = true
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="3longShipBS" type="Sprite" parent="."]
|
|
texture = ExtResource( 2 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource( 1 )
|