Small Godot Wild Jam game
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Dialogue popup and house type setup

TODO connect the signal from the houses to the gameplay script

Raptor 1e82baae 91925f4f

+124 -19
Assets/fonts/text-font/MrsSaintDelafield-Regular.ttf

This is a binary file and will not be displayed.

+35
Assets/fonts/text-font/MrsSaintDelafield-Regular.ttf.import
··· 1 + [remap] 2 + 3 + importer="font_data_dynamic" 4 + type="FontFile" 5 + uid="uid://dh20y7wl6p0hh" 6 + path="res://.godot/imported/MrsSaintDelafield-Regular.ttf-016d3421f6797bef4acf290b88aa2905.fontdata" 7 + 8 + [deps] 9 + 10 + source_file="res://Assets/fonts/text-font/MrsSaintDelafield-Regular.ttf" 11 + dest_files=["res://.godot/imported/MrsSaintDelafield-Regular.ttf-016d3421f6797bef4acf290b88aa2905.fontdata"] 12 + 13 + [params] 14 + 15 + Rendering=null 16 + antialiasing=1 17 + generate_mipmaps=false 18 + disable_embedded_bitmaps=true 19 + multichannel_signed_distance_field=false 20 + msdf_pixel_range=8 21 + msdf_size=48 22 + allow_system_fallback=true 23 + force_autohinter=false 24 + hinting=1 25 + subpixel_positioning=4 26 + keep_rounding_remainders=true 27 + oversampling=0.0 28 + Fallbacks=null 29 + fallbacks=[] 30 + Compress=null 31 + compress=true 32 + preload=[] 33 + language_support={} 34 + script_support={} 35 + opentype_features={}
+73
Scenes/dialogue/dialogue_container.tscn
··· 1 + [gd_scene format=3 uid="uid://bld26qu1653j7"] 2 + 3 + [node name="DialogueContainer" type="Control"] 4 + custom_minimum_size = Vector2(0, 192) 5 + layout_mode = 3 6 + anchors_preset = 12 7 + anchor_top = 1.0 8 + anchor_right = 1.0 9 + anchor_bottom = 1.0 10 + offset_top = -360.0 11 + grow_horizontal = 2 12 + grow_vertical = 0 13 + size_flags_vertical = 4 14 + 15 + [node name="HBoxContainer" type="HBoxContainer" parent="."] 16 + layout_mode = 1 17 + anchors_preset = 7 18 + anchor_left = 0.5 19 + anchor_top = 1.0 20 + anchor_right = 0.5 21 + anchor_bottom = 1.0 22 + offset_left = -556.0 23 + offset_top = -370.0 24 + offset_right = 556.0 25 + grow_horizontal = 2 26 + grow_vertical = 0 27 + alignment = 1 28 + 29 + [node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"] 30 + custom_minimum_size = Vector2(720, 0) 31 + layout_mode = 2 32 + theme_override_constants/separation = 24 33 + 34 + [node name="NpcNameLabel" type="Label" parent="HBoxContainer/VBoxContainer"] 35 + unique_name_in_owner = true 36 + layout_mode = 2 37 + theme_override_font_sizes/font_size = 32 38 + text = "[NPC NAME]" 39 + 40 + [node name="NpcTextLabel" type="Label" parent="HBoxContainer/VBoxContainer"] 41 + unique_name_in_owner = true 42 + layout_mode = 2 43 + size_flags_vertical = 3 44 + text = "[DIALOGUE]" 45 + 46 + [node name="FactListlabel" type="Label" parent="HBoxContainer/VBoxContainer"] 47 + unique_name_in_owner = true 48 + layout_mode = 2 49 + size_flags_vertical = 3 50 + text = "[FACT LIST]" 51 + 52 + [node name="VBoxContainer2" type="VBoxContainer" parent="HBoxContainer"] 53 + layout_mode = 2 54 + 55 + [node name="Label" type="Label" parent="HBoxContainer/VBoxContainer2"] 56 + layout_mode = 2 57 + text = "Who will you send?" 58 + horizontal_alignment = 1 59 + 60 + [node name="HBoxContainer" type="HBoxContainer" parent="HBoxContainer/VBoxContainer2"] 61 + custom_minimum_size = Vector2(360, 300) 62 + layout_mode = 2 63 + alignment = 2 64 + 65 + [node name="ColorRect" type="ColorRect" parent="HBoxContainer/VBoxContainer2/HBoxContainer"] 66 + custom_minimum_size = Vector2(192, 0) 67 + layout_mode = 2 68 + color = Color(0.2106, 0.70408, 0.78, 1) 69 + 70 + [node name="ColorRect2" type="ColorRect" parent="HBoxContainer/VBoxContainer2/HBoxContainer"] 71 + custom_minimum_size = Vector2(192, 0) 72 + layout_mode = 2 73 + color = Color(1, 0.45, 0.45, 1)
+4 -3
Scenes/gameplay/gameplay.gd
··· 5 5 @onready var random_event_timer: Timer = $Timers/RandomEventTimer 6 6 7 7 @onready var possible_event_nodes: Node2D = %PossibleEventNodes 8 + @onready var dialogue_container: Control = %DialogueContainer 8 9 9 - const START_TIMER_WAIT_TIME: float = 2.0 #should be 10.0 10 + const START_TIMER_WAIT_TIME: float = 3.0 11 + const EVENT_WAIT_TIME: float = 5.0 10 12 #endregion 11 13 12 14 # `pre_start()` is called when a scene is loaded. ··· 60 62 #print("Selected: " + str(selected_house.name)) 61 63 62 64 63 - 64 65 func _on_population_status_update_timer_timeout() -> void: 65 - Global.people_sick += randi() % 5 + 1 66 + Global.people_sick += randi() % int(EVENT_WAIT_TIME) + 1
+8 -3
Scenes/gameplay/gameplay.tscn
··· 1 - [gd_scene load_steps=17 format=3 uid="uid://4fyoq8npekf0"] 1 + [gd_scene load_steps=18 format=3 uid="uid://4fyoq8npekf0"] 2 2 3 3 [ext_resource type="PackedScene" uid="uid://barl4q1kugrmm" path="res://Scenes/gameplay/pause-layer/pause-layer.tscn" id="2"] 4 + [ext_resource type="PackedScene" uid="uid://bld26qu1653j7" path="res://Scenes/dialogue/dialogue_container.tscn" id="3_2klpb"] 4 5 [ext_resource type="PackedScene" uid="uid://chise44bjuof6" path="res://Scenes/houses/noble_house.tscn" id="4_1f1h4"] 5 6 [ext_resource type="Script" uid="uid://bhgboyg8ipyan" path="res://addons/TopDownCamera2D/top_down_camera_2d.gd" id="4_1f1us"] 6 7 [ext_resource type="Texture2D" uid="uid://s1xbs2m0k5ld" path="res://Assets/sprites/town_assets/horizontal_wall.png" id="4_yl1gb"] ··· 28 29 offset_right = -640.0 29 30 offset_bottom = -360.0 30 31 32 + [node name="DialogueContainer" parent="UI Layer" instance=ExtResource("3_2klpb")] 33 + unique_name_in_owner = true 34 + visible = false 35 + 31 36 [node name="PauseLayer" parent="." instance=ExtResource("2")] 32 37 layer = 100 33 38 visible = false ··· 42 47 boundary_X = 3600.0 43 48 boundary_Y = 2400.0 44 49 metadata/_custom_type_script = "uid://bhgboyg8ipyan" 45 - 46 - [node name="PossibleEventNodes" type="Node2D" parent="."] 47 50 48 51 [node name="Timers" type="Node" parent="."] 49 52 ··· 127 130 128 131 [node name="NobleHouse3" parent="Map/PossibleEventNodes" instance=ExtResource("4_1f1h4")] 129 132 position = Vector2(-1162, -1635) 133 + house_type = 1 130 134 131 135 [node name="NobleHouse" parent="Map/PossibleEventNodes" instance=ExtResource("4_1f1h4")] 132 136 position = Vector2(1325, -1692) 137 + house_type = 1 133 138 134 139 [node name="Walls" type="Node2D" parent="Map"] 135 140
+3
Scenes/house_base/house_base.tscn
··· 7 7 8 8 @onready var event_signal_ping: Area2D = $EventSignalPing 9 9 var has_event: bool = false 10 + signal is_clicked() 11 + 12 + @export var house_type: Global.HouseType 10 13 11 14 func _ready() -> void: 12 15 event_signal_ping.visible = false
-13
Scenes/ui/ui.tscn
··· 128 128 layout_mode = 2 129 129 text = "[num]" 130 130 horizontal_alignment = 1 131 - 132 - [node name="DialogueContainer" type="Control" parent="CanvasLayer"] 133 - unique_name_in_owner = true 134 - custom_minimum_size = Vector2(0, 192) 135 - layout_mode = 3 136 - anchors_preset = 12 137 - anchor_top = 1.0 138 - anchor_right = 1.0 139 - anchor_bottom = 1.0 140 - offset_top = -360.0 141 - grow_horizontal = 2 142 - grow_vertical = 0 143 - size_flags_vertical = 4
+1
Scripts/global.gd
··· 13 13 var available_priests: int = 3 14 14 15 15 enum UnitType {DOCTOR, PRIEST} 16 + enum HouseType {PEASANT, NOBLE} 16 17 #endregion 17 18 18 19 func _init() -> void: