first commit

This commit is contained in:
2022-07-02 21:23:45 +08:00
commit 7cdcaf1e2f
102 changed files with 7208 additions and 0 deletions

17
scenes/GameRoot.tscn Normal file
View File

@ -0,0 +1,17 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://scenes/stages/MenuManager.tscn" type="PackedScene" id=1]
[ext_resource path="res://scenes/stages/StalkerCore.tscn" type="PackedScene" id=2]
[ext_resource path="res://scripts/GameRoot.cs" type="Script" id=3]
[ext_resource path="res://scenes/stages/ShadowBallManager.tscn" type="PackedScene" id=4]
[node name="GameRoot" type="Node"]
script = ExtResource( 3 )
[node name="UILayer" type="CanvasLayer" parent="."]
[node name="MenuManager" parent="UILayer" instance=ExtResource( 1 )]
[node name="StalkerCore" parent="." instance=ExtResource( 2 )]
[node name="ShadowBallManager" parent="." instance=ExtResource( 4 )]

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="StreamTexture"
path.s3tc="res://.import/floor_top_Checkpoint.bmp-c967cd8f49228addb75669f03255a875.s3tc.stex"
path.etc2="res://.import/floor_top_Checkpoint.bmp-c967cd8f49228addb75669f03255a875.etc2.stex"
metadata={
"imported_formats": [ "s3tc", "etc2" ],
"vram_texture": true
}
[deps]
source_file="res://scenes/levels/floor_top_Checkpoint.bmp"
dest_files=[ "res://.import/floor_top_Checkpoint.bmp-c967cd8f49228addb75669f03255a875.s3tc.stex", "res://.import/floor_top_Checkpoint.bmp-c967cd8f49228addb75669f03255a875.etc2.stex" ]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=true
flags/filter=true
flags/mipmaps=true
flags/anisotropic=false
flags/srgb=1
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

2837
scenes/levels/test.escn Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://resources/user_interface/default_theme.tres" type="Theme" id=1]
[ext_resource path="res://scenes/stages/menus/MenuMain.tscn" type="PackedScene" id=2]
[ext_resource path="res://scripts/stages/MenuManager.cs" type="Script" id=3]
[node name="MenuManager" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 1 )
script = ExtResource( 3 )
[node name="MenuMain" parent="." instance=ExtResource( 2 )]

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,6 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://scripts/stages/ShadowBallManager.cs" type="Script" id=1]
[node name="ShadowBallManager" type="Spatial"]
script = ExtResource( 1 )

View File

