Upload files to 'scenes/s_main'
This commit is contained in:
parent
d2173b4436
commit
7d48623144
|
@ -0,0 +1,153 @@
|
|||
[gd_scene load_steps=12 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/s_main/default_env.tres" type="Environment" id=1]
|
||||
[ext_resource path="res://scenes/s_main/s_main.gd" type="Script" id=2]
|
||||
[ext_resource path="res://entities/player/Player.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://scenes/assets/ladder/Ladder.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://scenes/assets/fps_counter/FPS_Counter.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://scenes/s_main/materials/dark.material" type="Material" id=6]
|
||||
[ext_resource path="res://scenes/s_main/materials/blue.material" type="Material" id=7]
|
||||
|
||||
[sub_resource type="CubeMesh" id=1]
|
||||
size = Vector3( 1, 1, 1 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape" id=2]
|
||||
points = PoolVector3Array( -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5 )
|
||||
|
||||
[sub_resource type="CubeMesh" id=3]
|
||||
size = Vector3( 1, 1, 1 )
|
||||
|
||||
[sub_resource type="ConvexPolygonShape" id=4]
|
||||
points = PoolVector3Array( -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5 )
|
||||
|
||||
[node name="S_Main" type="Spatial"]
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="ArenaGeometry" type="Spatial" parent="."]
|
||||
|
||||
[node name="Floor1" type="MeshInstance" parent="ArenaGeometry"]
|
||||
transform = Transform( 40, 0, 0, 0, -6.51683e-06, -1, 0, 40, -1.62921e-07, 0.0313206, 9.53674e-07, 0.00365067 )
|
||||
use_in_baked_light = true
|
||||
mesh = SubResource( 1 )
|
||||
material/0 = ExtResource( 6 )
|
||||
|
||||
[node name="StaticBody" type="StaticBody" parent="ArenaGeometry/Floor1"]
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="ArenaGeometry/Floor1/StaticBody"]
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="Slope1" type="MeshInstance" parent="ArenaGeometry"]
|
||||
transform = Transform( 12, 0, 0, 0, 3.74016, -0.226577, 0, 8.02083, 0.105654, -13.502, 1.517, 0.041 )
|
||||
use_in_baked_light = true
|
||||
mesh = SubResource( 3 )
|
||||
material/0 = ExtResource( 7 )
|
||||
|
||||
[node name="StaticBody" type="StaticBody" parent="ArenaGeometry/Slope1"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 9.31323e-10, 0, -9.53674e-07, 1, 0, 0, 0 )
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="ArenaGeometry/Slope1/StaticBody"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, -9.53674e-07, 1, 0, 0, 0 )
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="SlopeWall1" type="MeshInstance" parent="ArenaGeometry"]
|
||||
transform = Transform( -1.18125e-06, -2.40367e-07, 0.25, -3.38095, 3.16392, 1.39296e-15, -7.25046, -1.47536, -4.07302e-08, -7.63, 0.147, 1.08 )
|
||||
use_in_baked_light = true
|
||||
mesh = SubResource( 3 )
|
||||
material/0 = ExtResource( 7 )
|
||||
|
||||
[node name="BigCube1" type="MeshInstance" parent="ArenaGeometry"]
|
||||
transform = Transform( -1.74846e-07, 12, -1.31134e-07, 0, -5.24537e-07, -3, -4, -5.24537e-07, 5.73206e-15, -13.5, 2, 6 )
|
||||
use_in_baked_light = true
|
||||
mesh = SubResource( 3 )
|
||||
material/0 = ExtResource( 7 )
|
||||
|
||||
[node name="StaticBody" type="StaticBody" parent="ArenaGeometry/BigCube1"]
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="ArenaGeometry/BigCube1/StaticBody"]
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="BigCube2" type="MeshInstance" parent="ArenaGeometry"]
|
||||
transform = Transform( -1.74846e-07, 12, -1.31134e-07, 0, -5.24537e-07, -3, -4, -5.24537e-07, 5.73206e-15, 13.5, 2, -7.44552 )
|
||||
use_in_baked_light = true
|
||||
mesh = SubResource( 3 )
|
||||
material/0 = ExtResource( 7 )
|
||||
|
||||
[node name="StaticBody" type="StaticBody" parent="ArenaGeometry/BigCube2"]
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="ArenaGeometry/BigCube2/StaticBody"]
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="Wall1" type="MeshInstance" parent="ArenaGeometry"]
|
||||
transform = Transform( 1, 0, 0, 0, -1.74846e-06, -6, 0, 40, -2.62268e-07, -19.5, 3.5, 0 )
|
||||
use_in_baked_light = true
|
||||
mesh = SubResource( 3 )
|
||||
material/0 = ExtResource( 7 )
|
||||
|
||||
[node name="StaticBody" type="StaticBody" parent="ArenaGeometry/Wall1"]
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="ArenaGeometry/Wall1/StaticBody"]
|
||||
shape = SubResource( 4 )
|
||||
|
||||
[node name="Wall2" type="MeshInstance" parent="ArenaGeometry"]
|
||||
transform = Transform( 1, 0, 0, 0, -1.74846e-06, -6, 0, 40, -2.62268e-07, 19.5, 3.5, 0 )
|
||||
use_in_baked_light = true
|
||||
mesh = SubResource( 3 )
|
||||
material/0 = ExtResource( 7 )
|
||||
|
||||
[node name="StaticBody" type="StaticBody" parent="ArenaGeometry/Wall2"]
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="ArenaGeometry/Wall2/StaticBody"]
|
||||
shape = SubResource( 4 )
|
||||
|
||||
[node name="Wall3" type="MeshInstance" parent="ArenaGeometry"]
|
||||
transform = Transform( -4.37114e-08, 40, -2.62268e-07, 0, -1.74846e-06, -6, -1, -1.74846e-06, 1.14641e-14, 0, 3.5, 19.5 )
|
||||
use_in_baked_light = true
|
||||
mesh = SubResource( 3 )
|
||||
material/0 = ExtResource( 7 )
|
||||
|
||||
[node name="StaticBody" type="StaticBody" parent="ArenaGeometry/Wall3"]
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="ArenaGeometry/Wall3/StaticBody"]
|
||||
shape = SubResource( 4 )
|
||||
|
||||
[node name="Wall4" type="MeshInstance" parent="ArenaGeometry"]
|
||||
transform = Transform( -4.37114e-08, 40, -2.62268e-07, 0, -1.74846e-06, -6, -1, -1.74846e-06, 1.14641e-14, 0, 3.5, -19.5 )
|
||||
use_in_baked_light = true
|
||||
mesh = SubResource( 3 )
|
||||
material/0 = ExtResource( 7 )
|
||||
|
||||
[node name="StaticBody" type="StaticBody" parent="ArenaGeometry/Wall4"]
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="ArenaGeometry/Wall4/StaticBody"]
|
||||
shape = SubResource( 4 )
|
||||
|
||||
[node name="Lighting" type="Spatial" parent="."]
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="Lighting"]
|
||||
environment = ExtResource( 1 )
|
||||
|
||||
[node name="DirectionalLight" type="DirectionalLight" parent="Lighting"]
|
||||
transform = Transform( 0.965926, 0.198266, 0.166365, -2.09447e-07, -0.642788, 0.766044, 0.258818, -0.739942, -0.620885, 2.17494, 9.39172, -2.14115 )
|
||||
light_energy = 2.0
|
||||
shadow_enabled = true
|
||||
shadow_color = Color( 0.6, 0.6, 0.6, 1 )
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource( 3 )]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0 )
|
||||
|
||||
[node name="Ladder" parent="." instance=ExtResource( 4 )]
|
||||
transform = Transform( -4.37114e-08, 0, 7, 0, 1.51, 0, -1, 0, -3.0598e-07, 13.25, 2, -5.25 )
|
||||
|
||||
[node name="FPS_Counter" parent="." instance=ExtResource( 5 )]
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
margin_left = 3.13708
|
||||
margin_top = 548.663
|
||||
margin_right = 356.137
|
||||
margin_bottom = 596.663
|
||||
text = "Made with <3 by the Mimimal64 Team
|
||||
This software is open-source and licensed under GPLv3
|
||||
fork SuperV on https://tildegit.org/minimal64/superv"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
[gd_resource type="Environment" load_steps=2 format=2]
|
||||
|
||||
[sub_resource type="ProceduralSky" id=1]
|
||||
sky_top_color = Color( 0.211765, 0.313726, 0.552941, 1 )
|
||||
sky_horizon_color = Color( 0.545098, 0.686275, 0.811765, 1 )
|
||||
sky_curve = 0.127279
|
||||
ground_bottom_color = Color( 0.545098, 0.686275, 0.811765, 1 )
|
||||
ground_horizon_color = Color( 0.545098, 0.686275, 0.811765, 1 )
|
||||
sun_latitude = 50.0
|
||||
sun_longitude = 15.0
|
||||
sun_angle_max = 30.0
|
||||
sun_energy = 30.0
|
||||
|
||||
[resource]
|
||||
background_mode = 2
|
||||
background_sky = SubResource( 1 )
|
||||
ambient_light_color = Color( 0.5, 0.5, 0.5, 1 )
|
||||
ambient_light_energy = 3.5
|
||||
ambient_light_sky_contribution = 0.3
|
||||
tonemap_mode = 3
|
||||
tonemap_white = 8.0
|
||||
ssao_quality = 0
|
||||
ssao_blur = 2
|
|
@ -0,0 +1,30 @@
|
|||
extends Spatial
|
||||
|
||||
#-----------------SCENE--SCRIPT------------------#
|
||||
# Close your game faster by clicking 'Esc' #
|
||||
# Change mouse mode by clicking 'Shift + F1' #
|
||||
#------------------------------------------------#
|
||||
|
||||
export var fast_close := true
|
||||
var mouse_mode: String = "CAPTURED"
|
||||
|
||||
##################################################
|
||||
|
||||
func _ready() -> void:
|
||||
if fast_close:
|
||||
print("** Fast Close enabled in the 's_main.gd' script **")
|
||||
print("** 'Esc' to close 'Shift + F1' to release mouse **")
|
||||
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("ui_cancel") and fast_close:
|
||||
get_tree().quit() # Quits the game
|
||||
|
||||
if event.is_action_pressed("mouse_input") and fast_close:
|
||||
match mouse_mode: # Switch statement in GDScript
|
||||
"CAPTURED":
|
||||
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
|
||||
mouse_mode = "VISIBLE"
|
||||
"VISIBLE":
|
||||
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
|
||||
mouse_mode = "CAPTURED"
|
Reference in New Issue