initial commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# Normalize EOL for all files that Git considers text files.
|
||||
* text=auto eol=lf
|
||||
@@ -0,0 +1,2 @@
|
||||
# Godot 4+ specific ignores
|
||||
.godot/
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,19 @@
|
||||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://mbkqoqmf0go7"
|
||||
path="res://.godot/imported/Galaxy.mp3-73ed80155d141d7556f1bab482b335a9.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Galaxy.mp3"
|
||||
dest_files=["res://.godot/imported/Galaxy.mp3-73ed80155d141d7556f1bab482b335a9.mp3str"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
||||
bpm=0
|
||||
beat_count=0
|
||||
bar_beats=4
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 7.4 MiB |
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://yjay8cqle8yi"
|
||||
path.s3tc="res://.godot/imported/aurora.png-524a642accc848cd0098eaf7446f02e5.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://aurora.png"
|
||||
dest_files=["res://.godot/imported/aurora.png-524a642accc848cd0098eaf7446f02e5.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
|
||||
@@ -0,0 +1,40 @@
|
||||
extends CharacterBody3D
|
||||
|
||||
|
||||
const SPEED = 5.0
|
||||
const JUMP_VELOCITY = 4.5
|
||||
const WALK_SPEED = 2.0
|
||||
const MOUSE_SENS = 0.002
|
||||
|
||||
# Get the gravity from the project settings to be synced with RigidBody nodes.
|
||||
var gravity = ProjectSettings.get_setting("physics/3d/default_gravity")
|
||||
|
||||
func _ready():
|
||||
Input.set_mouse_mode(2)
|
||||
|
||||
func _input(event):
|
||||
if event is InputEventMouseMotion:
|
||||
$Pivot.rotate_y(-event.relative.x*MOUSE_SENS)
|
||||
$Pivot/Camera.rotate_x(-event.relative.y*MOUSE_SENS)
|
||||
|
||||
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("ui_left", "ui_right", "ui_up", "ui_down")
|
||||
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()
|
||||
@@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://d4fal6apyqrlf"]
|
||||
|
||||
[ext_resource type="Script" path="res://character_body_3d.gd" id="1_gy10k"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_gkp0s"]
|
||||
|
||||
[node name="CharacterBody3D" type="CharacterBody3D"]
|
||||
script = ExtResource("1_gy10k")
|
||||
|
||||
[node name="Pivot" type="Node3D" parent="."]
|
||||
|
||||
[node name="Camera" type="Camera3D" parent="Pivot"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("SphereShape3D_gkp0s")
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 39 MiB |
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cjr3yq45rbob0"
|
||||
path.s3tc="res://.godot/imported/galaxy.png-826bf465bd9a246a30eb75141ad1440f.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://galaxy.png"
|
||||
dest_files=["res://.godot/imported/galaxy.png-826bf465bd9a246a30eb75141ad1440f.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
|
||||
@@ -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 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 814 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H446l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z" fill="#478cbf"/><path d="M483 600c0 34 58 34 58 0v-86c0-34-58-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: 949 B |
@@ -0,0 +1,37 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c1v7dh35tub0l"
|
||||
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
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,16 @@
|
||||
; 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="Galaxy"
|
||||
run/main_scene="res://node_3d.tscn"
|
||||
config/features=PackedStringArray("4.2", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
@@ -0,0 +1,35 @@
|
||||
shader_type sky;
|
||||
|
||||
uniform sampler2D base;
|
||||
uniform vec3 base_color : source_color;
|
||||
uniform float base_speed : hint_range(0,1) = 0.1;
|
||||
|
||||
uniform sampler2D layer;
|
||||
uniform sampler2D layer_two;
|
||||
|
||||
uniform float NOISE : hint_range(0,1) = 0.5;
|
||||
|
||||
float random(vec2 coords) {
|
||||
return fract(sin(dot(coords.xy, vec2(12.9898,78.233))) * 43758.5453);
|
||||
}
|
||||
|
||||
void sky() {
|
||||
float NOISE_GRANULARITY = NOISE / 100.0;
|
||||
|
||||
vec2 base_coords = vec2(SKY_COORDS.x+TIME*base_speed*0.05, SKY_COORDS.y);
|
||||
vec4 base_pix = texture(base, base_coords);
|
||||
float noise = mix(-NOISE_GRANULARITY, NOISE_GRANULARITY, random(base_coords));
|
||||
float base_alpha = base_pix.a;
|
||||
//if (base_alpha < 0.01 && base_alpha > 0.0) {
|
||||
//base_alpha += noise;
|
||||
//}
|
||||
|
||||
vec2 star_coords = vec2(SKY_COORDS.x-TIME*base_speed*0.05, SKY_COORDS.y);
|
||||
vec4 star_pix = texture(layer_two, star_coords)*0.5;
|
||||
|
||||
vec2 galaxy_coords = vec2(SKY_COORDS.x-TIME*base_speed*0.01, SKY_COORDS.y);
|
||||
vec4 galaxy_pix = max(vec4(0,0,0,0),texture(layer, galaxy_coords));
|
||||
COLOR = vec3(0,0,0) + star_pix.rgb * star_pix.a + base_pix.rgb * base_alpha + + galaxy_pix.rgb * galaxy_pix.a;
|
||||
// Called for every visible pixel in the sky background, as well as all pixels
|
||||
// in the radiance cubemap.
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
[gd_resource type="ShaderMaterial" load_steps=5 format=3 uid="uid://51srw6jbogv2"]
|
||||
|
||||
[ext_resource type="Shader" path="res://sky.gdshader" id="1_eneyl"]
|
||||
[ext_resource type="Texture2D" uid="uid://yjay8cqle8yi" path="res://aurora.png" id="2_tntr4"]
|
||||
[ext_resource type="Texture2D" uid="uid://cjr3yq45rbob0" path="res://galaxy.png" id="3_ue5o8"]
|
||||
[ext_resource type="Texture2D" uid="uid://bbu4k18ek1nk3" path="res://starlayer.png" id="4_qqleb"]
|
||||
|
||||
[resource]
|
||||
shader = ExtResource("1_eneyl")
|
||||
shader_parameter/base_color = Color(0.125402, 0.324219, 0.138971, 1)
|
||||
shader_parameter/base_speed = 0.033
|
||||
shader_parameter/NOISE = 1.0
|
||||
shader_parameter/base = ExtResource("2_tntr4")
|
||||
shader_parameter/layer = ExtResource("3_ue5o8")
|
||||
shader_parameter/layer_two = ExtResource("4_qqleb")
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 77 MiB |
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bbu4k18ek1nk3"
|
||||
path.s3tc="res://.godot/imported/starlayer.png-be8c917fd2a84636b922f33e720b2c13.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://starlayer.png"
|
||||
dest_files=["res://.godot/imported/starlayer.png-be8c917fd2a84636b922f33e720b2c13.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
|
||||
Reference in New Issue
Block a user