diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8ad74f7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4709183 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Godot 4+ specific ignores +.godot/ diff --git a/Game name.gd b/Game name.gd new file mode 100644 index 0000000..b3c1951 --- /dev/null +++ b/Game name.gd @@ -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 diff --git a/backgounds/nebula_-_6044 (360p).ogv b/backgounds/nebula_-_6044 (360p).ogv new file mode 100644 index 0000000..8b510dd Binary files /dev/null and b/backgounds/nebula_-_6044 (360p).ogv differ diff --git a/exit.gd b/exit.gd new file mode 100644 index 0000000..5d350ab --- /dev/null +++ b/exit.gd @@ -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 diff --git a/fps.gd b/fps.gd new file mode 100644 index 0000000..c2c9da1 --- /dev/null +++ b/fps.gd @@ -0,0 +1,4 @@ +extends Label + +func _process(delta: float) -> void: + set_text("FPS: " + str(Engine.get_frames_per_second())); diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..3fe4f4a --- /dev/null +++ b/icon.svg @@ -0,0 +1 @@ + diff --git a/icon.svg.import b/icon.svg.import new file mode 100644 index 0000000..f273d0d --- /dev/null +++ b/icon.svg.import @@ -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 diff --git a/levels/Version.gd b/levels/Version.gd new file mode 100644 index 0000000..e913a03 --- /dev/null +++ b/levels/Version.gd @@ -0,0 +1,8 @@ +extends Label + +func _process(delta): + #if Global.debug: + # set_text("Debug Mode") + #else: + # set_text(Global.release) + pass diff --git a/levels/bottomhud.tscn b/levels/bottomhud.tscn new file mode 100644 index 0000000..75f454b --- /dev/null +++ b/levels/bottomhud.tscn @@ -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") diff --git a/music/alsa.wav b/music/alsa.wav new file mode 100644 index 0000000..f6c609a Binary files /dev/null and b/music/alsa.wav differ diff --git a/music/alsa.wav.import b/music/alsa.wav.import new file mode 100644 index 0000000..2e6c984 --- /dev/null +++ b/music/alsa.wav.import @@ -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 diff --git a/nebula.gd b/nebula.gd new file mode 100644 index 0000000..c1d331a --- /dev/null +++ b/nebula.gd @@ -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. diff --git a/player.gd b/player.gd new file mode 100644 index 0000000..4098686 --- /dev/null +++ b/player.gd @@ -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 diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..60b297d --- /dev/null +++ b/project.godot @@ -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" diff --git a/sprites/ss.png b/sprites/ss.png new file mode 100644 index 0000000..87d83a6 Binary files /dev/null and b/sprites/ss.png differ diff --git a/sprites/ss.png.import b/sprites/ss.png.import new file mode 100644 index 0000000..4872884 --- /dev/null +++ b/sprites/ss.png.import @@ -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 diff --git a/start.gd b/start.gd new file mode 100644 index 0000000..a4f33f4 --- /dev/null +++ b/start.gd @@ -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 diff --git a/title.gd b/title.gd new file mode 100644 index 0000000..6b56aaf --- /dev/null +++ b/title.gd @@ -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() diff --git a/title.tscn b/title.tscn new file mode 100644 index 0000000..058f710 --- /dev/null +++ b/title.tscn @@ -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"]