This commit is contained in:
Page Asgardius 2024-06-24 02:29:56 -07:00
parent cf2d8d3a5a
commit 08f1202569
20 changed files with 384 additions and 0 deletions

2
.gitattributes vendored Normal file
View file

@ -0,0 +1,2 @@
# Normalize EOL for all files that Git considers text files.
* text=auto eol=lf

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
# Godot 4+ specific ignores
.godot/

16
Game name.gd Normal file
View file

@ -0,0 +1,16 @@
extends Label
var frequency = 5
var amplitude = 550
var time = 0
# 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
time += delta
var movement = cos(time*frequency)*amplitude
position.y+=movement * delta

Binary file not shown.

16
exit.gd Normal file
View file

@ -0,0 +1,16 @@
extends Label
var frequency = 5
var amplitude = 550
var time = 0
# 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
time += delta
var movement = -cos(time*frequency)*amplitude
position.x+=movement * delta

4
fps.gd Normal file
View file

@ -0,0 +1,4 @@
extends Label
func _process(delta: float) -> void:
set_text("FPS: " + str(Engine.get_frames_per_second()));

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 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

37
icon.svg.import Normal file
View file

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cyt03xk74ega8"
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

8
levels/Version.gd Normal file
View file

@ -0,0 +1,8 @@
extends Label
func _process(delta):
#if Global.debug:
# set_text("Debug Mode")
#else:
# set_text(Global.release)
pass

36
levels/bottomhud.tscn Normal file
View file

@ -0,0 +1,36 @@
[gd_scene load_steps=3 format=3 uid="uid://d31udhuuwrajn"]
[ext_resource type="Script" path="res://fps.gd" id="1_15gcj"]
[ext_resource type="Script" path="res://levels/Version.gd" id="2_qx4dy"]
[node name="Bottomhud" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="fps" type="Label" parent="."]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -23.0
offset_right = 40.0
grow_vertical = 0
script = ExtResource("1_15gcj")
[node name="Version" type="Label" parent="."]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -80.0
offset_top = -23.0
grow_horizontal = 0
grow_vertical = 0
text = "R3.0.0"
script = ExtResource("2_qx4dy")

BIN
music/alsa.wav Normal file

Binary file not shown.

24
music/alsa.wav.import Normal file
View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://yu14ds0oqe4u"
path="res://.godot/imported/alsa.wav-4620708ae8d13f9c6c586543d1799e47.sample"
[deps]
source_file="res://music/alsa.wav"
dest_files=["res://.godot/imported/alsa.wav-4620708ae8d13f9c6c586543d1799e47.sample"]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=2
edit/loop_begin=0
edit/loop_end=-1
compress/mode=0

16
nebula.gd Normal file
View file

@ -0,0 +1,16 @@
extends VideoStreamPlayer
# 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_finished():
play()
#pass # Replace with function body.

12
player.gd Normal file
View file

@ -0,0 +1,12 @@
extends Sprite2D
var angular_speed = PI
# 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):
rotation += angular_speed * delta
#pass

27
project.godot Normal file
View file

@ -0,0 +1,27 @@
; 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="keygen-template"
run/main_scene="res://title.tscn"
config/features=PackedStringArray("4.2", "GL Compatibility")
config/icon="res://icon.svg"
[display]
window/size/viewport_width=640
window/size/viewport_height=360
window/stretch/mode="viewport"
[rendering]
renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"

BIN
sprites/ss.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

