Skip to content

Commit

Permalink
refactor:fit gdlint
Browse files Browse the repository at this point in the history
  • Loading branch information
limuy2022 committed Jul 6, 2024
1 parent af7a24b commit 0a5fce2
Show file tree
Hide file tree
Showing 9 changed files with 111 additions and 110 deletions.
2 changes: 1 addition & 1 deletion gdrust/src/weapons/star_wrath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use rand::{thread_rng, Rng};

#[derive(GodotClass)]
#[class(base=Area2D)]
struct StarWrath {
pub struct StarWrath {
base: Base<Area2D>,
start_flag: bool,
state: State,
Expand Down
11 changes: 8 additions & 3 deletions scenes/fight.tscn
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[gd_scene load_steps=25 format=3 uid="uid://cibwxaqnuodid"]
[gd_scene load_steps=26 format=3 uid="uid://cibwxaqnuodid"]

[ext_resource type="Texture2D" uid="uid://cqp3l8q7xbxrt" path="res://resources/images/weapons/Zenith.webp" id="3_2spkb"]
[ext_resource type="Texture2D" uid="uid://b5jjl8np5jm6q" path="res://resources/images/shields/shield.png" id="3_bdq2j"]
[ext_resource type="PackedScene" uid="uid://dn2ixin15jtt3" path="res://scenes/weapons/star_wrath.tscn" id="4_8ipx5"]
[ext_resource type="PackedScene" uid="uid://c7unyob7tl6gs" path="res://scenes/weapons/seedler.tscn" id="4_hakuj"]
[ext_resource type="Texture2D" uid="uid://c71fsdux0i1r3" path="res://resources/images/PlayerHeart/Default/000.png" id="5_3ufqu"]
[ext_resource type="Script" path="res://scripts/shield.gd" id="5_q7jwc"]
[ext_resource type="Texture2D" uid="uid://b37v3b41jrx1x" path="res://resources/images/UI/UIFight/Default/000.png" id="6_5cs44"]
Expand Down Expand Up @@ -70,11 +71,15 @@ scale = Vector2(3.28571, 3.28571)
[node name="image" type="Sprite2D" parent="ZenithBegin"]
texture = ExtResource("3_2spkb")

[node name="StarWrath" parent="." instance=ExtResource("4_8ipx5")]
[node name="Swords" type="Node" parent="."]

[node name="EnchantedSword" parent="." instance=ExtResource("13_1n0f0")]
[node name="StarWrath" parent="Swords" instance=ExtResource("4_8ipx5")]

[node name="EnchantedSword" parent="Swords" instance=ExtResource("13_1n0f0")]
rotation = 0.710345

[node name="Seedler" parent="Swords" instance=ExtResource("4_hakuj")]

[node name="Player" type="Player" parent="."]
position = Vector2(570, 414)
scale = Vector2(0.2, 0.2)
Expand Down
7 changes: 3 additions & 4 deletions scripts/bullets/enchanted_beam.gd
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ extends Area2D
@export var direction: Vector2
@export var speed: float

# 是否被反弹
var is_bound = false


# Called when the node enters the scene tree for the first time.
func _ready():
Expand All @@ -16,10 +19,6 @@ func _ready():
$OutScreen.screen_exited.connect(queue_free)


# 是否被反弹
var is_bound = false


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
position += delta * speed * direction
Expand Down
2 changes: 1 addition & 1 deletion scripts/bullets/star_wrath_original.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ func _ready() -> void:


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
func _process(_delta: float) -> void:
pass
2 changes: 1 addition & 1 deletion scripts/multi_game/enter.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ func _ready() -> void:


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
func _process(_delta: float) -> void:
pass


Expand Down
2 changes: 1 addition & 1 deletion scripts/multi_game/select.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ func _ready() -> void:


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
func _process(_delta: float) -> void:
pass


Expand Down
2 changes: 1 addition & 1 deletion scripts/start/multi_game.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ func _ready() -> void:


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
func _process(_delta: float) -> void:
pass


Expand Down
Loading

0 comments on commit 0a5fce2

Please sign in to comment.