Added Code effect
This commit is contained in:
@@ -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)
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://y1bnpjctf5yp
|
||||||
@@ -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")
|
||||||
@@ -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)
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://dspduev7xpwo7
|
||||||
@@ -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")
|
||||||
@@ -153,6 +153,12 @@ texture_margin_bottom = 6.0
|
|||||||
[resource]
|
[resource]
|
||||||
default_font = ExtResource("1_sfg7l")
|
default_font = ExtResource("1_sfg7l")
|
||||||
default_font_size = 32
|
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/disabled = SubResource("StyleBoxTexture_qdigb")
|
||||||
Button/styles/focus = SubResource("StyleBoxTexture_88mo4")
|
Button/styles/focus = SubResource("StyleBoxTexture_88mo4")
|
||||||
Button/styles/hover = SubResource("StyleBoxTexture_88p1a")
|
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 = SubResource("StyleBoxTexture_mla8h")
|
||||||
HSlider/styles/grabber_area_highlight = SubResource("StyleBoxTexture_bkny3")
|
HSlider/styles/grabber_area_highlight = SubResource("StyleBoxTexture_bkny3")
|
||||||
HSlider/styles/slider = SubResource("StyleBoxTexture_53fnn")
|
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_bottom = 25
|
||||||
MarginContainer/constants/margin_left = 25
|
MarginContainer/constants/margin_left = 25
|
||||||
MarginContainer/constants/margin_right = 25
|
MarginContainer/constants/margin_right = 25
|
||||||
|
|||||||
BIN
Binary file not shown.
@@ -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
|
||||||
Reference in New Issue
Block a user