add automated vercel builds
This commit is contained in:
parent
2046fbff71
commit
986a8aac82
10 changed files with 48 additions and 10 deletions
BIN
.DS_Store
vendored
BIN
.DS_Store
vendored
Binary file not shown.
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
# Godot 4+ specific ignores
|
# Godot 4+ specific ignores
|
||||||
.godot/
|
.godot/
|
||||||
|
Build/
|
||||||
|
|
BIN
Flow State.wav
Normal file
BIN
Flow State.wav
Normal file
Binary file not shown.
24
Flow State.wav.import
Normal file
24
Flow State.wav.import
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="wav"
|
||||||
|
type="AudioStreamWAV"
|
||||||
|
uid="uid://d3icnl4vjbbt7"
|
||||||
|
path="res://.godot/imported/Flow State.wav-724bf1be86d97bd6a743676d78bb1bd5.sample"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Flow State.wav"
|
||||||
|
dest_files=["res://.godot/imported/Flow State.wav-724bf1be86d97bd6a743676d78bb1bd5.sample"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
force/8_bit=false
|
||||||
|
force/mono=false
|
||||||
|
force/max_rate=false
|
||||||
|
force/max_rate_hz=44100
|
||||||
|
edit/trim=false
|
||||||
|
edit/normalize=false
|
||||||
|
edit/loop_mode=0
|
||||||
|
edit/loop_begin=0
|
||||||
|
edit/loop_end=-1
|
||||||
|
compress/mode=0
|
|
@ -11,6 +11,7 @@ func _ready():
|
||||||
if has_config:
|
if has_config:
|
||||||
$Menu/Username.text = config.get_value("config", "username")
|
$Menu/Username.text = config.get_value("config", "username")
|
||||||
$Menu/Controls.selected = 0 if config.get_value("config", "relative_controls") else 1
|
$Menu/Controls.selected = 0 if config.get_value("config", "relative_controls") else 1
|
||||||
|
$Menu/Character.selected = CHARACTERS.find(config.get_value("gameplay", "class"))
|
||||||
|
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
check_valid("")
|
check_valid("")
|
||||||
|
|
1
build.sh
Normal file
1
build.sh
Normal file
|
@ -0,0 +1 @@
|
||||||
|
godot --headless --export-release Web Build/index.html
|
BIN
godot
Executable file
BIN
godot
Executable file
Binary file not shown.
|
@ -1,4 +1,4 @@
|
||||||
[gd_scene load_steps=110 format=3 uid="uid://bmd4m7lqj4v0x"]
|
[gd_scene load_steps=111 format=3 uid="uid://bmd4m7lqj4v0x"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://main.gd" id="1_3dydx"]
|
[ext_resource type="Script" path="res://main.gd" id="1_3dydx"]
|
||||||
[ext_resource type="Script" path="res://Spawner.gd" id="1_ifu8g"]
|
[ext_resource type="Script" path="res://Spawner.gd" id="1_ifu8g"]
|
||||||
|
@ -20,6 +20,7 @@
|
||||||
[ext_resource type="Script" path="res://Stopwatch.gd" id="13_xhnp2"]
|
[ext_resource type="Script" path="res://Stopwatch.gd" id="13_xhnp2"]
|
||||||
[ext_resource type="Script" path="res://Leaderboard.gd" id="14_v1elq"]
|
[ext_resource type="Script" path="res://Leaderboard.gd" id="14_v1elq"]
|
||||||
[ext_resource type="PackedScene" uid="uid://4sdwatj6up8i" path="res://tar.tscn" id="19_8258f"]
|
[ext_resource type="PackedScene" uid="uid://4sdwatj6up8i" path="res://tar.tscn" id="19_8258f"]
|
||||||
|
[ext_resource type="AudioStream" uid="uid://d3icnl4vjbbt7" path="res://Flow State.wav" id="21_7tjgd"]
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_ur7l5"]
|
[sub_resource type="Resource" id="Resource_ur7l5"]
|
||||||
script = ExtResource("4_um0x7")
|
script = ExtResource("4_um0x7")
|
||||||
|
@ -886,6 +887,10 @@ script = ExtResource("13_lkv81")
|
||||||
process_mode = 3
|
process_mode = 3
|
||||||
script = ExtResource("1_k8sg3")
|
script = ExtResource("1_k8sg3")
|
||||||
|
|
||||||
|
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
||||||
|
stream = ExtResource("21_7tjgd")
|
||||||
|
autoplay = true
|
||||||
|
|
||||||
[connection signal="wave_complete" from="Spawner" to="UI/Stopwatch" method="wave_finished"]
|
[connection signal="wave_complete" from="Spawner" to="UI/Stopwatch" method="wave_finished"]
|
||||||
[connection signal="timeout" from="Spawner/Timer" to="Spawner" method="check_enemies_loop"]
|
[connection signal="timeout" from="Spawner/Timer" to="Spawner" method="check_enemies_loop"]
|
||||||
[connection signal="visibility_changed" from="GameOver/Leaderboard" to="GameOver/Leaderboard" method="submit_score"]
|
[connection signal="visibility_changed" from="GameOver/Leaderboard" to="GameOver/Leaderboard" method="submit_score"]
|
||||||
|
|
|
@ -1,11 +1,18 @@
|
||||||
extends "res://player.gd"
|
extends "res://player.gd"
|
||||||
|
|
||||||
var can_damage = false
|
var can_damage = false
|
||||||
|
var shooting = false
|
||||||
|
|
||||||
var idle_texture = preload("res://dotted line.png")
|
var idle_texture = preload("res://dotted line.png")
|
||||||
var aiming_texture = preload("res://laser_idle.png")
|
var aiming_texture = preload("res://laser_idle.png")
|
||||||
var active_texture = preload("res://ircle_laser.gif")
|
var active_texture = preload("res://ircle_laser.gif")
|
||||||
|
|
||||||
|
func _ready():
|
||||||
|
update_animation()
|
||||||
|
if config.load("user://settings.cfg") == OK:
|
||||||
|
absolute_movement = not config.get_value("config", "relative_controls")
|
||||||
|
speed = 750
|
||||||
|
|
||||||
func update_animation():
|
func update_animation():
|
||||||
if moving:
|
if moving:
|
||||||
$Engine.play("active")
|
$Engine.play("active")
|
||||||
|
@ -13,7 +20,7 @@ func update_animation():
|
||||||
$Engine.play("idle")
|
$Engine.play("idle")
|
||||||
|
|
||||||
func _input(event):
|
func _input(event):
|
||||||
if event.is_action_pressed("shoot"):
|
if event.is_action_pressed("shoot") and speed != 0:
|
||||||
$Laser.fire()
|
$Laser.fire()
|
||||||
fire_laser()
|
fire_laser()
|
||||||
|
|
||||||
|
@ -21,37 +28,35 @@ func _process(delta):
|
||||||
|
|
||||||
if can_damage:
|
if can_damage:
|
||||||
var body = $Laser/RayCast2D.get_collider()
|
var body = $Laser/RayCast2D.get_collider()
|
||||||
if body != null and body.is_in_group("destructible"):
|
if body != null and (body.is_in_group("destructible") or body.name == "Entagon"):
|
||||||
if body.has_method("destroy"):
|
if body.has_method("destroy"):
|
||||||
body.destroy()
|
body.destroy()
|
||||||
else:
|
else:
|
||||||
body.queue_free()
|
body.queue_free()
|
||||||
can_damage = false
|
|
||||||
|
|
||||||
func fire_laser():
|
func fire_laser():
|
||||||
var tween = get_tree().create_tween()
|
var tween = get_tree().create_tween()
|
||||||
frozen = true
|
speed = 0
|
||||||
$Body.play("shoot")
|
$Body.play("shoot")
|
||||||
tween.set_parallel(true)
|
tween.set_parallel(true)
|
||||||
tween.tween_callback(set_laser_texture.bind(aiming_texture))
|
tween.tween_callback(set_laser_texture.bind(aiming_texture))
|
||||||
tween.tween_property($Laser, "modulate", Color.WHITE, 1).set_ease(Tween.EASE_IN)
|
tween.tween_property($Laser, "modulate", Color.WHITE, 1).set_ease(Tween.EASE_IN)
|
||||||
tween.tween_callback(play_with_delay)
|
tween.tween_callback(play_with_delay)
|
||||||
tween.set_parallel(false)
|
tween.set_parallel(false)
|
||||||
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($Laser.fire)
|
tween.tween_callback($Laser.fire)
|
||||||
|
tween.tween_property(self, "can_damage", true, 0)
|
||||||
tween.tween_interval(0.2)
|
tween.tween_interval(0.2)
|
||||||
tween.tween_callback(can_shoot.bind(false))
|
tween.tween_property(self, "can_damage", false, 0)
|
||||||
tween.tween_callback(set_laser_texture.bind(aiming_texture))
|
tween.tween_callback(set_laser_texture.bind(aiming_texture))
|
||||||
tween.set_parallel(true)
|
tween.set_parallel(true)
|
||||||
tween.tween_property($Laser, "modulate", Color(Color.WHITE, 0.2), 0.2).set_ease(Tween.EASE_OUT)
|
tween.tween_property($Laser, "modulate", Color(Color.WHITE, 0.2), 0.2).set_ease(Tween.EASE_OUT)
|
||||||
tween.set_parallel(false)
|
tween.set_parallel(false)
|
||||||
tween.tween_callback(set_laser_texture.bind(idle_texture))
|
tween.tween_callback(set_laser_texture.bind(idle_texture))
|
||||||
tween.tween_callback($Body.play.bind("idle"))
|
tween.tween_callback($Body.play.bind("idle"))
|
||||||
tween.tween_property(self, "frozen", false, 0)
|
tween.tween_property(self, "speed", 750, 0)
|
||||||
|
|
||||||
func can_shoot(yn):
|
|
||||||
can_damage = yn
|
|
||||||
|
|
||||||
func play_with_delay():
|
func play_with_delay():
|
||||||
await get_tree().create_timer(0.9).timeout
|
await get_tree().create_timer(0.9).timeout
|
||||||
|
|
|
@ -162,6 +162,7 @@ radius = 14.0
|
||||||
height = 40.0
|
height = 40.0
|
||||||
|
|
||||||
[node name="Player" instance=ExtResource("1_4dgnt")]
|
[node name="Player" instance=ExtResource("1_4dgnt")]
|
||||||
|
scale = Vector2(2, 2)
|
||||||
lock_rotation = true
|
lock_rotation = true
|
||||||
script = ExtResource("2_axxxt")
|
script = ExtResource("2_axxxt")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue