diff --git a/game/effects/code.gd b/game/effects/code.gd new file mode 100644 index 0000000..0bd04b1 --- /dev/null +++ b/game/effects/code.gd @@ -0,0 +1,12 @@ +class_name Code +extends Node2D + + +const CODE_LINE = preload("res://game/effects/code_line.tscn") + + +func _ready() -> void: + for y in range(0, SettingsManager.window_base_size.y, 16): + var line : CodeLine = CODE_LINE.instantiate() + line.scroll_offset.y = y + add_child(line) diff --git a/game/effects/code.gd.uid b/game/effects/code.gd.uid new file mode 100644 index 0000000..98ddd70 --- /dev/null +++ b/game/effects/code.gd.uid @@ -0,0 +1 @@ +uid://y1bnpjctf5yp diff --git a/game/effects/code.tscn b/game/effects/code.tscn new file mode 100644 index 0000000..f0581fe --- /dev/null +++ b/game/effects/code.tscn @@ -0,0 +1,6 @@ +[gd_scene format=3 uid="uid://bafplnd2un011"] + +[ext_resource type="Script" uid="uid://y1bnpjctf5yp" path="res://game/effects/code.gd" id="1_udxn3"] + +[node name="Code" type="Node2D" unique_id=946204992] +script = ExtResource("1_udxn3") diff --git a/game/effects/code_line.gd b/game/effects/code_line.gd new file mode 100644 index 0000000..65e9e7c --- /dev/null +++ b/game/effects/code_line.gd @@ -0,0 +1,13 @@ +class_name CodeLine +extends Parallax2D + + +const WIDTH = 11696 +const MIN_SCROLL_SPEED = 500 +const MAX_SCROLL_SPEED = 1000 + + +func _ready() -> void: + repeat_size.x = WIDTH + scroll_offset.x = randi_range(0, WIDTH) + autoscroll.x = -randi_range(MIN_SCROLL_SPEED, MAX_SCROLL_SPEED) diff --git a/game/effects/code_line.gd.uid b/game/effects/code_line.gd.uid new file mode 100644 index 0000000..f746995 --- /dev/null +++ b/game/effects/code_line.gd.uid @@ -0,0 +1 @@ +uid://dspduev7xpwo7 diff --git a/game/effects/code_line.tscn b/game/effects/code_line.tscn new file mode 100644 index 0000000..c2beaf4 --- /dev/null +++ b/game/effects/code_line.tscn @@ -0,0 +1,10 @@ +[gd_scene format=3 uid="uid://cnasnqa1t62na"] + +[ext_resource type="Script" uid="uid://dspduev7xpwo7" path="res://game/effects/code_line.gd" id="1_apnc4"] +[ext_resource type="Texture2D" uid="uid://bu0ti323biesp" path="res://images/level/code.png" id="2_db2bm"] + +[node name="CodeLine" type="Parallax2D" unique_id=802841827] +script = ExtResource("1_apnc4") + +[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1434665309] +texture = ExtResource("2_db2bm") diff --git a/game/themes/main_menu.tres b/game/themes/main_menu.tres index 6be91cb..2836beb 100644 --- a/game/themes/main_menu.tres +++ b/game/themes/main_menu.tres @@ -153,6 +153,12 @@ texture_margin_bottom = 6.0 [resource] default_font = ExtResource("1_sfg7l") default_font_size = 32 +Button/colors/font_color = Color(0.8235294, 0.8235294, 0.83137256, 1) +Button/colors/font_disabled_color = Color(0.49019608, 0.4862745, 0.5137255, 1) +Button/colors/font_focus_color = Color(0.8235294, 0.8235294, 0.83137256, 1) +Button/colors/font_hover_color = Color(0.8235294, 0.8235294, 0.83137256, 1) +Button/colors/font_hover_pressed_color = Color(0.8235294, 0.8235294, 0.83137256, 1) +Button/colors/font_pressed_color = Color(0.8235294, 0.8235294, 0.83137256, 1) Button/styles/disabled = SubResource("StyleBoxTexture_qdigb") Button/styles/focus = SubResource("StyleBoxTexture_88mo4") Button/styles/hover = SubResource("StyleBoxTexture_88p1a") @@ -174,6 +180,7 @@ HSlider/icons/tick = SubResource("AtlasTexture_hlrns") HSlider/styles/grabber_area = SubResource("StyleBoxTexture_mla8h") HSlider/styles/grabber_area_highlight = SubResource("StyleBoxTexture_bkny3") HSlider/styles/slider = SubResource("StyleBoxTexture_53fnn") +Label/colors/font_color = Color(0.8235294, 0.8235294, 0.83137256, 1) MarginContainer/constants/margin_bottom = 25 MarginContainer/constants/margin_left = 25 MarginContainer/constants/margin_right = 25 diff --git a/images/level/code.png b/images/level/code.png new file mode 100644 index 0000000..41cd019 --- /dev/null +++ b/images/level/code.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:363437e7cfe5960e55a62001d132c37abfcf0ee6ce4101ecee2fc2246a3ab0f2 +size 3947 diff --git a/images/level/code.png.import b/images/level/code.png.import new file mode 100644 index 0000000..966ac32 --- /dev/null +++ b/images/level/code.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bu0ti323biesp" +path="res://.godot/imported/code.png-9d694fb182f42e7159ce93302773ebaf.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://images/level/code.png" +dest_files=["res://.godot/imported/code.png-9d694fb182f42e7159ce93302773ebaf.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +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/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +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