init player and prototype earth

This commit is contained in:
LibreHacker 2020-10-03 11:55:37 +03:00
parent d37919e15f
commit 7d26b6cb8d
2 changed files with 40 additions and 1 deletions

View File

@ -1,6 +1,39 @@
[gd_scene load_steps=2 format=2]
[gd_scene load_steps=7 format=2]
[ext_resource path="res://Scripts/Earth.cs" type="Script" id=1]
[ext_resource path="res://Scenes/Player.tscn" type="PackedScene" id=2]
[sub_resource type="CapsuleShape" id=2]
[sub_resource type="CapsuleMesh" id=3]
[sub_resource type="BoxShape" id=4]
extents = Vector3( 10, 1, 10 )
[sub_resource type="PlaneMesh" id=1]
[node name="Earth" type="Node2D"]
script = ExtResource( 1 )
[node name="RigidBody" type="RigidBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.95542, -5.70007 )
[node name="CollisionShape" type="CollisionShape" parent="RigidBody"]
shape = SubResource( 2 )
[node name="MeshInstance" type="MeshInstance" parent="RigidBody/CollisionShape"]
mesh = SubResource( 3 )
material/0 = null
[node name="StaticBody" type="StaticBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.15694, 0 )
[node name="CollisionShape" type="CollisionShape" parent="StaticBody"]
shape = SubResource( 4 )
[node name="MeshInstance" type="MeshInstance" parent="StaticBody/CollisionShape"]
transform = Transform( 100, 0, 0, 0, 1, 0, 0, 0, 100, 0, 0, 0 )
mesh = SubResource( 1 )
material/0 = null
[node name="Player" parent="." instance=ExtResource( 2 )]

6
Scenes/Player.tscn Normal file
View File

@ -0,0 +1,6 @@
[gd_scene format=2]
[node name="Player" type="Spatial"]
[node name="Camera" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, 0.923579, 0.383409, 0, -0.383409, 0.923579, 0, 1.97079, 1.12824 )