initial project with basic moevment setup
This commit is contained in:
parent
cabe78caf0
commit
be880bd228
9 changed files with 178 additions and 2 deletions
70
test.tscn
Normal file
70
test.tscn
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://d2waabvrlsfs8"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://lkj8ecm5p4g6" path="res://icon.svg" id="1_8uh7m"]
|
||||
[ext_resource type="Script" uid="uid://cd54ktlkabbla" path="res://ship.gd" id="2_6uqi0"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ppyta"]
|
||||
size = Vector2(128, 26)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ykrsh"]
|
||||
size = Vector2(38, 38)
|
||||
|
||||
[node name="Node2D" type="Node2D"]
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
position = Vector2(597, 583)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="StaticBody2D"]
|
||||
modulate = Color(0, 0, 0, 1)
|
||||
scale = Vector2(1, 0.2)
|
||||
texture = ExtResource("1_8uh7m")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
shape = SubResource("RectangleShape2D_ppyta")
|
||||
|
||||
[node name="StaticBody2D2" type="StaticBody2D" parent="."]
|
||||
position = Vector2(932, 437)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="StaticBody2D2"]
|
||||
modulate = Color(0, 0, 0, 1)
|
||||
scale = Vector2(1, 0.2)
|
||||
texture = ExtResource("1_8uh7m")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2"]
|
||||
shape = SubResource("RectangleShape2D_ppyta")
|
||||
|
||||
[node name="StaticBody2D3" type="StaticBody2D" parent="."]
|
||||
position = Vector2(232, 291)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="StaticBody2D3"]
|
||||
modulate = Color(0, 0, 0, 1)
|
||||
scale = Vector2(1, 0.2)
|
||||
texture = ExtResource("1_8uh7m")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D3"]
|
||||
shape = SubResource("RectangleShape2D_ppyta")
|
||||
|
||||
[node name="StaticBody2D4" type="StaticBody2D" parent="."]
|
||||
position = Vector2(796, 107)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="StaticBody2D4"]
|
||||
modulate = Color(0, 0, 0, 1)
|
||||
scale = Vector2(1, 0.2)
|
||||
texture = ExtResource("1_8uh7m")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D4"]
|
||||
shape = SubResource("RectangleShape2D_ppyta")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||||
position = Vector2(597, 548)
|
||||
gravity_scale = 0.2
|
||||
script = ExtResource("2_6uqi0")
|
||||
thrust_power = 500.0
|
||||
turn_power = 1000.0
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="RigidBody2D"]
|
||||
scale = Vector2(0.3, 0.3)
|
||||
texture = ExtResource("1_8uh7m")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
shape = SubResource("RectangleShape2D_ykrsh")
|
||||
Loading…
Add table
Add a link
Reference in a new issue