Skip to content

Commit

Permalink
finished mechnanic with wrong song
Browse files Browse the repository at this point in the history
  • Loading branch information
Firsttryy committed Dec 11, 2023
1 parent 2160e9c commit 8d6ccb7
Show file tree
Hide file tree
Showing 109 changed files with 1,956 additions and 6 deletions.
2 changes: 1 addition & 1 deletion addons/pronto/behaviors/ExportBehavior.gd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const DEFAULT_AUTHOR = "<Author>"
@export_category("Thumbnail")

## If true, a screenshot will be taken after a delay and saved as thumbnail.png
@export var take_screenshot: bool = true
@export var take_screenshot: bool = false

## The delay until the screenshot is taken
@export var wait_seconds: int = 1
Expand Down
2 changes: 1 addition & 1 deletion addons/pronto/helpers/Connection.gd
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func _trigger(from: Object, signal_name: String, argument_names: Array, argument
if target is CodeBehavior:
target.call(c.invoke, args)
else:
target.callv(c.invoke, args)
target.callv(c.idsnvoke, args)
args_string = ",".join(args.map(func (s): return str(s)))
else:
c._run_script(from, c.expression, values)
Expand Down
8 changes: 4 additions & 4 deletions examples/jumpnrun_template.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ tile_size = Vector2i(64, 64)
physics_layer_0/collision_layer = 1
sources/0 = SubResource("TileSetAtlasSource_rcppa")

[sub_resource type="Image" id="Image_omid6"]
[sub_resource type="Image" id="Image_iqqgg"]
data = {
"data": PackedByteArray(249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0),
"format": "RGBA8",
Expand All @@ -436,7 +436,7 @@ data = {
}

[sub_resource type="ImageTexture" id="ImageTexture_c1vcs"]
image = SubResource("Image_omid6")
image = SubResource("Image_iqqgg")

[sub_resource type="GDScript" id="GDScript_yljtb"]
script/source = "@tool
Expand Down Expand Up @@ -746,7 +746,7 @@ only_if = SubResource("Resource_qamp0")
deferred = false
enabled = true
[sub_resource type="Image" id="Image_guphm"]
[sub_resource type="Image" id="Image_m7ymj"]
data = {
"data": PackedByteArray(249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0),
"format": "RGBA8",
Expand All @@ -756,7 +756,7 @@ data = {
}
[sub_resource type="ImageTexture" id="ImageTexture_lnpfb"]
image = SubResource("Image_guphm")
image = SubResource("Image_m7ymj")
[sub_resource type="GDScript" id="GDScript_2i1aw"]
script/source = "@tool
Expand Down
2 changes: 2 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ config_version=5
[application]

config/name="pronto"
run/main_scene="res://prototypes/game-prompt7-burghardt-goergens/game-prompt7-burghardt-goergens.tscn"
config/features=PackedStringArray("4.2", "Forward Plus")
run/low_processor_mode=true
boot_splash/image="res://prototypes/game-prompt7-burghardt-goergens/thumbnail.png"
config/icon="res://icon.svg"

[autoload]
Expand Down
Binary file not shown.
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
46 changes: 46 additions & 0 deletions prototypes/game-prompt7-burghardt-goergens/ArrowButton.tscn
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.
11 changes: 11 additions & 0 deletions prototypes/game-prompt7-burghardt-goergens/Conductor.tscn
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.
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.
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.
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 prototypes/game-prompt7-burghardt-goergens/Frames/note_frames.tres
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.
44 changes: 44 additions & 0 deletions prototypes/game-prompt7-burghardt-goergens/Game.tscn

Large diffs are not rendered by default.

Empty file.
66 changes: 66 additions & 0 deletions prototypes/game-prompt7-burghardt-goergens/Hero.gd
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 prototypes/game-prompt7-burghardt-goergens/Hero.png.import
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
Loading

0 comments on commit 8d6ccb7

Please sign in to comment.