It's a game! (kinda)
-added cupcake counting system -added basic shop with one working upgrade, one benign upgrade, and one broken upgrade -added proper UI basics -added right click to toggle attached horse (buggy)main
parent
f50997b98f
commit
e04046b4b4
@ -1,3 +1,3 @@
|
||||
[folding]
|
||||
|
||||
sections_unfolded=PackedStringArray()
|
||||
sections_unfolded=PackedStringArray("Resource")
|
||||
|
@ -1,5 +1,5 @@
|
||||
[folding]
|
||||
|
||||
node_unfolds=[NodePath("."), PackedStringArray("Transform", "Material", "Texture", "Ordering", "Visibility", "Editor Description", "Process", "ccVanilla"), NodePath("Location"), PackedStringArray("Visibility"), NodePath("PlayArea"), PackedStringArray("Input", "Collision"), NodePath("PlayArea/Cupcake"), PackedStringArray("Collision"), NodePath("PlayArea/CollisionShape2D"), PackedStringArray("Transform", "Visibility")]
|
||||
resource_unfolds=["res://Scenes/game_world.tscn::RectangleShape2D_sh03e", PackedStringArray()]
|
||||
node_unfolds=[NodePath("."), PackedStringArray("Transform", "Material", "Texture", "Ordering", "Visibility", "Editor Description", "Process", "ccVanilla"), NodePath("Location"), PackedStringArray("Visibility"), NodePath("Upgrades"), PackedStringArray("Layer"), NodePath("Cupcakes/Cupcake"), PackedStringArray("Collision"), NodePath("PlayArea"), PackedStringArray("Input", "Collision", "Visibility"), NodePath("PlayArea/CollisionShape2D"), PackedStringArray("Transform", "shape")]
|
||||
resource_unfolds=["res://Scenes/game_world.tscn::RectangleShape2D_g5fj2", PackedStringArray()]
|
||||
nodes_folded=[]
|
||||
|
@ -1,35 +1,51 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://dlypem0porccr"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://dlypem0porccr"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/game_world.gd" id="1_c2sx0"]
|
||||
[ext_resource type="Script" path="res://Scripts/Cupcake Spawn Timer.gd" id="2_bjylp"]
|
||||
[ext_resource type="PackedScene" uid="uid://dswkgkor3yejo" path="res://Scenes/Cupcakes/cupcake.tscn" id="2_fi3r2"]
|
||||
[ext_resource type="PackedScene" uid="uid://cpv7y67qtmino" path="res://Scenes/UI/upgrades.tscn" id="2_vdy4r"]
|
||||
[ext_resource type="Script" path="res://Scripts/PlayArea.gd" id="3_3x1i6"]
|
||||
[ext_resource type="PackedScene" uid="uid://c4dtrk2kooa6q" path="res://Scenes/UI/ingame_ui.tscn" id="3_wm6l6"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_sh03e"]
|
||||
size = Vector2(1943, 1102)
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_g5fj2"]
|
||||
size = Vector2(1841, 1003)
|
||||
|
||||
[node name="GameWorld" type="Node2D"]
|
||||
script = ExtResource("1_c2sx0")
|
||||
|
||||
[node name="Location" type="Node2D" parent="."]
|
||||
|
||||
[node name="Upgrades" parent="." instance=ExtResource("2_vdy4r")]
|
||||
visible = false
|
||||
|
||||
[node name="InGameUI" parent="." instance=ExtResource("3_wm6l6")]
|
||||
|
||||
[node name="Cupcake Spawn Timer" type="Timer" parent="."]
|
||||
wait_time = 2.0
|
||||
wait_time = 5.0
|
||||
autostart = true
|
||||
script = ExtResource("2_bjylp")
|
||||
|
||||
[node name="Cupcakes" type="Node2D" parent="."]
|
||||
|
||||
[node name="Cupcake" parent="Cupcakes" instance=ExtResource("2_fi3r2")]
|
||||
position = Vector2(283, -176)
|
||||
|
||||
[node name="PlayArea" type="Area2D" parent="."]
|
||||
light_mask = 3
|
||||
visibility_layer = 3
|
||||
collision_layer = 3
|
||||
collision_mask = 3
|
||||
script = ExtResource("3_3x1i6")
|
||||
|
||||
[node name="Cupcake" parent="PlayArea" instance=ExtResource("2_fi3r2")]
|
||||
position = Vector2(83, -168)
|
||||
collision_layer = 1
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayArea"]
|
||||
position = Vector2(961.5, 541)
|
||||
shape = SubResource("RectangleShape2D_sh03e")
|
||||
position = Vector2(961.5, 533.5)
|
||||
shape = SubResource("RectangleShape2D_g5fj2")
|
||||
|
||||
[connection signal="condensedCupcake1" from="." to="Cupcakes/Cupcake" method="_on_game_world_condensed_cupcake_1"]
|
||||
[connection signal="condensedCupcake1" from="Upgrades" to="." method="_on_upgrades_condensed_cupcake_1"]
|
||||
[connection signal="fasterCupcake" from="Upgrades" to="." method="_on_upgrades_faster_cupcake"]
|
||||
[connection signal="oneMoreCupcake" from="Upgrades" to="." method="_on_upgrades_one_more_cupcake"]
|
||||
[connection signal="timeout" from="Cupcake Spawn Timer" to="." method="_on_timeout"]
|
||||
[connection signal="area_exited" from="PlayArea" to="." method="_on_play_area_area_exited"]
|
||||
[connection signal="area_exited" from="PlayArea" to="PlayArea" method="_on_area_exited"]
|
||||
[connection signal="ccVanCollected" from="Cupcakes/Cupcake" to="." method="_on_cupcake_cc_van_collected"]
|
||||
[connection signal="body_exited" from="PlayArea" to="." method="_on_play_area_body_exited"]
|
||||
[connection signal="body_exited" from="PlayArea" to="Cupcakes/Cupcake" method="_on_play_area_body_exited"]
|
||||
|
@ -0,0 +1,25 @@
|
||||
extends CanvasLayer
|
||||
|
||||
@onready var upgrades = $"../Upgrades"
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
|
||||
|
||||
func _on_van_pressed():
|
||||
if upgrades.visible == false:
|
||||
upgrades.visible = true
|
||||
else:
|
||||
upgrades.visible = false
|
||||
|
||||
func _on_choc_pressed():
|
||||
if upgrades.visible == false:
|
||||
upgrades.visible = true
|
||||
else:
|
||||
upgrades.visible = false
|
@ -0,0 +1,28 @@
|
||||
extends CanvasLayer
|
||||
|
||||
signal oneMoreCupcake()
|
||||
signal fasterCupcake()
|
||||
signal condensedCupcake1()
|
||||
|
||||
|
||||
|
||||
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func _on_close_pressed():
|
||||
self.visible = false
|
||||
|
||||
|
||||
|
||||
func _on_buy_pressed():
|
||||
emit_signal("oneMoreCupcake")
|
||||
|
||||
|
||||
func _on_buy_van2_pressed():
|
||||
emit_signal("fasterCupcake")
|
||||
|
||||
|
||||
func _on_buy_van3_pressed():
|
||||
emit_signal("condensedCupcake1")
|
@ -1,11 +1,6 @@
|
||||
extends Node
|
||||
|
||||
var location
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
var ccVanNum = 0
|
||||
var ccChocNum = 0
|
||||
|
@ -0,0 +1,41 @@
|
||||
[preset.0]
|
||||
|
||||
name="Linux/X11"
|
||||
platform="Linux/X11"
|
||||
runnable=true
|
||||
dedicated_server=false
|
||||
custom_features=""
|
||||
export_filter="all_resources"
|
||||
include_filter=""
|
||||
exclude_filter=""
|
||||
export_path=""
|
||||
encryption_include_filters=""
|
||||
encryption_exclude_filters=""
|
||||
encrypt_pck=false
|
||||
encrypt_directory=false
|
||||
script_encryption_key=""
|
||||
|
||||
[preset.0.options]
|
||||
|
||||
custom_template/debug=""
|
||||
custom_template/release=""
|
||||
debug/export_console_script=1
|
||||
binary_format/embed_pck=false
|
||||
texture_format/bptc=false
|
||||
texture_format/s3tc=true
|
||||
texture_format/etc=false
|
||||
texture_format/etc2=false
|
||||
texture_format/no_bptc_fallbacks=true
|
||||
binary_format/architecture="x86_64"
|
||||
ssh_remote_deploy/enabled=false
|
||||
ssh_remote_deploy/host="user@host_ip"
|
||||
ssh_remote_deploy/port="22"
|
||||
ssh_remote_deploy/extra_args_ssh=""
|
||||
ssh_remote_deploy/extra_args_scp=""
|
||||
ssh_remote_deploy/run_script="#!/usr/bin/env bash
|
||||
export DISPLAY=:0
|
||||
unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\"
|
||||
\"{temp_dir}/{exe_name}\" {cmd_args}"
|
||||
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
|
||||
kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")
|
||||
rm -rf \"{temp_dir}\""
|
Loading…
Reference in New Issue