@ -0,0 +1,14 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://scripts/stages/StalkerCamera.cs" type="Script" id=1]
[node name="StalkerCamera" type="Spatial"]
script = ExtResource( 1 )
[node name="FreeCamOrigin" type="Spatial" parent="."]
[node name="FreeCam" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
fov = 58.0
near = 3.0
far = 1200.0

View File

@ -0,0 +1,15 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://scenes/levels/test.escn" type="PackedScene" id=1]
[ext_resource path="res://scripts/stages/StalkerCore.cs" type="Script" id=2]
[ext_resource path="res://scenes/stages/StalkerCamera.tscn" type="PackedScene" id=3]
[node name="StalkerCore" type="Spatial"]
script = ExtResource( 2 )
[node name="SkyLight" type="DirectionalLight" parent="."]
transform = Transform( 0.920545, 0.275714, -0.276729, 0.0231072, 0.668731, 0.743145, 0.389953, -0.690492, 0.609226, -5.171, 15.255, -3.606 )
[node name="StalkerCamera" parent="." instance=ExtResource( 3 )]
[node name="test" parent="." instance=ExtResource( 1 )]

View File

@ -0,0 +1,61 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://scenes/user_interface/ButtonNormal.tscn" type="PackedScene" id=1]
[ext_resource path="res://scripts/stages/menus/MenuMain.cs" type="Script" id=2]
[node name="MenuMain" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 2 )
[node name="Background" type="ColorRect" parent="."]
anchor_right = 0.3
anchor_bottom = 1.0
color = Color( 0, 0, 0, 0.498039 )
[node name="MenuList" type="VBoxContainer" parent="."]
anchor_left = 0.05
anchor_right = 0.25
anchor_bottom = 1.0
[node name="BtnLoadLevel" parent="MenuList" instance=ExtResource( 1 )]
margin_top = 40.0
margin_right = 204.0
margin_bottom = 83.9259
size_flags_vertical = 6
text = "Load Level"
[node name="BtnLoadSky" parent="MenuList" instance=ExtResource( 1 )]
margin_top = 168.0
margin_right = 204.0
margin_bottom = 211.926
size_flags_vertical = 6
text = "Load Sky"
[node name="BtnMultiplayer" parent="MenuList" instance=ExtResource( 1 )]
margin_top = 297.0
margin_right = 204.0
margin_bottom = 340.926
size_flags_vertical = 6
text = "Multiplayer"
[node name="BtnAbout" parent="MenuList" instance=ExtResource( 1 )]
margin_top = 425.0
margin_right = 204.0
margin_bottom = 468.926
size_flags_vertical = 6
text = "About"
[node name="BtnBack" parent="MenuList" instance=ExtResource( 1 )]
margin_top = 554.0
margin_right = 204.0
margin_bottom = 597.926
size_flags_vertical = 6
text = "Back to Stalker"
[node name="BtnExit" parent="MenuList" instance=ExtResource( 1 )]
margin_top = 683.0
margin_right = 204.0
margin_bottom = 726.926
size_flags_vertical = 6
text = "Exit Stalker"

View File

@ -0,0 +1,21 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://resources/user_interface/styles/btn_style_select.tres" type="StyleBox" id=1]
[ext_resource path="res://resources/user_interface/styles/btn_style_deselect.tres" type="StyleBox" id=2]
[ext_resource path="res://resources/fonts/fontstyle_normal.tres" type="DynamicFont" id=3]
[ext_resource path="res://scripts/user_interface/ButtonCommon.cs" type="Script" id=4]
[ext_resource path="res://resources/user_interface/soundeffects/btn_click.wav" type="AudioStream" id=5]
[node name="ButtonNormal" type="Button"]
margin_right = 12.0
margin_bottom = 20.0
custom_fonts/font = ExtResource( 3 )
custom_styles/hover = ExtResource( 1 )
custom_styles/pressed = ExtResource( 1 )
custom_styles/focus = ExtResource( 1 )
custom_styles/disabled = ExtResource( 2 )
custom_styles/normal = ExtResource( 2 )
script = ExtResource( 4 )
[node name="AudioClick" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 5 )

View File

@ -0,0 +1,21 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://resources/user_interface/styles/btn_small_style_select.tres" type="StyleBox" id=1]
[ext_resource path="res://resources/user_interface/styles/btn_small_style_deselect.tres" type="StyleBox" id=2]
[ext_resource path="res://resources/fonts/fontstyle_normal.tres" type="DynamicFont" id=3]
[ext_resource path="res://scripts/user_interface/ButtonCommon.cs" type="Script" id=4]
[ext_resource path="res://resources/user_interface/soundeffects/btn_click.wav" type="AudioStream" id=5]
[node name="ButtonSmall" type="Button"]
margin_right = 12.0
margin_bottom = 20.0
custom_fonts/font = ExtResource( 3 )
custom_styles/hover = ExtResource( 1 )
custom_styles/pressed = ExtResource( 1 )
custom_styles/focus = ExtResource( 1 )
custom_styles/disabled = ExtResource( 2 )
custom_styles/normal = ExtResource( 2 )
script = ExtResource( 4 )
[node name="AudioClick" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 5 )

View File

@ -0,0 +1,8 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://resources/fonts/fontstyle_big.tres" type="DynamicFont" id=1]
[node name="LabelBig" type="Label"]
margin_right = 40.0
margin_bottom = 14.0
custom_fonts/font = ExtResource( 1 )

View File

@ -0,0 +1,8 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://resources/fonts/fontstyle_normal.tres" type="DynamicFont" id=1]
[node name="LabelNormal" type="Label"]
margin_right = 40.0
margin_bottom = 14.0
custom_fonts/font = ExtResource( 1 )

View File

@ -0,0 +1,13 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://resources/user_interface/styles/lineedit_style_deselect.tres" type="StyleBox" id=1]
[ext_resource path="res://resources/user_interface/styles/lineedit_style_select.tres" type="StyleBox" id=2]
[ext_resource path="res://resources/fonts/fontstyle_normal.tres" type="DynamicFont" id=3]
[node name="LineEditNormal" type="LineEdit"]
margin_right = 58.0
margin_bottom = 24.0
custom_fonts/font = ExtResource( 3 )
custom_styles/read_only = ExtResource( 1 )
custom_styles/focus = ExtResource( 2 )
custom_styles/normal = ExtResource( 1 )