Initial Commit
This commit is contained in:
112
scenes/game_world.tscn
Normal file
112
scenes/game_world.tscn
Normal file
@ -0,0 +1,112 @@
|
||||
[gd_scene load_steps=18 format=3 uid="uid://djviifpxqhes3"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b2tpu7b87ak68" path="res://scripts/game_engine.gd" id="1_6c6v5"]
|
||||
[ext_resource type="Script" uid="uid://bgh5muwu1ysof" path="res://scripts/main_view.gd" id="1_wbbl4"]
|
||||
[ext_resource type="Script" uid="uid://dvhpy5a48w6nl" path="res://scripts/ida_pack.gd" id="2_6c6v5"]
|
||||
[ext_resource type="Script" uid="uid://cdm3pkabmplbr" path="res://scripts/spawned_gates.gd" id="3_pdbwf"]
|
||||
[ext_resource type="PackedScene" uid="uid://bewcftupk7t2k" path="res://Objects/player.tscn" id="5_6c6v5"]
|
||||
[ext_resource type="Script" uid="uid://dm3rne2akywg7" path="res://scripts/control_box.gd" id="5_u1jpj"]
|
||||
[ext_resource type="Script" uid="uid://du6em4hsmk4st" path="res://Objects/player_prime.gd" id="6_bhwwd"]
|
||||
[ext_resource type="Script" uid="uid://kkxuvlkbotmx" path="res://scenes/ground_scroll.gd" id="8_pdbwf"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6ll7h"]
|
||||
resource_local_to_scene = true
|
||||
albedo_color = Color(0.513233, 0.513233, 0.513233, 1)
|
||||
uv1_scale = Vector3(1, 10, 10)
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_bvgre"]
|
||||
lightmap_size_hint = Vector2i(1554, 1516)
|
||||
material = SubResource("StandardMaterial3D_6ll7h")
|
||||
size = Vector3(10, 1, 300)
|
||||
subdivide_width = 512
|
||||
subdivide_height = 512
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_ea1x0"]
|
||||
size = Vector3(10, 1, 300)
|
||||
|
||||
[sub_resource type="PlaceholderMesh" id="PlaceholderMesh_dlaip"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_e3xe6"]
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_bhwwd"]
|
||||
|
||||
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_pdbwf"]
|
||||
width = 3048
|
||||
height = 3048
|
||||
in_3d_space = true
|
||||
generate_mipmaps = false
|
||||
seamless = true
|
||||
normalize = false
|
||||
noise = SubResource("FastNoiseLite_bhwwd")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_u1jpj"]
|
||||
albedo_color = Color(0.413112, 0.278715, 0.129439, 1)
|
||||
albedo_texture = SubResource("NoiseTexture2D_pdbwf")
|
||||
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_bhwwd"]
|
||||
material = SubResource("StandardMaterial3D_u1jpj")
|
||||
radial_segments = 128
|
||||
rings = 1
|
||||
cap_top = false
|
||||
cap_bottom = false
|
||||
|
||||
[node name="GameWorld" type="Node3D"]
|
||||
script = ExtResource("1_6c6v5")
|
||||
|
||||
[node name="mainView" type="Camera3D" parent="."]
|
||||
transform = Transform3D(-1, 4.37115e-08, -7.57103e-08, -1.64863e-08, 0.756196, 0.654346, 8.58542e-08, 0.654346, -0.756196, 0, 7.4595, -1.28195)
|
||||
current = true
|
||||
fov = 68.9808
|
||||
script = ExtResource("1_wbbl4")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="mainView"]
|
||||
|
||||
[node name="GroundPlane" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 130.027)
|
||||
mesh = SubResource("BoxMesh_bvgre")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="GroundPlane"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="GroundPlane/StaticBody3D"]
|
||||
shape = SubResource("BoxShape3D_ea1x0")
|
||||
|
||||
[node name="GamePlane" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
||||
|
||||
[node name="SpawnedGates" type="Node3D" parent="GamePlane" node_paths=PackedStringArray("leftSpawnPoint", "rightSpawnPoint", "ground")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 68.9355)
|
||||
script = ExtResource("3_pdbwf")
|
||||
leftSpawnPoint = NodePath("../LeftSpawnPoint")
|
||||
rightSpawnPoint = NodePath("../RightSpawnPoint")
|
||||
ground = NodePath("../../GroundPlane")
|
||||
|
||||
[node name="LeftSpawnPoint" type="MeshInstance3D" parent="GamePlane"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.5, 0, 68.9355)
|
||||
mesh = SubResource("PlaceholderMesh_dlaip")
|
||||
|
||||
[node name="RightSpawnPoint" type="MeshInstance3D" parent="GamePlane"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.5, 0, 68.9355)
|
||||
mesh = SubResource("PlaceholderMesh_dlaip")
|
||||
|
||||
[node name="PlayerPlane" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.1, 2.35106)
|
||||
|
||||
[node name="idaPack" type="Node3D" parent="PlayerPlane"]
|
||||
script = ExtResource("2_6c6v5")
|
||||
|
||||
[node name="Player" parent="PlayerPlane/idaPack" instance=ExtResource("5_6c6v5")]
|
||||
script = ExtResource("6_bhwwd")
|
||||
|
||||
[node name="controlBox" type="MeshInstance3D" parent="PlayerPlane"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6)
|
||||
visible = false
|
||||
mesh = SubResource("BoxMesh_e3xe6")
|
||||
skeleton = NodePath("../idaPack")
|
||||
script = ExtResource("5_u1jpj")
|
||||
|
||||
[node name="groundScroll" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(-1.31134e-05, -300, 0, 300, -1.31134e-05, 0, 0, 0, 300, 0, -150.051, 99.7523)
|
||||
mesh = SubResource("CylinderMesh_bhwwd")
|
||||
skeleton = NodePath("../GroundPlane")
|
||||
script = ExtResource("8_pdbwf")
|
||||
rotationSpeed = 0.4
|
51
scenes/game_world.tscn11188718969.tmp
Normal file
51
scenes/game_world.tscn11188718969.tmp
Normal file
@ -0,0 +1,51 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://djviifpxqhes3"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b2tpu7b87ak68" path="res://scripts/game_engine.gd" id="1_6c6v5"]
|
||||
[ext_resource type="Script" uid="uid://bgh5muwu1ysof" path="res://scripts/main_view.gd" id="1_wbbl4"]
|
||||
[ext_resource type="Script" uid="uid://dvhpy5a48w6nl" path="res://scripts/ida_pack.gd" id="2_6c6v5"]
|
||||
[ext_resource type="PackedScene" uid="uid://cwyajw7su6fay" path="res://meshes/ida.tscn" id="3_bhwwd"]
|
||||
[ext_resource type="Script" uid="uid://dm3rne2akywg7" path="res://scripts/control_box.gd" id="5_u1jpj"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_bvgre"]
|
||||
size = Vector3(10, 1, 300)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_ea1x0"]
|
||||
size = Vector3(10, 1, 300)
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_e3xe6"]
|
||||
|
||||
[node name="GameWorld" type="Node3D"]
|
||||
script = ExtResource("1_6c6v5")
|
||||
|
||||
[node name="mainView" type="Camera3D" parent="."]
|
||||
transform = Transform3D(-1, 4.37114e-08, -7.57104e-08, -6.27181e-09, 0.827923, 0.560842, 8.71975e-08, 0.560842, -0.827923, 0, 7.4595, -2.14384)
|
||||
current = true
|
||||
fov = 68.9808
|
||||
script = ExtResource("1_wbbl4")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="mainView"]
|
||||
|
||||
[node name="GroundPlane" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 130.027)
|
||||
mesh = SubResource("BoxMesh_bvgre")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="GroundPlane"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="GroundPlane/StaticBody3D"]
|
||||
shape = SubResource("BoxShape3D_ea1x0")
|
||||
|
||||
[node name="GamePlane" type="Node3D" parent="."]
|
||||
|
||||
[node name="PlayerPlane" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.1, 2.35106)
|
||||
|
||||
[node name="idaPack" type="Node3D" parent="PlayerPlane"]
|
||||
script = ExtResource("2_6c6v5")
|
||||
|
||||
[node name="ida" parent="PlayerPlane/idaPack" instance=ExtResource("3_bhwwd")]
|
||||
|
||||
[node name="controlBox" type="MeshInstance3D" parent="PlayerPlane"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6)
|
||||
mesh = SubResource("BoxMesh_e3xe6")
|
||||
skeleton = NodePath("../idaPack")
|
||||
script = ExtResource("5_u1jpj")
|
97
scenes/game_world.tscn5457349213.tmp
Normal file
97
scenes/game_world.tscn5457349213.tmp
Normal file
@ -0,0 +1,97 @@
|
||||
[gd_scene load_steps=15 format=3 uid="uid://djviifpxqhes3"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b2tpu7b87ak68" path="res://scripts/game_engine.gd" id="1_6c6v5"]
|
||||
[ext_resource type="Script" uid="uid://bgh5muwu1ysof" path="res://scripts/main_view.gd" id="1_wbbl4"]
|
||||
[ext_resource type="Script" uid="uid://dvhpy5a48w6nl" path="res://scripts/ida_pack.gd" id="2_6c6v5"]
|
||||
[ext_resource type="Script" uid="uid://cdm3pkabmplbr" path="res://scripts/spawned_gates.gd" id="3_pdbwf"]
|
||||
[ext_resource type="PackedScene" uid="uid://bewcftupk7t2k" path="res://Objects/player.tscn" id="5_6c6v5"]
|
||||
[ext_resource type="Script" uid="uid://dm3rne2akywg7" path="res://scripts/control_box.gd" id="5_u1jpj"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_uh34q"]
|
||||
offsets = PackedFloat32Array(0, 0.373016, 1)
|
||||
colors = PackedColorArray(0.214323, 0.221763, 0.217545, 1, 0.755707, 0.759293, 0.757257, 1, 1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_ph1f2"]
|
||||
noise_type = 3
|
||||
frequency = 0.092
|
||||
offset = Vector3(0, -42.55, 0)
|
||||
|
||||
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_odt01"]
|
||||
height = 1024
|
||||
generate_mipmaps = false
|
||||
seamless_blend_skirt = 0.0
|
||||
normalize = false
|
||||
color_ramp = SubResource("Gradient_uh34q")
|
||||
noise = SubResource("FastNoiseLite_ph1f2")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6ll7h"]
|
||||
resource_local_to_scene = true
|
||||
albedo_color = Color(0.513233, 0.513233, 0.513233, 1)
|
||||
albedo_texture = SubResource("NoiseTexture2D_odt01")
|
||||
uv1_scale = Vector3(1, 10, 10)
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_bvgre"]
|
||||
lightmap_size_hint = Vector2i(1554, 1516)
|
||||
material = SubResource("StandardMaterial3D_6ll7h")
|
||||
size = Vector3(10, 1, 300)
|
||||
subdivide_width = 512
|
||||
subdivide_height = 512
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_ea1x0"]
|
||||
size = Vector3(10, 1, 300)
|
||||
|
||||
[sub_resource type="PlaceholderMesh" id="PlaceholderMesh_dlaip"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_e3xe6"]
|
||||
|
||||
[node name="GameWorld" type="Node3D"]
|
||||
script = ExtResource("1_6c6v5")
|
||||
|
||||
[node name="mainView" type="Camera3D" parent="."]
|
||||
transform = Transform3D(-1, 4.37114e-08, -7.57104e-08, -6.27181e-09, 0.827923, 0.560842, 8.71975e-08, 0.560842, -0.827923, 0, 7.4595, -2.14384)
|
||||
current = true
|
||||
fov = 68.9808
|
||||
script = ExtResource("1_wbbl4")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="mainView"]
|
||||
|
||||
[node name="GroundPlane" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 130.027)
|
||||
mesh = SubResource("BoxMesh_bvgre")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="GroundPlane"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="GroundPlane/StaticBody3D"]
|
||||
shape = SubResource("BoxShape3D_ea1x0")
|
||||
|
||||
[node name="GamePlane" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
||||
|
||||
[node name="SpawnedGates" type="Node3D" parent="GamePlane" node_paths=PackedStringArray("leftSpawnPoint", "rightSpawnPoint", "ground")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 200)
|
||||
script = ExtResource("3_pdbwf")
|
||||
leftSpawnPoint = NodePath("../LeftSpawnPoint")
|
||||
rightSpawnPoint = NodePath("../RightSpawnPoint")
|
||||
ground = NodePath("../../GroundPlane")
|
||||
|
||||
[node name="LeftSpawnPoint" type="MeshInstance3D" parent="GamePlane"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.5, 0, 200)
|
||||
mesh = SubResource("PlaceholderMesh_dlaip")
|
||||
|
||||
[node name="RightSpawnPoint" type="MeshInstance3D" parent="GamePlane"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.5, 0, 200)
|
||||
mesh = SubResource("PlaceholderMesh_dlaip")
|
||||
|
||||
[node name="PlayerPlane" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.1, 2.35106)
|
||||
|
||||
[node name="idaPack" type="Node3D" parent="PlayerPlane"]
|
||||
script = ExtResource("2_6c6v5")
|
||||
|
||||
[node name="Player" parent="PlayerPlane/idaPack" instance=ExtResource("5_6c6v5")]
|
||||
|
||||
[node name="controlBox" type="MeshInstance3D" parent="PlayerPlane"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6)
|
||||
mesh = SubResource("BoxMesh_e3xe6")
|
||||
skeleton = NodePath("../idaPack")
|
||||
script = ExtResource("5_u1jpj")
|
6
scenes/ground_scroll.gd
Normal file
6
scenes/ground_scroll.gd
Normal file
@ -0,0 +1,6 @@
|
||||
extends MeshInstance3D
|
||||
|
||||
@export var rotationSpeed: float = 10
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
rotation.x -= clampf(rotationSpeed, -rotationSpeed * delta, rotationSpeed * delta)
|
1
scenes/ground_scroll.gd.uid
Normal file
1
scenes/ground_scroll.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://kkxuvlkbotmx
|
Reference in New Issue
Block a user