34
sprites/ss.png.import Normal file
View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cuqb0vll37oxd"
path="res://.godot/imported/ss.png-bfc64d41c6c7791990ccd2613cdfbafc.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/ss.png"
dest_files=["res://.godot/imported/ss.png-bfc64d41c6c7791990ccd2613cdfbafc.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

16
start.gd Normal file
View file

@ -0,0 +1,16 @@
extends Label
var frequency = 5
var amplitude = 550
var time = 0
# 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
time += delta
var movement = cos(time*frequency)*amplitude
position.x+=movement * delta

51
title.gd Normal file
View file

@ -0,0 +1,51 @@
extends Control
# Called when the node enters the scene tree for the first time.
var bgsound := AudioStreamPlayer.new()
#var frank := AudioStreamPlayer.new()
var wait
#var galaxy = preload("res://backgounds/galaxy.tscn").instantiate()
#var wormhole = preload("res://backgounds/wormhole.tscn").instantiate()
func _ready():
#Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
add_child(bgsound)
#add_child(frank)
var titlemusic = load("res://music/alsa.wav")
#var r3jingle = load(Global.sfxtracks[0])
bgsound.stream = titlemusic
bgsound.play(0)
#frank.stream = r3jingle
#frank.play(0)
#wait = Time.get_ticks_msec()
#pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _input(event):
# Mouse in viewport coordinates.
if Input.is_action_just_pressed("ui_accept"):
#print("Mouse Click/Unclick at: ", event.position)
get_tree().change_scene_to_file("res://levels/tmenu.tscn")
#_level()
elif Input.is_action_just_pressed("ui_cancel"):
get_tree().quit()
#func _level():
# This is like autoloading the scene, only
# it happens after already loading the main scene.
# Global.live = 1
# Global.gamelevel = randi() % 3
# if Global.gamelevel == 0:
# get_tree().change_scene_to_file("res://backgounds/galaxy.tscn")
# elif Global.gamelevel == 1:
# get_tree().change_scene_to_file("res://backgounds/wormhole.tscn")
# else:
# get_tree().change_scene_to_file("res://backgounds/abstract.tscn")
#get_tree().root.add_child(title)
#get_tree().root.remove_child(boot)
#boot.queue_free()

82
title.tscn Normal file
View file

@ -0,0 +1,82 @@
[gd_scene load_steps=10 format=3 uid="uid://coc7hhaa834yd"]
[ext_resource type="Script" path="res://title.gd" id="1_fbo7u"]
[ext_resource type="Script" path="res://Game name.gd" id="2_bbb0f"]
[ext_resource type="VideoStream" path="res://backgounds/nebula_-_6044 (360p).ogv" id="2_ijogm"]
[ext_resource type="Script" path="res://nebula.gd" id="3_bn1r3"]
[ext_resource type="Script" path="res://start.gd" id="4_cc41w"]
[ext_resource type="Script" path="res://exit.gd" id="5_scoec"]
[ext_resource type="Texture2D" uid="uid://cuqb0vll37oxd" path="res://sprites/ss.png" id="8_tne35"]
[ext_resource type="Script" path="res://player.gd" id="9_7e625"]
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="9_xo53u"]
[node name="title" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_fbo7u")
[node name="nebula" type="VideoStreamPlayer" parent="."]
layout_mode = 0
offset_right = 640.0
offset_bottom = 368.0
stream = ExtResource("2_ijogm")
autoplay = true
script = ExtResource("3_bn1r3")
[node name="player" type="Sprite2D" parent="."]
position = Vector2(346, 159)
scale = Vector2(0.3, 0.3)
texture = ExtResource("8_tne35")
script = ExtResource("9_7e625")
[node name="Game name" type="Label" parent="."]
layout_mode = 0
offset_left = 128.0
offset_top = 117.0
offset_right = 554.0
offset_bottom = 230.0
theme_override_font_sizes/font_size = 40
text = "Advanced Linein
Sound Architects"
horizontal_alignment = 1
script = ExtResource("2_bbb0f")
[node name="start" type="Label" parent="."]
layout_mode = 0
offset_left = 122.0
offset_top = 33.0
offset_right = 543.0
offset_bottom = 88.0
theme_override_font_sizes/font_size = 40
text = "Enjoy the music"
horizontal_alignment = 1
script = ExtResource("4_cc41w")
[node name="exit" type="Label" parent="."]
layout_mode = 0
offset_left = 81.0
offset_top = 252.0
offset_right = 546.0
offset_bottom = 307.0
theme_override_font_sizes/font_size = 40
text = "Mrgamer - Hostlov"
horizontal_alignment = 1
script = ExtResource("5_scoec")
[node name="Label" type="Label" parent="."]
layout_mode = 0
offset_left = 107.0
offset_top = 304.0
offset_right = 538.0
offset_bottom = 353.0
text = "2024 Page Asgardius GNU General Public License 3
2020-2024 The Red Robot Radio"
[node name="Bottomhud" parent="." instance=ExtResource("9_xo53u")]
layout_mode = 1
[connection signal="finished" from="nebula" to="nebula" method="_on_finished"]