Skip to content

Commit b30b707

Browse files
committedMay 12, 2024
final release
1 parent 38423bf commit b30b707

23 files changed

+700
-60
lines changed
 

‎airbase_level.tscn

+3-3
Large diffs are not rendered by default.

‎background-2.png

1.85 MB
Loading

‎background-2.png.import

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://c7qymkpnxg64f"
6+
path="res://.godot/imported/background-2.png-25eb211aeca557fffe924c1549a64640.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://background-2.png"
14+
dest_files=["res://.godot/imported/background-2.png-25eb211aeca557fffe924c1549a64640.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1

‎background.png

1.56 MB
Loading

‎background.png.import

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://b2k0snq6fqags"
6+
path="res://.godot/imported/background.png-98289422cd7d93003950872a7b97021f.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://background.png"
14+
dest_files=["res://.godot/imported/background.png-98289422cd7d93003950872a7b97021f.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1

‎background.tscn

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
[gd_scene load_steps=14 format=3 uid="uid://42sssx0j24uh"]
2+
3+
[ext_resource type="Environment" uid="uid://ng6uovx21442" path="res://environment.tres" id="1_3n5k7"]
4+
[ext_resource type="CameraAttributesPractical" uid="uid://nf2n85jai8dd" path="res://camera_attributes_practical.tres" id="2_e3qwv"]
5+
[ext_resource type="Texture2D" uid="uid://dbvbmq8sygfw0" path="res://addons/kenney_particle_pack/smoke_01.png" id="3_ikhxp"]
6+
[ext_resource type="Texture2D" uid="uid://3lyybiyokess" path="res://addons/kenney_particle_pack/dirt_01.png" id="4_7xb8b"]
7+
[ext_resource type="PackedScene" uid="uid://di14cmdia7qtu" path="res://m_16.glb" id="5_xtcp8"]
8+
[ext_resource type="Material" uid="uid://bsbydtecggyco" path="res://sand.tres" id="6_v36uu"]
9+
[ext_resource type="FontFile" uid="uid://61ne5rpld1yx" path="res://PermanentMarker-Regular.ttf" id="7_0togc"]
10+
11+
[sub_resource type="PlaneMesh" id="PlaneMesh_af1mw"]
12+
material = ExtResource("6_v36uu")
13+
size = Vector2(1000, 1000)
14+
15+
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_kljc2"]
16+
blend_mode = 2
17+
18+
[sub_resource type="Gradient" id="Gradient_r8hqa"]
19+
offsets = PackedFloat32Array(0.0692641, 1)
20+
colors = PackedColorArray(0, 0, 0, 0, 0.384314, 0.454902, 0.54902, 1)
21+
22+
[sub_resource type="GradientTexture2D" id="GradientTexture2D_crk20"]
23+
gradient = SubResource("Gradient_r8hqa")
24+
fill = 1
25+
fill_from = Vector2(0.5, 0.5)
26+
27+
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_615to"]
28+
albedo_color = Color(0.792157, 0.705882, 0.545098, 1)
29+
30+
[sub_resource type="QuadMesh" id="QuadMesh_73uc1"]
31+
material = SubResource("StandardMaterial3D_615to")
32+
33+
[node name="ConverImage" type="Node3D"]
34+
35+
[node name="Lighting" type="Node" parent="."]
36+
37+
[node name="WorldEnvironment" type="WorldEnvironment" parent="Lighting"]
38+
environment = ExtResource("1_3n5k7")
39+
camera_attributes = ExtResource("2_e3qwv")
40+
41+
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="Lighting"]
42+
transform = Transform3D(-0.866025, -0.433013, 0.25, 0, 0.5, 0.866026, -0.5, 0.75, -0.433013, 0, 5, 0)
43+
shadow_enabled = true
44+
directional_shadow_max_distance = 250.0
45+
46+
[node name="Decal20" type="Decal" parent="."]
47+
transform = Transform3D(0.551398, 0, 0.551398, 0, 0.779794, 0, -0.551398, 0, 0.551398, 0.119154, 0, 0.0221254)
48+
visible = false
49+
size = Vector3(2.94629, 2, 1.49609)
50+
texture_albedo = ExtResource("3_ikhxp")
51+
modulate = Color(0.78, 0.61893, 0.3198, 1)
52+
albedo_mix = 0.8
53+
54+
[node name="Decal21" type="Decal" parent="."]
55+
transform = Transform3D(0.328739, 0, 0.328739, 0, 0.464907, 0, -0.328739, 0, 0.328739, 0.265766, 0, -0.124487)
56+
visible = false
57+
size = Vector3(3.83826, 2, 2.70801)
58+
texture_albedo = ExtResource("4_7xb8b")
59+
modulate = Color(0.45, 0.036, 0.036, 1)
60+
61+
[node name="M16" parent="." instance=ExtResource("5_xtcp8")]
62+
transform = Transform3D(0.868808, 0.362055, -0.340582, -0.407699, 0.911385, -0.0711741, 0.284361, 0.200501, 0.938533, 0, 0, 0)
63+
visible = false
64+
65+
[node name="Camera3D" type="Camera3D" parent="."]
66+
transform = Transform3D(-4.37114e-08, -1, -4.37114e-08, -1.5246e-23, -4.37114e-08, 1, -1, 4.37114e-08, 1.91069e-15, 0.00523897, 6.57978, -5.92442e-05)
67+
68+
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
69+
mesh = SubResource("PlaneMesh_af1mw")
70+
71+
[node name="UI" type="CanvasLayer" parent="."]
72+
73+
[node name="Vignette" type="TextureRect" parent="UI"]
74+
material = SubResource("CanvasItemMaterial_kljc2")
75+
anchors_preset = 15
76+
anchor_right = 1.0
77+
anchor_bottom = 1.0
78+
grow_horizontal = 2
79+
grow_vertical = 2
80+
texture = SubResource("GradientTexture2D_crk20")
81+
82+
[node name="Title" type="Label" parent="UI"]
83+
visible = false
84+
anchors_preset = 5
85+
anchor_left = 0.5
86+
anchor_right = 0.5
87+
offset_left = -477.0
88+
offset_top = 256.0
89+
offset_right = 477.0
90+
offset_bottom = 399.0
91+
grow_horizontal = 2
92+
theme_override_fonts/font = ExtResource("7_0togc")
93+
theme_override_font_sizes/font_size = 150
94+
text = "Possess and Destroy"
95+
96+
[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
97+
mesh = SubResource("QuadMesh_73uc1")

‎cover.png

786 KB
Loading

‎cover.png.import

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://bwy4yrirwpifk"
6+
path="res://.godot/imported/cover.png-7415a2400197f69905d305dff229e3ab.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://cover.png"
14+
dest_files=["res://.godot/imported/cover.png-7415a2400197f69905d305dff229e3ab.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1

‎cover_image.tscn

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
[gd_scene load_steps=12 format=3 uid="uid://bm8hxiikxd4pt"]
2+
3+
[ext_resource type="Environment" uid="uid://ng6uovx21442" path="res://environment.tres" id="2_xi6fe"]
4+
[ext_resource type="CameraAttributesPractical" uid="uid://nf2n85jai8dd" path="res://camera_attributes_practical.tres" id="3_pmawn"]
5+
[ext_resource type="Texture2D" uid="uid://dbvbmq8sygfw0" path="res://addons/kenney_particle_pack/smoke_01.png" id="4_15bck"]
6+
[ext_resource type="Texture2D" uid="uid://3lyybiyokess" path="res://addons/kenney_particle_pack/dirt_01.png" id="5_q7igl"]
7+
[ext_resource type="PackedScene" uid="uid://di14cmdia7qtu" path="res://m_16.glb" id="6_s3tpw"]
8+
[ext_resource type="Material" uid="uid://bsbydtecggyco" path="res://sand.tres" id="7_bt33k"]
9+
[ext_resource type="FontFile" uid="uid://61ne5rpld1yx" path="res://PermanentMarker-Regular.ttf" id="8_n25o3"]
10+
11+
[sub_resource type="PlaneMesh" id="PlaneMesh_af1mw"]
12+
material = ExtResource("7_bt33k")
13+
size = Vector2(1000, 1000)
14+
15+
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_kljc2"]
16+
blend_mode = 2
17+
18+
[sub_resource type="Gradient" id="Gradient_r8hqa"]
19+
offsets = PackedFloat32Array(0.0692641, 1)
20+
colors = PackedColorArray(0, 0, 0, 0, 0.384314, 0.454902, 0.54902, 1)
21+
22+
[sub_resource type="GradientTexture2D" id="GradientTexture2D_crk20"]
23+
gradient = SubResource("Gradient_r8hqa")
24+
fill = 1
25+
fill_from = Vector2(0.5, 0.5)
26+
27+
[node name="ConverImage" type="Node3D"]
28+
29+
[node name="Lighting" type="Node" parent="."]
30+
31+
[node name="WorldEnvironment" type="WorldEnvironment" parent="Lighting"]
32+
environment = ExtResource("2_xi6fe")
33+
camera_attributes = ExtResource("3_pmawn")
34+
35+
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="Lighting"]
36+
transform = Transform3D(-0.866025, -0.433013, 0.25, 0, 0.5, 0.866026, -0.5, 0.75, -0.433013, 0, 5, 0)
37+
shadow_enabled = true
38+
directional_shadow_max_distance = 250.0
39+
40+
[node name="Decal20" type="Decal" parent="."]
41+
transform = Transform3D(0.551398, 0, 0.551398, 0, 0.779794, 0, -0.551398, 0, 0.551398, 0.119154, 0, 0.0221254)
42+
size = Vector3(2.94629, 2, 1.49609)
43+
texture_albedo = ExtResource("4_15bck")
44+
modulate = Color(0.78, 0.61893, 0.3198, 1)
45+
albedo_mix = 0.8
46+
47+
[node name="Decal21" type="Decal" parent="."]
48+
transform = Transform3D(0.328739, 0, 0.328739, 0, 0.464907, 0, -0.328739, 0, 0.328739, 0.265766, 0, -0.124487)
49+
size = Vector3(3.83826, 2, 2.70801)
50+
texture_albedo = ExtResource("5_q7igl")
51+
modulate = Color(0.45, 0.036, 0.036, 1)
52+
53+
[node name="M16" parent="." instance=ExtResource("6_s3tpw")]
54+
transform = Transform3D(0.868808, 0.362055, -0.340582, -0.407699, 0.911385, -0.0711741, 0.284361, 0.200501, 0.938533, 0, 0, 0)
55+
56+
[node name="CameraParent" type="Node3D" parent="."]
57+
58+
[node name="Camera3D" type="Camera3D" parent="CameraParent"]
59+
transform = Transform3D(0.0627905, -3.69999e-16, -0.998027, 3.48787e-16, 1, -3.48787e-16, 0.998027, -3.26198e-16, 0.0627905, -0.652, 0.26, 2.08165e-12)
60+
61+
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
62+
mesh = SubResource("PlaneMesh_af1mw")
63+
64+
[node name="UI" type="CanvasLayer" parent="."]
65+
66+
[node name="Vignette" type="TextureRect" parent="UI"]
67+
material = SubResource("CanvasItemMaterial_kljc2")
68+
anchors_preset = 15
69+
anchor_right = 1.0
70+
anchor_bottom = 1.0
71+
grow_horizontal = 2
72+
grow_vertical = 2
73+
texture = SubResource("GradientTexture2D_crk20")
74+
75+
[node name="Title" type="Label" parent="UI"]
76+
anchors_preset = 5
77+
anchor_left = 0.5
78+
anchor_right = 0.5
79+
offset_left = -477.0
80+
offset_top = 256.0
81+
offset_right = 477.0
82+
offset_bottom = 399.0
83+
grow_horizontal = 2
84+
theme_override_fonts/font = ExtResource("8_n25o3")
85+
theme_override_font_sizes/font_size = 150
86+
text = "Possess and Destroy"

‎itch.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<p>you are a DEMON</p>
2+
<p>you must HUNT all humans</p>
3+
<p>move with WASD</p>
4+
<p>jump with SPACE</p>
5+
<p>left click to SHOOT when holding a weapon</p>
6+
<p>right click to ZOOM when holding the sniper</p>
7+
<p>press E while behind a human to POSSESS them</p>
8+
<p>press Q to become INVISIBLE</p>
9+
<p>these powers cost ENERGY</p>
10+
<p>KILL to gain energy</p>
11+
<p>suspicious activity, if witnessed, COMPROMISES your identity</p>
12+
<p>shooting makes you look SUSPICIOUS for a few seconds</p>
13+
<p><a href="https://raw.githubusercontent.com/mcjohnalds/possess-and-destroy/main/credits.txt" target="_blank">credits<a></p>

‎level.gd

+39-14
Original file line numberDiff line numberDiff line change
@@ -226,23 +226,33 @@ func _process(delta: float) -> void:
226226
player.energy_label.text = "energy: %s%%" % ceilf(
227227
player.energy * 100.0
228228
)
229+
player.ammo_label.text = "ammo: %s" % player.ammo
230+
player.ammo_control.visible = player.gun != null
229231
player.compromised_control.visible = player_identity_compromised
230232
player.hurt_overlay.modulate.a -= delta
231233
player.hurt_overlay.modulate.a = clampf(
232234
player.hurt_overlay.modulate.a, 0.0, 10.0
233235
)
234-
player.suspicious_label.visible = (
236+
player.suspicious_control.visible = (
235237
Level.get_ticks_sec() - suspicious_sound_heard_at
236-
< LOOKING_SUSPICIOUS_DURATION
238+
< LOOKING_SUSPICIOUS_DURATION
239+
or player_identity_compromised
237240
)
241+
242+
var enemies_left := 0
243+
for man: Man in men.get_children():
244+
if is_instance_valid(man) and man.alive:
245+
enemies_left += 1
246+
player.enemies_left_label.text = "enemies left: %s" % enemies_left
247+
238248
process_use()
239249
process_zoom()
240250
process_vignette()
241251
for msg: Message in player.messages.get_children():
242252
msg.modulate.a = lerpf(
243253
1.0,
244254
0.6,
245-
clampf((Level.get_ticks_sec() - msg.created_at) / 2.0, 0.0, 1.0)
255+
clampf((Level.get_ticks_sec() - msg.created_at) / 8.0, 0.0, 1.0)
246256
)
247257
process_player_shooting()
248258
process_man_shooting()
@@ -328,14 +338,20 @@ func process_use() -> void:
328338
if player.gun:
329339
player.gun.queue_free()
330340
player.gun_transform.remove_child(player.gun)
331-
var gun_scene := (
332-
m_16_scene
333-
if targeted_man.gun_type == GunType.M16
334-
else sniper_rifle_scene
335-
if targeted_man.gun_type == GunType.SNIPER_RIFLE
336-
else shotgun_scene
337-
)
341+
var gun_scene: PackedScene
342+
var ammo: int
343+
match targeted_man.gun_type:
344+
GunType.M16:
345+
gun_scene = m_16_scene
346+
ammo = 30
347+
GunType.SHOTGUN:
348+
gun_scene = shotgun_scene
349+
ammo = 8
350+
GunType.SNIPER_RIFLE:
351+
gun_scene = sniper_rifle_scene
352+
ammo = 5
338353
player.gun = gun_scene.instantiate()
354+
player.ammo = ammo
339355
player.gun_transform.add_child(player.gun)
340356
if player.invisible:
341357
apply_material_to_player_gun(almost_invisible)
@@ -370,6 +386,7 @@ func process_player_shooting() -> void:
370386
and Input.is_action_pressed("primary")
371387
and Level.get_ticks_sec() - player.gun.last_fired_at
372388
> get_gun_cooldown(player.gun)
389+
and player.ammo > 0
373390
):
374391
get_gun_audio_stream_player(player.gun).play()
375392
var hits := fire_gun(
@@ -404,6 +421,7 @@ func process_player_shooting() -> void:
404421
suspicious_sound_position = player.global_position
405422
suspicious_sound_heard_at = Level.get_ticks_sec()
406423
suspicious_sound_has_been_investigated = false
424+
player.ammo -= 1
407425
if player.invisible:
408426
make_player_visible()
409427

@@ -932,12 +950,16 @@ func physics_process_man(delta: float) -> void:
932950
)
933951

934952
var next_aim_progress := man.aim_progress
935-
if is_engaging and man.aim_progress < 0.5:
936-
next_aim_progress += delta / 1.2
937-
elif is_engaging and can_see_player:
953+
if is_engaging and can_see_player:
938954
var d := clampf(distance_to_player, 1.0, 50.0)
939955
var r := remap(d, 1.0, 50.0, 0.6, 1.5)
940956
next_aim_progress += delta / r
957+
elif is_engaging and man.aim_progress <= 0.5:
958+
next_aim_progress += minf(delta / 1.2, 0.5)
959+
elif (
960+
ai_team_state != AiTeamState.PATROLLING and man.aim_progress <= 0.5
961+
):
962+
next_aim_progress += minf(delta / 2.0, 0.5)
941963
else:
942964
next_aim_progress -= delta / 1.2
943965
next_aim_progress = clampf(next_aim_progress, 0.0, 1.0)
@@ -1181,7 +1203,10 @@ func get_gun_damage(gun: Gun, distance: float, headshot: bool) -> float:
11811203
var u := 0.2 * m
11821204
return clampf(remap(distance, 5.0, 20.0, u, l), l, u)
11831205
GunType.SNIPER_RIFLE:
1184-
return 1.0
1206+
var m := 3.0 if headshot else 1.0
1207+
var l := 0.5 * m
1208+
var u := 1.0 * m
1209+
return clampf(remap(distance, 5.0, 20.0, u, l), l, u)
11851210
GunType.SHOTGUN:
11861211
var l := 0.025
11871212
var u := 0.2

‎main.gd

+13-12
Original file line numberDiff line numberDiff line change
@@ -5,51 +5,52 @@ extends Node3D
55
@onready var level_scene := preload("res://airbase_level.tscn")
66
@onready var dead_scene := preload("res://dead.tscn")
77
@onready var win_scene := preload("res://win.tscn")
8+
var scene: Node
89

910

1011
func _ready() -> void:
1112
go_to_start()
1213

1314

1415
func go_to_start() -> void:
15-
if get_child_count() > 0:
16-
var child := get_child(0)
17-
child.queue_free()
16+
if scene:
17+
scene.queue_free()
1818

1919
var start: Start = start_scene.instantiate()
2020
add_child(start)
2121
start.start_button.button_down.connect(go_to_level)
22+
scene = start
2223

2324

2425
func go_to_level() -> void:
25-
if get_child_count() > 0:
26-
var child := get_child(0)
27-
child.queue_free()
26+
if scene:
27+
scene.queue_free()
2828

2929
var level: Level = level_scene.instantiate()
3030
add_child(level)
3131
level.player_died.connect(go_to_dead)
32+
scene = level
3233
level.won.connect(go_to_win)
3334

3435

3536
func go_to_dead() -> void:
36-
if get_child_count() > 0:
37-
var child := get_child(0)
38-
child.queue_free()
37+
if scene:
38+
scene.queue_free()
3939

4040
var dead: Dead = dead_scene.instantiate()
4141
add_child(dead)
4242
dead.restart_button.button_down.connect(go_to_start)
43+
scene = dead
4344

4445

4546
func go_to_win() -> void:
46-
if get_child_count() > 0:
47-
var child := get_child(0)
48-
child.queue_free()
47+
if scene:
48+
scene.queue_free()
4949

5050
var win: Win = win_scene.instantiate()
5151
add_child(win)
5252
win.restart_button.button_down.connect(go_to_start)
53+
scene = win
5354

5455

5556
func _input(event: InputEvent) -> void:

‎player.gd

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ var invisible := false
88
var initial_health := 10.0
99
var health := initial_health
1010
var gun: Gun
11+
var ammo := 0
1112
var initial_energy := 0.5
1213
var energy := initial_energy
1314
@onready var gun_transform: Node3D = $Head/GunTransform
@@ -41,6 +42,8 @@ var energy := initial_energy
4142
@onready var vignette: TextureRect = $HUD/Vignette
4243
@onready var use_panel: Control = $HUD/UsePanel
4344
@onready var possessing_label: Label = $HUD/BottomRight/PossessingLabel
45+
@onready var ammo_control: Control = $HUD/Ammo
46+
@onready var ammo_label: Label = $HUD/Ammo/Label
4447
@onready var vignette_gradient_2d: GradientTexture2D = vignette.texture
4548
@onready var vignette_gradient: Gradient = (
4649
vignette_gradient_2d.gradient
@@ -51,4 +54,5 @@ var energy := initial_energy
5154
@onready var compromised_control := $HUD/BottomRight/Compromised as Control
5255
@onready var capsule: CapsuleShape3D = ($Collision as CollisionShape3D).shape
5356
@onready var hurt_overlay := $HUD/HurtOverlay as TextureRect
54-
@onready var suspicious_label := $HUD/BottomRight/SuspiciousLabel as Label
57+
@onready var suspicious_control := $HUD/BottomRight/Suspicious as Control
58+
@onready var enemies_left_label := $HUD/BottomRight/EnemiesLeft/Label as Label

‎player.tscn

+99-28
Original file line numberDiff line numberDiff line change
@@ -214,32 +214,7 @@ offset_top = -40.0
214214
grow_horizontal = 0
215215
grow_vertical = 0
216216

217-
[node name="SuspiciousPanel" type="Panel" parent="HUD/BottomRight" index="0"]
218-
layout_mode = 1
219-
anchors_preset = 2
220-
anchor_top = 1.0
221-
anchor_bottom = 1.0
222-
offset_left = -461.5
223-
offset_top = -110.0
224-
offset_right = 40.5
225-
offset_bottom = -55.0
226-
grow_vertical = 0
227-
228-
[node name="SuspiciousLabel" type="Label" parent="HUD/BottomRight" index="1"]
229-
layout_mode = 1
230-
anchors_preset = 2
231-
anchor_top = 1.0
232-
anchor_bottom = 1.0
233-
offset_left = -451.0
234-
offset_top = -108.0
235-
offset_right = -153.0
236-
offset_bottom = -63.0
237-
grow_vertical = 0
238-
theme_override_font_sizes/font_size = 28
239-
text = "looking suspicious"
240-
vertical_alignment = 2
241-
242-
[node name="PossessingPanel" type="Panel" parent="HUD/BottomRight" index="2"]
217+
[node name="PossessingPanel" type="Panel" parent="HUD/BottomRight" index="0"]
243218
layout_mode = 1
244219
anchors_preset = 2
245220
anchor_top = 1.0
@@ -250,7 +225,7 @@ offset_right = 39.5
250225
offset_bottom = 0.5
251226
grow_vertical = 0
252227

253-
[node name="PossessingLabel" type="Label" parent="HUD/BottomRight" index="3"]
228+
[node name="PossessingLabel" type="Label" parent="HUD/BottomRight" index="1"]
254229
layout_mode = 1
255230
anchors_preset = 2
256231
anchor_top = 1.0
@@ -264,7 +239,7 @@ theme_override_font_sizes/font_size = 28
264239
text = "identity: Civilian"
265240
vertical_alignment = 2
266241

267-
[node name="Compromised" type="Control" parent="HUD/BottomRight" index="4"]
242+
[node name="Compromised" type="Control" parent="HUD/BottomRight" index="2"]
268243
layout_mode = 1
269244
anchors_preset = 2
270245
anchor_top = 1.0
@@ -303,6 +278,102 @@ text = "compromised"
303278
horizontal_alignment = 2
304279
vertical_alignment = 2
305280

281+
[node name="Suspicious" type="Control" parent="HUD/BottomRight" index="3"]
282+
anchors_preset = 0
283+
offset_top = -57.0
284+
offset_right = 40.0
285+
offset_bottom = -17.0
286+
287+
[node name="Panel" type="Panel" parent="HUD/BottomRight/Suspicious" index="0"]
288+
layout_mode = 1
289+
anchors_preset = 2
290+
anchor_top = 1.0
291+
anchor_bottom = 1.0
292+
offset_left = -461.5
293+
offset_top = -110.0
294+
offset_right = 40.5
295+
offset_bottom = -55.0
296+
grow_vertical = 0
297+
298+
[node name="Label" type="Label" parent="HUD/BottomRight/Suspicious" index="1"]
299+
layout_mode = 1
300+
anchors_preset = 2
301+
anchor_top = 1.0
302+
anchor_bottom = 1.0
303+
offset_left = -451.0
304+
offset_top = -108.0
305+
offset_right = -153.0
306+
offset_bottom = -63.0
307+
grow_vertical = 0
308+
theme_override_font_sizes/font_size = 28
309+
text = "looking suspicious"
310+
vertical_alignment = 2
311+
312+
[node name="EnemiesLeft" type="Control" parent="HUD/BottomRight" index="4"]
313+
anchors_preset = 0
314+
offset_top = -1.0
315+
offset_right = 40.0
316+
offset_bottom = 39.0
317+
318+
[node name="Panel" type="Panel" parent="HUD/BottomRight/EnemiesLeft" index="0"]
319+
layout_mode = 1
320+
anchors_preset = 2
321+
anchor_top = 1.0
322+
anchor_bottom = 1.0
323+
offset_left = -461.5
324+
offset_top = -110.0
325+
offset_right = 40.5
326+
offset_bottom = -55.0
327+
grow_vertical = 0
328+
329+
[node name="Label" type="Label" parent="HUD/BottomRight/EnemiesLeft" index="1"]
330+
layout_mode = 1
331+
anchors_preset = 2
332+
anchor_top = 1.0
333+
anchor_bottom = 1.0
334+
offset_left = -451.0
335+
offset_top = -108.0
336+
offset_right = -153.0
337+
offset_bottom = -63.0
338+
grow_vertical = 0
339+
theme_override_font_sizes/font_size = 28
340+
text = "enemies left: 10"
341+
vertical_alignment = 2
342+
343+
[node name="Ammo" type="Control" parent="HUD" index="13"]
344+
layout_mode = 3
345+
anchors_preset = 2
346+
anchor_top = 1.0
347+
anchor_bottom = 1.0
348+
offset_top = -40.0
349+
offset_right = 40.0
350+
grow_vertical = 0
351+
352+
[node name="Panel" type="Panel" parent="HUD/Ammo" index="0"]
353+
layout_mode = 1
354+
anchors_preset = 2
355+
anchor_top = 1.0
356+
anchor_bottom = 1.0
357+
offset_left = -0.5
358+
offset_top = -167.0
359+
offset_right = 501.5
360+
offset_bottom = -112.0
361+
grow_vertical = 0
362+
363+
[node name="Label" type="Label" parent="HUD/Ammo" index="1"]
364+
layout_mode = 1
365+
anchors_preset = 2
366+
anchor_top = 1.0
367+
anchor_bottom = 1.0
368+
offset_left = 10.0
369+
offset_top = -165.0
370+
offset_right = 308.0
371+
offset_bottom = -120.0
372+
grow_vertical = 0
373+
theme_override_font_sizes/font_size = 28
374+
text = "ammo: 30"
375+
vertical_alignment = 2
376+
306377
[node name="M16AudioStreamPlayer" type="AudioStreamPlayer" parent="." index="11"]
307378
stream = ExtResource("4_v5tyn")
308379

‎readme.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Possess and Destroy
2+
3+
![Screenshot](screenshot_1.png)
4+
5+
Game built for [Untitled Game Jam
6+
#92](https://itch.io/jam/untitled-game-jam-92).
7+
8+
Learn more and play the game at
9+
https://milkmanjohn.itch.io/possess-and-destroy.
10+
11+
![Screenshot](screenshot_2.png)
12+
13+
![Screenshot](screenshot_3.png)

‎screenshot_1.png

1.3 MB
Loading

‎screenshot_1.png.import

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://boluye2wpi6sp"
6+
path="res://.godot/imported/screenshot_1.png-297d6d63a47ec49428b19b533c21e744.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://screenshot_1.png"
14+
dest_files=["res://.godot/imported/screenshot_1.png-297d6d63a47ec49428b19b533c21e744.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1

‎screenshot_2.png

1.13 MB
Loading

‎screenshot_2.png.import

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://decl7lgejmnoo"
6+
path="res://.godot/imported/screenshot_2.png-fad5b242d6b8a902f3d7ab2c9b88ceed.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://screenshot_2.png"
14+
dest_files=["res://.godot/imported/screenshot_2.png-fad5b242d6b8a902f3d7ab2c9b88ceed.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1

‎screenshot_3.png

1.24 MB
Loading

‎screenshot_3.png.import

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://cf2tsbb3nibfn"
6+
path="res://.godot/imported/screenshot_3.png-54c85665a8ab9cfa4f0779c30a4b1bc1.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://screenshot_3.png"
14+
dest_files=["res://.godot/imported/screenshot_3.png-54c85665a8ab9cfa4f0779c30a4b1bc1.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1

‎start.tscn

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ offset_right = 934.0
9393
offset_bottom = -168.0
9494
grow_vertical = 0
9595
theme_override_constants/line_spacing = 5
96-
theme_override_font_sizes/font_size = 33
96+
theme_override_font_sizes/font_size = 30
9797
text = "you are a DEMON
9898
you must HUNT all humans
9999
move with WASD
@@ -105,6 +105,7 @@ press Q to become INVISIBLE
105105
these powers cost ENERGY
106106
KILL to gain energy
107107
suspicious activity, if witnessed, COMPROMISES your identity
108+
shooting makes you look SUSPICIOUS for a few seconds
108109
press ESC to quit and return to this screen"
109110

110111
[node name="StartButton" type="Button" parent="UI"]

‎win.tscn

+126-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.