-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
109 changed files
with
1,956 additions
and
6 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
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
Binary file added
BIN
+4.99 MB
prototypes/game-prompt7-burghardt-goergens/A Flute's Mourning - Aakash Gandhi.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions
19
prototypes/game-prompt7-burghardt-goergens/A Flute's Mourning - Aakash Gandhi.mp3.import
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,19 @@ | ||
[remap] | ||
|
||
importer="mp3" | ||
type="AudioStreamMP3" | ||
uid="uid://ctql0mmf4cuxl" | ||
path="res://.godot/imported/A Flute's Mourning - Aakash Gandhi.mp3-23c4c71a7d106324f507544323ce2d44.mp3str" | ||
|
||
[deps] | ||
|
||
source_file="res://prototypes/game-prompt7-burghardt-goergens/A Flute's Mourning - Aakash Gandhi.mp3" | ||
dest_files=["res://.godot/imported/A Flute's Mourning - Aakash Gandhi.mp3-23c4c71a7d106324f507544323ce2d44.mp3str"] | ||
|
||
[params] | ||
|
||
loop=false | ||
loop_offset=0 | ||
bpm=0 | ||
beat_count=0 | ||
bar_beats=4 |
Empty file.
Empty file.
46 changes: 46 additions & 0 deletions
46
prototypes/game-prompt7-burghardt-goergens/ArrowButton.tscn
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,46 @@ | ||
[gd_scene load_steps=6 format=3 uid="uid://c16doa3wcrdwc"] | ||
|
||
[ext_resource type="SpriteFrames" uid="uid://dgdrduobxxxv6" path="res://prototypes/game-prompt7-burghardt-goergens/Frames/arrow_up_frames.tres" id="1"] | ||
[ext_resource type="Script" path="res://prototypes/game-prompt7-burghardt-goergens/Scripts/ArrowButton.gd" id="2"] | ||
|
||
[sub_resource type="RectangleShape2D" id="1"] | ||
size = Vector2(16.7529, 4) | ||
|
||
[sub_resource type="RectangleShape2D" id="2"] | ||
size = Vector2(16.7529, 16) | ||
|
||
[sub_resource type="RectangleShape2D" id="3"] | ||
size = Vector2(16.7529, 24) | ||
|
||
[node name="ArrowButton" type="AnimatedSprite2D"] | ||
scale = Vector2(2.26827, 2.33195) | ||
sprite_frames = ExtResource("1") | ||
script = ExtResource("2") | ||
|
||
[node name="PerfectArea" type="Area2D" parent="."] | ||
scale = Vector2(1, 1.48513) | ||
|
||
[node name="CollisionShape2D" type="CollisionShape2D" parent="PerfectArea"] | ||
shape = SubResource("1") | ||
|
||
[node name="GoodArea" type="Area2D" parent="."] | ||
|
||
[node name="CollisionShape2D" type="CollisionShape2D" parent="GoodArea"] | ||
shape = SubResource("2") | ||
|
||
[node name="OkayArea" type="Area2D" parent="."] | ||
|
||
[node name="CollisionShape2D" type="CollisionShape2D" parent="OkayArea"] | ||
shape = SubResource("3") | ||
|
||
[node name="PushTimer" type="Timer" parent="."] | ||
wait_time = 0.1 | ||
one_shot = true | ||
|
||
[connection signal="area_entered" from="PerfectArea" to="." method="_on_PerfectArea_area_entered"] | ||
[connection signal="area_exited" from="PerfectArea" to="." method="_on_PerfectArea_area_exited"] | ||
[connection signal="area_entered" from="GoodArea" to="." method="_on_GoodArea_area_entered"] | ||
[connection signal="area_exited" from="GoodArea" to="." method="_on_GoodArea_area_exited"] | ||
[connection signal="area_entered" from="OkayArea" to="." method="_on_OkayArea_area_entered"] | ||
[connection signal="area_exited" from="OkayArea" to="." method="_on_OkayArea_area_exited"] | ||
[connection signal="timeout" from="PushTimer" to="." method="_on_PushTimer_timeout"] |
Empty file.
Empty file.
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,11 @@ | ||
[gd_scene load_steps=2 format=3 uid="uid://bnp0cjb83ux6n"] | ||
|
||
[ext_resource type="Script" path="res://prototypes/game-prompt7-burghardt-goergens/Scripts/Conductor.gd" id="1"] | ||
|
||
[node name="Conductor" type="AudioStreamPlayer"] | ||
script = ExtResource("1") | ||
|
||
[node name="StartTimer" type="Timer" parent="."] | ||
one_shot = true | ||
|
||
[connection signal="timeout" from="StartTimer" to="." method="_on_StartTimer_timeout"] |
Empty file.
18 changes: 18 additions & 0 deletions
18
prototypes/game-prompt7-burghardt-goergens/Frames/arrow_left_frames.tres
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,18 @@ | ||
[gd_resource type="SpriteFrames" load_steps=3 format=3 uid="uid://vns7yarrtrkc"] | ||
|
||
[ext_resource type="Texture2D" uid="uid://earo8r765qij" path="res://prototypes/game-prompt7-burghardt-goergens/Sprites/game/arrow_button/left/arrow_button_left1.png" id="1_sq0xd"] | ||
[ext_resource type="Texture2D" uid="uid://cmo5g42c5vwai" path="res://prototypes/game-prompt7-burghardt-goergens/Sprites/game/arrow_button/left/arrow_button_left2.png" id="2_ujg0u"] | ||
|
||
[resource] | ||
animations = [{ | ||
"frames": [{ | ||
"duration": 1.0, | ||
"texture": ExtResource("1_sq0xd") | ||
}, { | ||
"duration": 1.0, | ||
"texture": ExtResource("2_ujg0u") | ||
}], | ||
"loop": true, | ||
"name": &"default", | ||
"speed": 5.0 | ||
}] |
Empty file.
18 changes: 18 additions & 0 deletions
18
prototypes/game-prompt7-burghardt-goergens/Frames/arrow_right_frames.tres
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,18 @@ | ||
[gd_resource type="SpriteFrames" load_steps=3 format=3 uid="uid://bix6tinubj0fg"] | ||
|
||
[ext_resource type="Texture2D" uid="uid://c131w343atepv" path="res://prototypes/game-prompt7-burghardt-goergens/Sprites/game/arrow_button/right/arrow_button_right1.png" id="1_qlpux"] | ||
[ext_resource type="Texture2D" uid="uid://dqfdbytqaoj0a" path="res://prototypes/game-prompt7-burghardt-goergens/Sprites/game/arrow_button/right/arrow_button_right2.png" id="2_vl386"] | ||
|
||
[resource] | ||
animations = [{ | ||
"frames": [{ | ||
"duration": 1.0, | ||
"texture": ExtResource("1_qlpux") | ||
}, { | ||
"duration": 1.0, | ||
"texture": ExtResource("2_vl386") | ||
}], | ||
"loop": true, | ||
"name": &"default", | ||
"speed": 5.0 | ||
}] |
Empty file.
18 changes: 18 additions & 0 deletions
18
prototypes/game-prompt7-burghardt-goergens/Frames/arrow_up_frames.tres
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,18 @@ | ||
[gd_resource type="SpriteFrames" load_steps=3 format=3 uid="uid://dgdrduobxxxv6"] | ||
|
||
[ext_resource type="Texture2D" uid="uid://d27b7xr7bfapt" path="res://prototypes/game-prompt7-burghardt-goergens/Sprites/game/arrow_button/up/arrow_button_up1.png" id="1_p7u0a"] | ||
[ext_resource type="Texture2D" uid="uid://c415y6m2y8p17" path="res://prototypes/game-prompt7-burghardt-goergens/Sprites/game/arrow_button/up/arrow_button_up2.png" id="2_cthaf"] | ||
|
||
[resource] | ||
animations = [{ | ||
"frames": [{ | ||
"duration": 1.0, | ||
"texture": ExtResource("1_p7u0a") | ||
}, { | ||
"duration": 1.0, | ||
"texture": ExtResource("2_cthaf") | ||
}], | ||
"loop": true, | ||
"name": &"default", | ||
"speed": 5.0 | ||
}] |
Empty file.
22 changes: 22 additions & 0 deletions
22
prototypes/game-prompt7-burghardt-goergens/Frames/note_frames.tres
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,22 @@ | ||
[gd_resource type="SpriteFrames" load_steps=4 format=3 uid="uid://bclugeou38i3d"] | ||
|
||
[ext_resource type="Texture2D" uid="uid://db0roymvschr7" path="res://prototypes/game-prompt7-burghardt-goergens/Sprites/game/arrow_button/left/arrow_button_left3.png" id="1_85eec"] | ||
[ext_resource type="Texture2D" uid="uid://cdbuemxv5ycy7" path="res://prototypes/game-prompt7-burghardt-goergens/Sprites/game/arrow_button/up/arrow_button_up3.png" id="2_fhtoa"] | ||
[ext_resource type="Texture2D" uid="uid://b2wlh4t7sy1y0" path="res://prototypes/game-prompt7-burghardt-goergens/Sprites/game/arrow_button/right/arrow_button_right3.png" id="3_bv3io"] | ||
|
||
[resource] | ||
animations = [{ | ||
"frames": [{ | ||
"duration": 1.0, | ||
"texture": ExtResource("1_85eec") | ||
}, { | ||
"duration": 1.0, | ||
"texture": ExtResource("2_fhtoa") | ||
}, { | ||
"duration": 1.0, | ||
"texture": ExtResource("3_bv3io") | ||
}], | ||
"loop": true, | ||
"name": &"default", | ||
"speed": 5.0 | ||
}] |
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
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,66 @@ | ||
extends CharacterBody2D | ||
|
||
var hitNote = false | ||
var attacked = false | ||
var labelPosition | ||
var hitLabelPosition | ||
# Called when the node enters the scene tree for the first time. | ||
func _ready(): | ||
randomize() | ||
$Timer.start(5) | ||
labelPosition = $LabelContainer.position | ||
hitLabelPosition = $HitLabelContainer.position | ||
$HitLabelContainer/Label.modulate = Color("ff0000") | ||
|
||
func _physics_process(delta): | ||
if hitNote: | ||
$LabelContainer.position.y -= 100 * delta | ||
$LabelContainer.position.x -= 75 * delta | ||
|
||
func onAttacked(accuracy): | ||
$HealthBarBehavior.damage(5 * accuracy) | ||
attacked = true | ||
if accuracy == 3: | ||
$HitLabelContainer/Label.text = "!!!" | ||
elif accuracy == 2: | ||
$HitLabelContainer/Label.text = "!!" | ||
elif accuracy == 1: | ||
$HitLabelContainer/Label.text = "!" | ||
$HitLabelTimer.start(0.2) | ||
|
||
|
||
func _on_timer_timeout(): | ||
var randScore = randi_range(1,3) | ||
hitNote = true | ||
onHeal(randScore) | ||
onFight(randScore) | ||
if randScore == 3: | ||
$LabelContainer/Label.text = "GREAT" | ||
$LabelContainer/Label.modulate = Color("f6d6bd") | ||
elif randScore == 2: | ||
$LabelContainer/Label.text = "GOOD" | ||
$LabelContainer/Label.modulate = Color("c3a38a") | ||
elif randScore == 1: | ||
$LabelContainer/Label.text = "OKAY" | ||
$LabelContainer/Label.modulate = Color("997577") | ||
|
||
var randTime = randi_range(1,2) | ||
$Timer.start(randTime) | ||
$LabelTimer.start(0.5) | ||
|
||
|
||
func _on_label_timer_timeout(): | ||
hitNote = false | ||
$LabelContainer/Label.text = "" | ||
$LabelContainer.position = labelPosition | ||
|
||
func _on_hit_label_timer_timeout(): | ||
attacked = false | ||
$HitLabelContainer/Label.text = "" | ||
$HitLabelContainer.position = hitLabelPosition | ||
|
||
func onHeal(accuracy): | ||
$HealthBarBehavior.heal(5 * accuracy) | ||
|
||
func onFight(accuracy): | ||
get_parent().attackPlayer(accuracy) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions
34
prototypes/game-prompt7-burghardt-goergens/Hero.png.import
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,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://bqpkkx31f1l5s" | ||
path="res://.godot/imported/Hero.png-dd297d4a39ff957ef0ad16d0878aee27.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://prototypes/game-prompt7-burghardt-goergens/Hero.png" | ||
dest_files=["res://.godot/imported/Hero.png-dd297d4a39ff957ef0ad16d0878aee27.ctex"] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/high_quality=false | ||
compress/lossy_quality=0.7 | ||
compress/hdr_compression=1 | ||
compress/normal_map=0 | ||
compress/channel_pack=0 | ||
mipmaps/generate=false | ||
mipmaps/limit=-1 | ||
roughness/mode=0 | ||
roughness/src_normal="" | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/normal_map_invert_y=false | ||
process/hdr_as_srgb=false | ||
process/hdr_clamp_exposure=false | ||
process/size_limit=0 | ||
detect_3d/compress_to=1 |
Oops, something went wrong.