Skip to content

Commit

Permalink
ci:fix gdlint
Browse files Browse the repository at this point in the history
  • Loading branch information
limuy2022 committed Jul 12, 2024
1 parent c7ffc0b commit 5f4ba2c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
18 changes: 8 additions & 10 deletions scenes/bullets/seedler/seedler_nut.gd
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
extends Area2D

const WIDTH = 8
@export var thorns: PackedScene
var alpha: float
var line1_from: Vector2
var line1_to: Vector2
var line2_from: Vector2
var line2_to: Vector2


# 启动投掷动作
Expand Down Expand Up @@ -96,18 +102,10 @@ func super_burst(pos: Vector2):
tween.tween_callback(queue_free)


var alpha: float
var line1_from: Vector2
var line1_to: Vector2
var line2_from: Vector2
var line2_to: Vector2
const width = 8


func _draw():
var yellow = Color(Color.GOLD, alpha)
draw_line(line1_from, line1_to, yellow, width)
draw_line(line2_from, line2_to, yellow, width)
draw_line(line1_from, line1_to, yellow, WIDTH)
draw_line(line2_from, line2_to, yellow, WIDTH)


func super_burst_shot_beam():
Expand Down
2 changes: 1 addition & 1 deletion scenes/weapons/seedler/seedler.gd
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ extends Sprite2D

signal attack_finished
const TIMES = 5
@export var beam: PackedScene
@onready var path = $"../Path2D"
@onready var follow = $"../Path2D/PathFollow2D"
@export var beam: PackedScene


func move(length: float) -> void:
Expand Down

0 comments on commit 5f4ba2c

Please sign in to comment.