-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add special effects to terra_blade beginning animation
- Loading branch information
1 parent
bc5eab7
commit e6954be
Showing
7 changed files
with
110 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
extends Node2D | ||
|
||
var rad: float | ||
var center: Vector2 | ||
var r: float | ||
|
||
|
||
func _draw(): | ||
draw_arc(center, r, -TAU / 4, -TAU / 4 + rad, 50, Color(0, 1, 0), 30, true) | ||
|
||
|
||
func draw(rad_: float, center_: Vector2, r_: float): | ||
rad = rad_ | ||
center = center_ | ||
r = r_ | ||
queue_redraw() | ||
|
||
|
||
func draw2(r_: float, rad_: float, center_: Vector2): | ||
rad = rad_ | ||
center = center_ | ||
r = r_ | ||
queue_redraw() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
extends Node2D | ||
|
||
var r: float | ||
var alpha: float | ||
var center: Vector2 | ||
|
||
|
||
func _draw(): | ||
draw_circle(center, r, Color(0, 1, 0, alpha), true, -1, true) | ||
|
||
|
||
func draw(r_, center_): | ||
r = r_ | ||
alpha = (270.0 - r_) / 270.0 | ||
center = center_ | ||
queue_redraw() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[gd_scene load_steps=6 format=3 uid="uid://clwl2jjjehebp"] | ||
|
||
[ext_resource type="Script" path="res://scenes/weapons/terra_blade/terra_blade.gd" id="1_1hrqx"] | ||
[ext_resource type="Texture2D" uid="uid://cykbxj82pu7no" path="res://scenes/weapons/terra_blade/terra_blade.png" id="1_477b2"] | ||
[ext_resource type="PackedScene" uid="uid://1megnlcsse45" path="res://scenes/bullets/terra_blade/TerraBladeBeam.tscn" id="2_yp2sf"] | ||
[ext_resource type="Script" path="res://scenes/weapons/terra_blade/circle_painter.gd" id="4_nmed2"] | ||
[ext_resource type="Script" path="res://scenes/weapons/terra_blade/round_painter.gd" id="5_abxlu"] | ||
|
||
[node name="TerraBlade" type="Node"] | ||
script = ExtResource("1_1hrqx") | ||
terra_blade_beam = ExtResource("2_yp2sf") | ||
|
||
[node name="Sprite2D" type="Sprite2D" parent="."] | ||
position = Vector2(527.511, 314.206) | ||
rotation = 0.748746 | ||
scale = Vector2(2.3, 2.3) | ||
texture = ExtResource("1_477b2") | ||
offset = Vector2(12.0369, -15.4621) | ||
metadata/_edit_group_ = true | ||
|
||
[node name="CirclePainter" type="Node2D" parent="."] | ||
script = ExtResource("4_nmed2") | ||
|
||
[node name="RoundPainter" type="Node2D" parent="."] | ||
script = ExtResource("5_abxlu") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[gd_scene load_steps=6 format=3 uid="uid://clwl2jjjehebp"] | ||
|
||
[ext_resource type="Script" path="res://scenes/weapons/terra_blade/terra_blade.gd" id="1_1hrqx"] | ||
[ext_resource type="Texture2D" uid="uid://cykbxj82pu7no" path="res://scenes/weapons/terra_blade/terra_blade.png" id="1_477b2"] | ||
[ext_resource type="PackedScene" uid="uid://1megnlcsse45" path="res://scenes/bullets/terra_blade/TerraBladeBeam.tscn" id="2_yp2sf"] | ||
[ext_resource type="Script" path="res://scenes/weapons/terra_blade/circle_painter.gd" id="4_nmed2"] | ||
[ext_resource type="Script" path="res://scenes/weapons/terra_blade/round_painter.gd" id="5_abxlu"] | ||
|
||
[node name="TerraBlade" type="Node"] | ||
script = ExtResource("1_1hrqx") | ||
terra_blade_beam = ExtResource("2_yp2sf") | ||
|
||
[node name="Sprite2D" type="Sprite2D" parent="."] | ||
position = Vector2(527.511, 314.206) | ||
rotation = 0.748746 | ||
scale = Vector2(2.3, 2.3) | ||
texture = ExtResource("1_477b2") | ||
offset = Vector2(12.0369, -15.4621) | ||
metadata/_edit_group_ = true | ||
|
||
[node name="CirclePainter" type="Node2D" parent="."] | ||
script = ExtResource("4_nmed2") | ||
|
||
[node name="RoundPainter" type="Node2D" parent="."] | ||
script = ExtResource("5_abxlu") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters