Massive work on level, UI, sound, and player functionality, small progress on netcode. Renamed project to Net Gunner.

This commit is contained in:
2025-12-22 09:04:22 -05:00
parent 9a8f06437d
commit 3b6407d6e5
566 changed files with 42735 additions and 183 deletions

View File

@@ -2,6 +2,8 @@ extends Control
var opened : bool = false
var menu_choice : int = 0
var shot_tween : Tween
var glow_tween : Tween
@onready var menu_list : Array = [
%STORY,
%"VS-COM",
@@ -10,6 +12,21 @@ var menu_choice : int = 0
%OPTION
]
var vs_com_scene = preload("res://scenes/character_select.tscn")
func _ready() -> void:
shot_tween = create_tween()
%Target.scale = Vector2(2,2)
%Target.modulate.a = 0
shot_tween.set_parallel(true)
shot_tween.tween_property(%Target, "modulate:a", 1, 1)
shot_tween.tween_property(%Target, "scale", Vector2(1,1), 1)
shot_tween.tween_property(%Target, "rotation", PI / 4, 1)
glow_tween = create_tween()
glow_tween.set_loops(-1)
glow_tween.tween_property(%Target, "modulate:a", .8, .5)
glow_tween.tween_property(%Target, "modulate:a", 1, .5)
func _process(delta: float) -> void:
if Input.is_action_just_pressed("ui_menu"):
opened = !opened
@@ -33,6 +50,8 @@ func _process(delta: float) -> void:
menu_choice = 0
%SwitchSound.play()
switch_menu()
elif Input.is_action_just_pressed("ui_accept"):
Game.switch_scene(vs_com_scene)
func switch_menu() -> void: