match versions to fix odd bugs

This commit is contained in:
ultrablob 2024-05-07 16:52:50 -04:00
parent e7a171bc1a
commit c4bb8dc381
5 changed files with 4 additions and 14 deletions

View file

@ -33,8 +33,8 @@ jobs:
uses: firebelley/godot-export@v5.2.0 uses: firebelley/godot-export@v5.2.0
with: with:
# Defining all the required inputs # Defining all the required inputs
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.1/Godot_v4.1-stable_linux.x86_64.zip godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.2.2/Godot_v4.2.2-stable_linux.x86_64.zip
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.1/Godot_v4.1-stable_export_templates.tpz godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.2.2/Godot_v4.2.2-stable_export_templates.tpz
relative_project_path: ./ relative_project_path: ./
- name: Move vercel.json - name: Move vercel.json

View file

@ -5,14 +5,7 @@ func _ready():
modulate = Color(Color.WHITE, 0.2) modulate = Color(Color.WHITE, 0.2)
pass # Replace with function body. pass # Replace with function body.
func fire():
$VisibleTimer.start()
# Called every frame. 'delta' is the elapsed time since the previous frame. # Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta): func _process(delta):
#print(points) #print(points)
points[1] = to_local($RayCast2D.get_collision_point()) points[1] = to_local($RayCast2D.get_collision_point())
func set_transparent():
modulate = Color.TRANSPARENT

View file

@ -37,7 +37,6 @@ func fire_laser():
tween.tween_callback(can_shoot.bind(true)) tween.tween_callback(can_shoot.bind(true))
#tween.tween_callback(set_laser_texture.bind(active_texture)) #tween.tween_callback(set_laser_texture.bind(active_texture))
tween.tween_callback($Sprite2D.pause) tween.tween_callback($Sprite2D.pause)
tween.tween_callback($Line2D.fire)
tween.tween_interval(0.2) tween.tween_interval(0.2)
tween.tween_callback(can_shoot.bind(false)) tween.tween_callback(can_shoot.bind(false))
tween.tween_callback(set_laser_texture.bind(aiming_texture)) tween.tween_callback(set_laser_texture.bind(aiming_texture))

View file

@ -21,7 +21,6 @@ func update_animation():
func _input(event): func _input(event):
if event.is_action_pressed("shoot") and speed != 0: if event.is_action_pressed("shoot") and speed != 0:
$Laser.fire()
fire_laser() fire_laser()
func _process(delta): func _process(delta):
@ -44,7 +43,6 @@ func fire_laser():
tween.tween_callback(play_with_delay) tween.tween_callback(play_with_delay)
tween.set_parallel(false) tween.set_parallel(false)
tween.tween_callback(set_laser_texture.bind(active_texture)) tween.tween_callback(set_laser_texture.bind(active_texture))
tween.tween_callback($Laser.fire)
tween.tween_property(self, "can_damage", true, 0) tween.tween_property(self, "can_damage", true, 0)
tween.tween_interval(0.2) tween.tween_interval(0.2)
tween.tween_property(self, "can_damage", false, 0) tween.tween_property(self, "can_damage", false, 0)

View file

@ -6,7 +6,7 @@
[ext_resource type="Texture2D" uid="uid://br5lt5658ioy3" path="res://apezoid_engine.png" id="3_paps8"] [ext_resource type="Texture2D" uid="uid://br5lt5658ioy3" path="res://apezoid_engine.png" id="3_paps8"]
[ext_resource type="Texture2D" uid="uid://1jurox63577w" path="res://apezoid-engine-idle.png" id="4_0rv3w"] [ext_resource type="Texture2D" uid="uid://1jurox63577w" path="res://apezoid-engine-idle.png" id="4_0rv3w"]
[ext_resource type="Texture2D" uid="uid://djfjdlri5xdkn" path="res://dotted line.png" id="6_05kle"] [ext_resource type="Texture2D" uid="uid://djfjdlri5xdkn" path="res://dotted line.png" id="6_05kle"]
[ext_resource type="Script" path="res://laser-apezoid.gd" id="7_f1dfs"] [ext_resource type="Script" path="res://Laser.gd" id="7_otdmu"]
[ext_resource type="AudioStream" uid="uid://4ou7posn1vbd" path="res://laserSmall_004.ogg" id="8_6whae"] [ext_resource type="AudioStream" uid="uid://4ou7posn1vbd" path="res://laserSmall_004.ogg" id="8_6whae"]
[sub_resource type="AtlasTexture" id="AtlasTexture_8qb1c"] [sub_resource type="AtlasTexture" id="AtlasTexture_8qb1c"]
@ -191,7 +191,7 @@ points = PackedVector2Array(0, 0, 1075, 0)
width = 30.0 width = 30.0
texture = ExtResource("6_05kle") texture = ExtResource("6_05kle")
texture_mode = 1 texture_mode = 1
script = ExtResource("7_f1dfs") script = ExtResource("7_otdmu")
[node name="RayCast2D" type="RayCast2D" parent="Laser" index="0"] [node name="RayCast2D" type="RayCast2D" parent="Laser" index="0"]
target_position = Vector2(50000, 2.08165e-12) target_position = Vector2(50000, 2.08165e-12)