-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into patch-atomic-fixing-the-game-before-deploymen…
…t-02-22-2025-1740268642
- Loading branch information
Showing
5 changed files
with
54 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[gd_scene load_steps=4 format=3 uid="uid://c772pj7ujqm8m"] | ||
|
||
[ext_resource type="Script" path="res://scripts/planet.gd" id="1_x2mqs"] | ||
[ext_resource type="Texture2D" uid="uid://dcrqllgsdaexs" path="res://assets/audioknobs-ui/audioknobs/green-light-off.png" id="2_f0omh"] | ||
|
||
[sub_resource type="CircleShape2D" id="CircleShape2D_lpow5"] | ||
radius = 6.0 | ||
|
||
[node name="Planet" type="Area2D"] | ||
script = ExtResource("1_x2mqs") | ||
|
||
[node name="Sprite2D" type="Sprite2D" parent="."] | ||
texture = ExtResource("2_f0omh") | ||
|
||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."] | ||
shape = SubResource("CircleShape2D_lpow5") | ||
|
||
[connection signal="body_entered" from="." to="." method="_on_body_entered"] | ||
[connection signal="body_exited" from="." to="." method="_on_body_exited"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
extends Area2D | ||
|
||
#onready var shop := shop_path in the game scene | ||
|
||
|
||
func _on_body_entered(body) -> void: | ||
if body is Spaceship: | ||
# Show button that can open the shop | ||
# if clicked: | ||
# get_tree().paused = true - Pause game | ||
# shop.show() - Show shop | ||
# animation_shop_open.play() - Animation opening the shop | ||
pass | ||
|
||
# On the shop, when pressing the top right button, it exits/hide the shop/reverse the animation, | ||
# and then unpause the game | ||
|
||
func _on_body_exited(body): | ||
if body is Spaceship: | ||
# hide the button | ||
pass # Replace with function body. |
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