Initial test with LFS

This commit is contained in:
Imbus 2023-11-05 17:45:37 +01:00
parent f52a7c8cb3
commit adac61d94d
31 changed files with 995 additions and 0 deletions

78
MainMenu2.tscn Normal file
View file

@ -0,0 +1,78 @@
[gd_scene load_steps=3 format=3 uid="uid://33xarvcgvyix"]
[ext_resource type="Script" path="res://MainMenuScript.gd" id="1_j2uwo"]
[ext_resource type="PackedScene" uid="uid://djf10pcubimfn" path="res://Stable movement.tscn" id="2_liq4p"]
[node name="MainMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.368627, 0.368627, 0.368627, 1)
[node name="VBoxContainer2" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -456.0
offset_top = 75.0
offset_right = 457.0
offset_bottom = 208.0
grow_horizontal = 2
[node name="Title" type="Label" parent="VBoxContainer2"]
layout_mode = 2
theme_override_font_sizes/font_size = 95
text = "Cultivation Survival"
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -301.0
offset_top = -68.0
offset_right = 301.0
offset_bottom = 252.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_j2uwo")
scenetoLoad = ExtResource("2_liq4p")
[node name="New Game" type="Button" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 4
size_flags_stretch_ratio = 0.0
theme_override_font_sizes/font_size = 70
text = "New Game"
icon_alignment = 1
expand_icon = true
[node name="Option" type="Button" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 4
theme_override_font_sizes/font_size = 70
text = "Options"
[node name="Exit" type="Button" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 4
theme_override_font_sizes/font_size = 70
text = "Exit
"
[connection signal="pressed" from="VBoxContainer/New Game" to="VBoxContainer" method="_on_new_game_pressed"]
[connection signal="pressed" from="VBoxContainer/Exit" to="VBoxContainer" method="_on_exit_pressed"]

17
MainMenuScript.gd Normal file
View file

@ -0,0 +1,17 @@
extends VBoxContainer
@export var scenetoLoad : PackedScene
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_new_game_pressed():
get_tree().change_scene_to_packed(scenetoLoad)
func _on_exit_pressed():
get_tree().quit(0)

2
MenuScript.gd Normal file
View file

@ -0,0 +1,2 @@
extends VBoxContainer

0
Player.gd Normal file
View file

59
PlayerCharacterBody3D.gd Normal file
View file

@ -0,0 +1,59 @@
extends CharacterBody3D
const SPEED = 10.0
const JUMP_VELOCITY = 5
# Get the gravity from the project settings to be synced with RigidDynamicBody nodes.
var gravity: float = ProjectSettings.get_setting("physics/3d/default_gravity")
@onready var neck := $Neck
@onready var camera := $Neck/Camera3D
@onready var walking_sound = $AudiostreamPlayer3DSTEP
func _unhandled_input(event: InputEvent) -> void:
if event is InputEventMouseButton:
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
elif event.is_action_pressed("ui_cancel"):
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
if Input.get_mouse_mode() == Input.MOUSE_MODE_CAPTURED:
if event is InputEventMouseMotion:
neck.rotate_y(-event.relative.x * 0.01)
camera.rotate_x(-event.relative.y * 0.01)
camera.rotation.x = clamp(camera.rotation.x, deg_to_rad(-60), deg_to_rad(60))
func _physics_process(delta: float) -> void:
# Add the gravity.
if not is_on_floor():
velocity.y -= gravity * delta
# Handle Jump.
if Input.is_action_just_pressed("ui_accept") and is_on_floor():
velocity.y = JUMP_VELOCITY
# Get the input direction and handle the movement/deceleration.
# As good practice, you should replace UI actions with custom gameplay actions.
var input_dir := Input.get_vector("Left", "Right", "Forward", "Back")
var sprint := Input.is_action_pressed("Sprint")
var direction = (neck.transform.basis * Vector3(input_dir.x, 0, input_dir.y)).normalized()
var vx = direction.x * SPEED
var vz = direction.z * SPEED
if(sprint):
vx*=10
vz*=10
velocity.x = vx
velocity.z = vz
# GårHan?
if velocity.length() > 0.1 and is_on_floor() and !walking_sound.playing:
walking_sound.play()
# Stårstilla?
if velocity.length() < 0.1 or !is_on_floor():
walking_sound.stop()
move_and_slide()

38
PlayerMovement.gd Normal file
View file

@ -0,0 +1,38 @@
extends CharacterBody3D
const SPEED = 5.0
const JUMP_VELOCITY = 4.5
const MOUSE_SENSITIVITY = 0.1
var gravity = ProjectSettings.get_setting("physics/3d/default_gravity")
var camera_rotation = Vector2()
func _input(event):
if event is InputEventMouseMotion:
camera_rotation -= event.relative * MOUSE_SENSITIVITY
func _physics_process(delta):
# Add the gravity.
if not is_on_floor():
velocity.y -= gravity * delta
# Handle Jump.
if Input.is_action_just_pressed("ui_accept") and is_on_floor():
velocity.y = JUMP_VELOCITY
# Get the input direction and handle the movement/deceleration.
# As good practice, you should replace UI actions with custom gameplay actions.
var input_dir = Input.get_vector("Left", "Right", "Forward", "Back")
var direction = (transform.basis * Vector3(input_dir.x, 0, input_dir.y)).normalized()
if direction:
velocity.x = direction.x * SPEED
velocity.z = direction.z * SPEED
else:
velocity.x = move_toward(velocity.x, 0, SPEED)
velocity.z = move_toward(velocity.z, 0, SPEED)
move_and_slide()
# Rotate the character's camera based on mouse input.
$Camera3D.rotation_degrees.y = camera_rotation.x
$Camera3D.rotation_degrees.x = clamp(camera_rotation.y, -90, 90)

59
Playermovementimbus.gd Normal file
View file

@ -0,0 +1,59 @@
extends CharacterBody3D
const SPEED = 10.0
const JUMP_VELOCITY = 5
# Get the gravity from the project settings to be synced with RigidDynamicBody nodes.
var gravity: float = ProjectSettings.get_setting("physics/3d/default_gravity")
@onready var neck := $Neck
@onready var camera := $Neck/Camera3D
@onready var walking_sound = $AudiostreamPlayer3DSTEP
func _unhandled_input(event: InputEvent) -> void:
if event is InputEventMouseButton:
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
elif event.is_action_pressed("ui_cancel"):
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
if Input.get_mouse_mode() == Input.MOUSE_MODE_CAPTURED:
if event is InputEventMouseMotion:
neck.rotate_y(-event.relative.x * 0.01)
camera.rotate_x(-event.relative.y * 0.01)
camera.rotation.x = clamp(camera.rotation.x, deg_to_rad(-60), deg_to_rad(60))
func _physics_process(delta: float) -> void:
# Add the gravity.
if not is_on_floor():
velocity.y -= gravity * delta
# Handle Jump.
if Input.is_action_just_pressed("ui_accept") and is_on_floor():
velocity.y = JUMP_VELOCITY
# Get the input direction and handle the movement/deceleration.
# As good practice, you should replace UI actions with custom gameplay actions.
var input_dir := Input.get_vector("Left", "Right", "Forward", "Back")
var sprint := Input.is_action_pressed("Sprint")
var direction = (neck.transform.basis * Vector3(input_dir.x, 0, input_dir.y)).normalized()
var vx = direction.x * SPEED
var vz = direction.z * SPEED
if(sprint):
vx*=10
vz*=10
velocity.x = vx
velocity.z = vz
# GårHan?
if velocity.length() > 0.1 and is_on_floor() and !walking_sound.playing:
walking_sound.play()
# Stårstilla?
if velocity.length() < 0.1 or !is_on_floor():
walking_sound.stop()
move_and_slide()

BIN
Sounds/running-in-grass-6237.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://d0lbrjwmvi8c"
path="res://.godot/imported/running-in-grass-6237.mp3-8b8ba2acbdb2653b71d7af39c2809b92.mp3str"
[deps]
source_file="res://Sounds/running-in-grass-6237.mp3"
dest_files=["res://.godot/imported/running-in-grass-6237.mp3-8b8ba2acbdb2653b71d7af39c2809b92.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

113
Sta298E.tmp Normal file
View file

@ -0,0 +1,113 @@
[gd_scene load_steps=18 format=3 uid="uid://djf10pcubimfn"]
[ext_resource type="Script" path="res://PlayerCharacterBody3D.gd" id="1_5sofw"]
[ext_resource type="Texture2D" uid="uid://df04268jurax7" path="res://textures/AxelNpc.png" id="1_bwt8a"]
[ext_resource type="Texture2D" uid="uid://bjou2c1ygtuyu" path="res://textures/coast_sand_rocks_02_diff_4k.png" id="1_ecmet"]
[ext_resource type="Texture2D" uid="uid://d0tjgn7clnu6j" path="res://textures/coast_sand_rocks_02_nor_gl_4k.png" id="2_brd00"]
[ext_resource type="Texture2D" uid="uid://rxyxalv0cgcw" path="res://textures/coast_sand_rocks_02_rough_4k.png" id="3_acdmk"]
[ext_resource type="AudioStream" uid="uid://d0lbrjwmvi8c" path="res://Sounds/running-in-grass-6237.mp3" id="6_vbopi"]
[sub_resource type="BoxMesh" id="BoxMesh_0lm1w"]
size = Vector3(5, 5, 5)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_j65y2"]
albedo_texture = ExtResource("1_bwt8a")
metallic_specular = 0.56
metallic_texture_channel = 2
normal_enabled = true
normal_texture = ExtResource("2_brd00")
uv1_scale = Vector3(2.385, 2.385, 2.385)
uv1_offset = Vector3(-0.675, -1.035, -0.505)
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_t5jnf"]
data = PackedVector3Array(-2.5, 2.5, 2.5, 2.5, 2.5, 2.5, -2.5, -2.5, 2.5, 2.5, 2.5, 2.5, 2.5, -2.5, 2.5, -2.5, -2.5, 2.5, 2.5, 2.5, -2.5, -2.5, 2.5, -2.5, 2.5, -2.5, -2.5, -2.5, 2.5, -2.5, -2.5, -2.5, -2.5, 2.5, -2.5, -2.5, 2.5, 2.5, 2.5, 2.5, 2.5, -2.5, 2.5, -2.5, 2.5, 2.5, 2.5, -2.5, 2.5, -2.5, -2.5, 2.5, -2.5, 2.5, -2.5, 2.5, -2.5, -2.5, 2.5, 2.5, -2.5, -2.5, -2.5, -2.5, 2.5, 2.5, -2.5, -2.5, 2.5, -2.5, -2.5, -2.5, 2.5, 2.5, 2.5, -2.5, 2.5, 2.5, 2.5, 2.5, -2.5, -2.5, 2.5, 2.5, -2.5, 2.5, -2.5, 2.5, 2.5, -2.5, -2.5, -2.5, 2.5, 2.5, -2.5, 2.5, -2.5, -2.5, -2.5, 2.5, -2.5, 2.5, 2.5, -2.5, -2.5, -2.5, -2.5, -2.5)
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_jyng4"]
sky_top_color = Color(0.25098, 0.431373, 0.792157, 1)
sky_horizon_color = Color(0.560784, 0.623529, 0.878431, 1)
sky_curve = 0.0304595
sky_energy_multiplier = 2.17
sky_cover_modulate = Color(0.223529, 1, 1, 1)
ground_bottom_color = Color(0.396078, 0, 0, 1)
ground_horizon_color = Color(1, 0.705882, 0.611765, 1)
ground_energy_multiplier = 2.45
[sub_resource type="Sky" id="Sky_1lu5x"]
sky_material = SubResource("ProceduralSkyMaterial_jyng4")
[sub_resource type="Environment" id="Environment_kvgi4"]
background_mode = 2
background_energy_multiplier = 0.58
sky = SubResource("Sky_1lu5x")
tonemap_mode = 2
glow_enabled = true
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_j8jma"]
albedo_texture = ExtResource("1_ecmet")
albedo_texture_force_srgb = true
roughness_texture = ExtResource("3_acdmk")
normal_enabled = true
normal_texture = ExtResource("2_brd00")
uv1_scale = Vector3(60, 60, 60)
[sub_resource type="PlaneMesh" id="PlaneMesh_521e4"]
material = SubResource("StandardMaterial3D_j8jma")
size = Vector2(300, 300)
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_8ldex"]
data = PackedVector3Array(150, 0, 150, -150, 0, 150, 150, 0, -150, -150, 0, 150, -150, 0, -150, 150, 0, -150)
[sub_resource type="CapsuleMesh" id="CapsuleMesh_kuie4"]
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_8qgqb"]
points = PackedVector3Array(-0.125207, -0.532801, -0.480507, 0.0227831, 0.47607, 0.498884, 0.169713, 0.559144, 0.464172, 0.231051, -0.803591, 0.320455, 0.40741, 0.651043, -0.243523, -0.482789, 0.594843, 0.0822132, -0.362868, -0.682312, 0.289697, 0.469044, -0.654529, -0.0662713, -0.127444, 0.842701, -0.338103, -0.393435, -0.683942, -0.244717, 0.438255, 0.623309, 0.200849, 0.0841477, 0.977454, 0.114795, -0.0682023, -0.976458, -0.12927, 0.20055, -0.563129, -0.451454, -0.185527, 0.595453, -0.453475, -0.273363, 0.592268, 0.407754, -0.00693649, -0.476823, 0.49966, 0.375821, -0.588614, 0.316955, 0.111579, 0.563059, -0.481177, -0.41725, 0.527866, -0.270497, -0.484546, -0.596972, -0.0665097, -0.279747, 0.908561, 0.0533361, -0.250197, -0.880712, 0.205319, 0.263647, -0.902771, -0.127394, 0.293368, 0.871526, -0.157196, 0.373412, -0.526319, -0.328246, 0.499663, 0.476641, -0.00688856, 0.0531056, 0.875001, 0.324703, -0.154543, -0.590854, 0.465879, -0.0972799, -0.782358, -0.398188, -0.387649, -0.498171, 0.31565, -0.30068, -0.587995, -0.388901)
[node name="Node3D" type="Node3D"]
[node name="Axelstone" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.81179, 1.70808, -26.9124)
mesh = SubResource("BoxMesh_0lm1w")
surface_material_override/0 = SubResource("StandardMaterial3D_j65y2")
[node name="StaticBody3D" type="StaticBody3D" parent="Axelstone"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Axelstone/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_t5jnf")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_kvgi4")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("PlaneMesh_521e4")
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_8ldex")
[node name="CharacterBody3D" type="CharacterBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 167.441, -10.6226)
script = ExtResource("1_5sofw")
[node name="Walking_Sound" type="AudioStreamPlayer" parent="CharacterBody3D"]
stream = ExtResource("6_vbopi")
[node name="MeshInstance3D" type="MeshInstance3D" parent="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
mesh = SubResource("CapsuleMesh_kuie4")
[node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("ConvexPolygonShape3D_8qgqb")
[node name="Neck" type="Node3D" parent="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.48771, 0)
[node name="Camera3D" type="Camera3D" parent="CharacterBody3D/Neck"]
[node name="DirectionalLight3D2" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.990946, 0.0875846, -0.101762, 0, 0.757929, 0.652337, 0.134263, -0.64643, 0.751067, 0.90302, 11.3485, 5.24126)
light_energy = 1.599
light_indirect_energy = 4.97
light_volumetric_fog_energy = 2.203
light_angular_distance = 8.12

114
Stable movement.tscn Normal file
View file

@ -0,0 +1,114 @@
[gd_scene load_steps=18 format=3 uid="uid://djf10pcubimfn"]
[ext_resource type="Texture2D" uid="uid://df04268jurax7" path="res://textures/AxelNpc.png" id="1_bwt8a"]
[ext_resource type="Texture2D" uid="uid://bjou2c1ygtuyu" path="res://textures/coast_sand_rocks_02_diff_4k.png" id="1_ecmet"]
[ext_resource type="Texture2D" uid="uid://d0tjgn7clnu6j" path="res://textures/coast_sand_rocks_02_nor_gl_4k.png" id="2_brd00"]
[ext_resource type="Texture2D" uid="uid://rxyxalv0cgcw" path="res://textures/coast_sand_rocks_02_rough_4k.png" id="3_acdmk"]
[ext_resource type="Script" path="res://Playermovementimbus.gd" id="5_8sb4c"]
[ext_resource type="AudioStream" uid="uid://d0lbrjwmvi8c" path="res://Sounds/running-in-grass-6237.mp3" id="6_vbopi"]
[sub_resource type="BoxMesh" id="BoxMesh_0lm1w"]
size = Vector3(5, 5, 5)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_j65y2"]
albedo_texture = ExtResource("1_bwt8a")
metallic_specular = 0.56
metallic_texture_channel = 2
normal_enabled = true
normal_texture = ExtResource("2_brd00")
uv1_scale = Vector3(2.385, 2.385, 2.385)
uv1_offset = Vector3(-0.675, -1.035, -0.505)
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_t5jnf"]
data = PackedVector3Array(-2.5, 2.5, 2.5, 2.5, 2.5, 2.5, -2.5, -2.5, 2.5, 2.5, 2.5, 2.5, 2.5, -2.5, 2.5, -2.5, -2.5, 2.5, 2.5, 2.5, -2.5, -2.5, 2.5, -2.5, 2.5, -2.5, -2.5, -2.5, 2.5, -2.5, -2.5, -2.5, -2.5, 2.5, -2.5, -2.5, 2.5, 2.5, 2.5, 2.5, 2.5, -2.5, 2.5, -2.5, 2.5, 2.5, 2.5, -2.5, 2.5, -2.5, -2.5, 2.5, -2.5, 2.5, -2.5, 2.5, -2.5, -2.5, 2.5, 2.5, -2.5, -2.5, -2.5, -2.5, 2.5, 2.5, -2.5, -2.5, 2.5, -2.5, -2.5, -2.5, 2.5, 2.5, 2.5, -2.5, 2.5, 2.5, 2.5, 2.5, -2.5, -2.5, 2.5, 2.5, -2.5, 2.5, -2.5, 2.5, 2.5, -2.5, -2.5, -2.5, 2.5, 2.5, -2.5, 2.5, -2.5, -2.5, -2.5, 2.5, -2.5, 2.5, 2.5, -2.5, -2.5, -2.5, -2.5, -2.5)
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_jyng4"]
sky_top_color = Color(0.25098, 0.431373, 0.792157, 1)
sky_horizon_color = Color(0.560784, 0.623529, 0.878431, 1)
sky_curve = 0.0304595
sky_energy_multiplier = 2.17
sky_cover_modulate = Color(0.223529, 1, 1, 1)
ground_bottom_color = Color(0.396078, 0, 0, 1)
ground_horizon_color = Color(1, 0.705882, 0.611765, 1)
ground_energy_multiplier = 2.45
[sub_resource type="Sky" id="Sky_1lu5x"]
sky_material = SubResource("ProceduralSkyMaterial_jyng4")
[sub_resource type="Environment" id="Environment_kvgi4"]
background_mode = 2
background_energy_multiplier = 0.58
sky = SubResource("Sky_1lu5x")
tonemap_mode = 2
glow_enabled = true
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_j8jma"]
albedo_texture = ExtResource("1_ecmet")
albedo_texture_force_srgb = true
roughness_texture = ExtResource("3_acdmk")
normal_enabled = true
normal_texture = ExtResource("2_brd00")
uv1_scale = Vector3(60, 60, 60)
[sub_resource type="PlaneMesh" id="PlaneMesh_521e4"]
material = SubResource("StandardMaterial3D_j8jma")
size = Vector2(300, 300)
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_8ldex"]
data = PackedVector3Array(150, 0, 150, -150, 0, 150, 150, 0, -150, -150, 0, 150, -150, 0, -150, 150, 0, -150)
[sub_resource type="CapsuleMesh" id="CapsuleMesh_kuie4"]
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_8qgqb"]
points = PackedVector3Array(-0.125207, -0.532801, -0.480507, 0.0227831, 0.47607, 0.498884, 0.169713, 0.559144, 0.464172, 0.231051, -0.803591, 0.320455, 0.40741, 0.651043, -0.243523, -0.482789, 0.594843, 0.0822132, -0.362868, -0.682312, 0.289697, 0.469044, -0.654529, -0.0662713, -0.127444, 0.842701, -0.338103, -0.393435, -0.683942, -0.244717, 0.438255, 0.623309, 0.200849, 0.0841477, 0.977454, 0.114795, -0.0682023, -0.976458, -0.12927, 0.20055, -0.563129, -0.451454, -0.185527, 0.595453, -0.453475, -0.273363, 0.592268, 0.407754, -0.00693649, -0.476823, 0.49966, 0.375821, -0.588614, 0.316955, 0.111579, 0.563059, -0.481177, -0.41725, 0.527866, -0.270497, -0.484546, -0.596972, -0.0665097, -0.279747, 0.908561, 0.0533361, -0.250197, -0.880712, 0.205319, 0.263647, -0.902771, -0.127394, 0.293368, 0.871526, -0.157196, 0.373412, -0.526319, -0.328246, 0.499663, 0.476641, -0.00688856, 0.0531056, 0.875001, 0.324703, -0.154543, -0.590854, 0.465879, -0.0972799, -0.782358, -0.398188, -0.387649, -0.498171, 0.31565, -0.30068, -0.587995, -0.388901)
[node name="Node3D" type="Node3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.523526, -0.989922, -2.7507)
[node name="DirectionalLight3D2" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.990946, 0.0875846, -0.101762, 0, 0.757929, 0.652337, 0.134263, -0.64643, 0.751067, 0.90302, 11.3485, 5.24126)
light_energy = 1.599
light_indirect_energy = 4.97
light_volumetric_fog_energy = 2.203
light_angular_distance = 8.12
[node name="Axelstone" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.81179, 1.70808, -26.9124)
mesh = SubResource("BoxMesh_0lm1w")
surface_material_override/0 = SubResource("StandardMaterial3D_j65y2")
[node name="StaticBody3D" type="StaticBody3D" parent="Axelstone"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Axelstone/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_t5jnf")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_kvgi4")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("PlaneMesh_521e4")
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_8ldex")
[node name="CharacterBody3D" type="CharacterBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 37.4697, -10.6226)
script = ExtResource("5_8sb4c")
[node name="AudiostreamPlayer3DSTEP" type="AudioStreamPlayer" parent="CharacterBody3D"]
stream = ExtResource("6_vbopi")
[node name="MeshInstance3D" type="MeshInstance3D" parent="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
mesh = SubResource("CapsuleMesh_kuie4")
[node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("ConvexPolygonShape3D_8qgqb")
[node name="Neck" type="Node3D" parent="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.48771, 0)
[node name="Camera3D" type="Camera3D" parent="CharacterBody3D/Neck"]

3
default_bus_layout.tres Normal file
View file

@ -0,0 +1,3 @@
[gd_resource type="AudioBusLayout" format=3 uid="uid://2ua1r4qt0c02"]
[resource]

1
icon.svg Normal file
View file

@ -0,0 +1 @@
<svg height="128" width="128" xmlns="http://www.w3.org/2000/svg"><rect x="2" y="2" width="124" height="124" rx="14" fill="#363d52" stroke="#212532" stroke-width="4"/><g transform="scale(.101) translate(122 122)"><g fill="#fff"><path d="M105 673v33q407 354 814 0v-33z"/><path fill="#478cbf" d="m105 673 152 14q12 1 15 14l4 67 132 10 8-61q2-11 15-15h162q13 4 15 15l8 61 132-10 4-67q3-13 15-14l152-14V427q30-39 56-81-35-59-83-108-43 20-82 47-40-37-88-64 7-51 8-102-59-28-123-42-26 43-46 89-49-7-98 0-20-46-46-89-64 14-123 42 1 51 8 102-48 27-88 64-39-27-82-47-48 49-83 108 26 42 56 81zm0 33v39c0 276 813 276 813 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H447l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z"/><path d="M483 600c3 34 55 34 58 0v-86c-3-34-55-34-58 0z"/><circle cx="725" cy="526" r="90"/><circle cx="299" cy="526" r="90"/></g><g fill="#414042"><circle cx="307" cy="532" r="60"/><circle cx="717" cy="532" r="60"/></g></g></svg>

After

Width:  |  Height:  |  Size: 950 B

37
icon.svg.import Normal file
View file

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://davil78yotgv8"
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://icon.svg"
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false

80
main_menu.tscn Normal file
View file

@ -0,0 +1,80 @@
[gd_scene load_steps=2 format=3 uid="uid://cx6ju87m8qrxi"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_f30hj"]
bg_color = Color(0, 0, 0, 0.498039)
corner_radius_top_left = 30
corner_radius_top_right = 30
corner_radius_bottom_right = 30
corner_radius_bottom_left = 30
[node name="Main_menu" type="Control"]
layout_mode = 3
anchors_preset = 0
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 0
offset_left = -576.0
offset_top = -384.0
offset_right = 576.0
offset_bottom = 264.0
color = Color(0.356863, 0.34902, 0.34902, 1)
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
layout_mode = 2
alignment = 1
[node name="Label" type="Label" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 125
text = "Survival Cultivator
"
horizontal_alignment = 1
vertical_alignment = 1
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/VBoxContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="Button" type="Button" parent="MarginContainer/VBoxContainer/VBoxContainer/MarginContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 75
theme_override_styles/normal = SubResource("StyleBoxFlat_f30hj")
text = "New Game"
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/VBoxContainer/VBoxContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="Button" type="Button" parent="MarginContainer/VBoxContainer/VBoxContainer/VBoxContainer/MarginContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 75
text = "Option"
[node name="VBoxContainer2" type="VBoxContainer" parent="MarginContainer/VBoxContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/VBoxContainer/VBoxContainer/VBoxContainer2"]
layout_mode = 2
size_flags_vertical = 3
[node name="Button" type="Button" parent="MarginContainer/VBoxContainer/VBoxContainer/VBoxContainer2/MarginContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 75
text = "Quit"

61
node_3d.tscn Normal file
View file

@ -0,0 +1,61 @@
[gd_scene load_steps=9 format=3 uid="uid://fc5dbig7f17h"]
[ext_resource type="Script" path="res://PlayerCharacterBody3D.gd" id="1_ervhk"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_jyng4"]
sky_top_color = Color(0.760784, 0.254902, 0, 1)
sky_horizon_color = Color(0.740196, 0.605976, 0.53325, 1)
ground_horizon_color = Color(0.740196, 0.605976, 0.53325, 1)
[sub_resource type="Sky" id="Sky_1lu5x"]
sky_material = SubResource("ProceduralSkyMaterial_jyng4")
[sub_resource type="Environment" id="Environment_kvgi4"]
background_mode = 2
sky = SubResource("Sky_1lu5x")
tonemap_mode = 2
glow_enabled = true
[sub_resource type="PlaneMesh" id="PlaneMesh_521e4"]
size = Vector2(20, 20)
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_jf03u"]
data = PackedVector3Array(10, 0, 10, -10, 0, 10, 10, 0, -10, -10, 0, 10, -10, 0, -10, 10, 0, -10)
[sub_resource type="CapsuleMesh" id="CapsuleMesh_kuie4"]
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_8qgqb"]
points = PackedVector3Array(-0.125207, -0.532801, -0.480507, 0.0227831, 0.47607, 0.498884, 0.169713, 0.559144, 0.464172, 0.231051, -0.803591, 0.320455, 0.40741, 0.651043, -0.243523, -0.482789, 0.594843, 0.0822132, -0.362868, -0.682312, 0.289697, 0.469044, -0.654529, -0.0662713, -0.127444, 0.842701, -0.338103, -0.393435, -0.683942, -0.244717, 0.438255, 0.623309, 0.200849, 0.0841477, 0.977454, 0.114795, -0.0682023, -0.976458, -0.12927, 0.20055, -0.563129, -0.451454, -0.185527, 0.595453, -0.453475, -0.273363, 0.592268, 0.407754, -0.00693649, -0.476823, 0.49966, 0.375821, -0.588614, 0.316955, 0.111579, 0.563059, -0.481177, -0.41725, 0.527866, -0.270497, -0.484546, -0.596972, -0.0665097, -0.279747, 0.908561, 0.0533361, -0.250197, -0.880712, 0.205319, 0.263647, -0.902771, -0.127394, 0.293368, 0.871526, -0.157196, 0.373412, -0.526319, -0.328246, 0.499663, 0.476641, -0.00688856, 0.0531056, 0.875001, 0.324703, -0.154543, -0.590854, 0.465879, -0.0972799, -0.782358, -0.398188, -0.387649, -0.498171, 0.31565, -0.30068, -0.587995, -0.388901)
[node name="Node3D" type="Node3D"]
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_kvgi4")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(-0.866025, -0.433013, 0.25, 0, 0.5, 0.866025, -0.5, 0.75, -0.433013, 0, 0, 0)
shadow_enabled = true
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("PlaneMesh_521e4")
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_jf03u")
[node name="CharacterBody3D" type="CharacterBody3D" parent="."]
script = ExtResource("1_ervhk")
[node name="MeshInstance3D" type="MeshInstance3D" parent="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
mesh = SubResource("CapsuleMesh_kuie4")
[node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("ConvexPolygonShape3D_8qgqb")
[node name="Neck" type="Node3D" parent="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.48771, 0)
[node name="Camera3D" type="Camera3D" parent="CharacterBody3D/Neck"]

48
project.godot Normal file
View file

@ -0,0 +1,48 @@
; Engine configuration file.
; It's best edited using the editor UI and not directly,
; since the parameters that go here are not all obvious.
;
; Format:
; [section] ; section goes between []
; param=value ; assign values to parameters
config_version=5
[application]
config/name="TestingGround"
run/main_scene="res://node_3d.tscn"
config/features=PackedStringArray("4.1", "Forward Plus")
config/icon="res://icon.svg"
[display]
window/size/mode=2
[input]
Forward={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":119,"echo":false,"script":null)
]
}
Back={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"echo":false,"script":null)
]
}
Left={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"echo":false,"script":null)
]
}
Right={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"echo":false,"script":null)
]
}
Sprint={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194325,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}

BIN
textures/AxelNpc.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://df04268jurax7"
path.s3tc="res://.godot/imported/AxelNpc.png-e36b572d32f57c7588e478e4d4f5b7b0.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://textures/AxelNpc.png"
dest_files=["res://.godot/imported/AxelNpc.png-e36b572d32f57c7588e478e4d4f5b7b0.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

BIN
textures/MenuTextures/Options.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cde6rh4ib235"
path="res://.godot/imported/Options.png-327028b4a32ef11782b75c1973f6ed5f.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://textures/MenuTextures/Options.png"
dest_files=["res://.godot/imported/Options.png-327028b4a32ef11782b75c1973f6ed5f.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
textures/MenuTextures/Play.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://l2ikmbqo47f1"
path="res://.godot/imported/Play.png-632a5279dd9c796c60a6caaee6e30e1d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://textures/MenuTextures/Play.png"
dest_files=["res://.godot/imported/Play.png-632a5279dd9c796c60a6caaee6e30e1d.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
textures/MenuTextures/Quit.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ca4gfa8cbw4p5"
path="res://.godot/imported/Quit.png-ecad98ae37f737b28ed0c7a8eaf5007f.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://textures/MenuTextures/Quit.png"
dest_files=["res://.godot/imported/Quit.png-ecad98ae37f737b28ed0c7a8eaf5007f.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
textures/coast_sand_rocks_02_diff_4k.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bjou2c1ygtuyu"
path.s3tc="res://.godot/imported/coast_sand_rocks_02_diff_4k.png-2fb96037fbcacdf4cd30e5e06eb792a9.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://textures/coast_sand_rocks_02_diff_4k.png"
dest_files=["res://.godot/imported/coast_sand_rocks_02_diff_4k.png-2fb96037fbcacdf4cd30e5e06eb792a9.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

BIN
textures/coast_sand_rocks_02_nor_gl_4k.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://d0tjgn7clnu6j"
path.s3tc="res://.godot/imported/coast_sand_rocks_02_nor_gl_4k.png-d073346689f239128beddd452dc2ec1c.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://textures/coast_sand_rocks_02_nor_gl_4k.png"
dest_files=["res://.godot/imported/coast_sand_rocks_02_nor_gl_4k.png-d073346689f239128beddd452dc2ec1c.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal="res://textures/coast_sand_rocks_02_nor_gl_4k.png"
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

BIN
textures/coast_sand_rocks_02_rough_4k.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://rxyxalv0cgcw"
path.s3tc="res://.godot/imported/coast_sand_rocks_02_rough_4k.png-ff3fca4e272d448d589d7a4bdc30181e.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://textures/coast_sand_rocks_02_rough_4k.png"
dest_files=["res://.godot/imported/coast_sand_rocks_02_rough_4k.png-ff3fca4e272d448d589d7a4bdc30181e.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0