Skip to content

Commit 5ef468e

Browse files
committed
Adjust to Publisher Demands
Adjust window size to new monitor Adjust all games to fit new monitor size Added game tiles and game display carousel Added nokia background to slugsnake Added timer to slugsnake so people have to take turns
1 parent 90ff576 commit 5ef468e

97 files changed

Lines changed: 172981 additions & 93 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

FortunateSlug/FortunateSlug.tscn

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
[ext_resource type="Script" uid="uid://b440jofslskw0" path="res://FortunateSlug/Slugtar.cs" id="1_om2cr"]
44
[ext_resource type="FontFile" uid="uid://digk2l351175t" path="res://Common/G.B.BOOT.ttf" id="2_fvi0b"]
55
[ext_resource type="Texture2D" uid="uid://y5eny6803xm1" path="res://FortunateSlug/SLUGTAR.jpg" id="3_1fto1"]
6-
[ext_resource type="Shader" path="res://FortunateSlug/Pixelate.gdshader" id="3_v7g45"]
6+
[ext_resource type="Shader" uid="uid://clm4qto8j7pwj" path="res://FortunateSlug/Pixelate.gdshader" id="3_v7g45"]
77
[ext_resource type="AudioStream" uid="uid://df62mjyoqfff7" path="res://FortunateSlug/ZoltarTheme.mp3" id="4_fvi0b"]
88

99
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mau7l"]
1010
shader = ExtResource("3_v7g45")
1111
shader_parameter/pixel_size = 4
12-
shader_parameter/screen_size = Vector2(960, 540)
12+
shader_parameter/screen_size = Vector2(1280, 720)
1313

1414
[node name="LickTheSlug" type="Node2D" node_paths=PackedStringArray("_outputLabel")]
1515
script = ExtResource("1_om2cr")
@@ -26,22 +26,19 @@ grow_horizontal = 2
2626
grow_vertical = 2
2727

2828
[node name="Slugtar output" type="Label" parent="UI"]
29-
anchors_preset = 3
30-
anchor_left = 1.0
29+
anchors_preset = 12
3130
anchor_top = 1.0
3231
anchor_right = 1.0
3332
anchor_bottom = 1.0
34-
offset_left = -942.0
35-
offset_top = -71.0
36-
offset_bottom = -20.0
37-
grow_horizontal = 0
33+
offset_top = -26.0
34+
grow_horizontal = 2
3835
grow_vertical = 0
3936
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
4037
theme_override_constants/shadow_offset_x = 5
4138
theme_override_constants/shadow_offset_y = 4
4239
theme_override_constants/outline_size = 9
4340
theme_override_fonts/font = ExtResource("2_fvi0b")
44-
theme_override_font_sizes/font_size = 25
41+
theme_override_font_sizes/font_size = 35
4542
text = "Slugtar Knows All!"
4643
horizontal_alignment = 1
4744
vertical_alignment = 2
@@ -50,8 +47,8 @@ vertical_alignment = 2
5047
anchor_mode = 0
5148

5249
[node name="BG" type="TextureRect" parent="."]
53-
offset_right = 960.0
54-
offset_bottom = 573.0
50+
offset_right = 1280.0
51+
offset_bottom = 720.0
5552
texture = ExtResource("3_1fto1")
5653

5754
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]

HackySack/HackySack.tscn

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ size = Vector2(33, 65)
2020
size = Vector2(33, 64)
2121

2222
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jf4w0"]
23-
size = Vector2(987, 180)
23+
size = Vector2(1300, 180)
2424

2525
[node name="HackySack" type="Node2D" node_paths=PackedStringArray("_hackySound", "_timeLeftLabel", "_scoreLabel", "_timer", "_message", "_theSack", "_theFoot", "_otherFoot", "_gameEnd")]
2626
script = ExtResource("1_s22y3")
@@ -38,8 +38,8 @@ _gameEnd = NodePath("GameEnd")
3838
visible = false
3939

4040
[node name="BG(Replace This Later)" type="TextureRect" parent="."]
41-
offset_right = 960.0
42-
offset_bottom = 540.0
41+
offset_right = 1280.0
42+
offset_bottom = 720.0
4343
texture = ExtResource("1_dnurs")
4444

4545
[node name="Timer" type="Timer" parent="."]
@@ -54,8 +54,10 @@ volume_db = -5.0
5454
[node name="UI" type="CanvasLayer" parent="."]
5555

5656
[node name="CenterContainer" type="CenterContainer" parent="UI"]
57-
offset_right = 960.0
58-
offset_bottom = 86.0
57+
anchors_preset = 10
58+
anchor_right = 1.0
59+
offset_bottom = 110.0
60+
grow_horizontal = 2
5961
mouse_filter = 2
6062

6163
[node name="VBoxContainer" type="VBoxContainer" parent="UI/CenterContainer"]
@@ -64,20 +66,20 @@ layout_mode = 2
6466
[node name="Title" type="Label" parent="UI/CenterContainer/VBoxContainer"]
6567
layout_mode = 2
6668
theme_override_fonts/font = ExtResource("1_8ox3o")
67-
theme_override_font_sizes/font_size = 25
69+
theme_override_font_sizes/font_size = 30
6870
text = "Hacky Sack"
6971

7072
[node name="Timer" type="Label" parent="UI/CenterContainer/VBoxContainer"]
7173
layout_mode = 2
7274
theme_override_fonts/font = ExtResource("1_8ox3o")
73-
theme_override_font_sizes/font_size = 25
75+
theme_override_font_sizes/font_size = 30
7476
text = "00:59"
7577
horizontal_alignment = 1
7678

7779
[node name="Score" type="Label" parent="UI/CenterContainer/VBoxContainer"]
7880
layout_mode = 2
7981
theme_override_fonts/font = ExtResource("1_8ox3o")
80-
theme_override_font_sizes/font_size = 25
82+
theme_override_font_sizes/font_size = 30
8183
text = "Score: 0"
8284
horizontal_alignment = 1
8385

@@ -94,7 +96,8 @@ theme_override_font_sizes/font_size = 30
9496
horizontal_alignment = 1
9597

9698
[node name="TheSack" type="CharacterBody2D" parent="."]
97-
position = Vector2(480, 280)
99+
position = Vector2(640, 360)
100+
scale = Vector2(2, 2)
98101
motion_mode = 1
99102
script = ExtResource("5_06w52")
100103

@@ -106,7 +109,8 @@ flip_h = true
106109
shape = SubResource("RectangleShape2D_06w52")
107110

108111
[node name="AutoFeet" type="CharacterBody2D" parent="."]
109-
position = Vector2(100, 270)
112+
position = Vector2(100, 360)
113+
scale = Vector2(2, 2)
110114
collision_mask = 0
111115
motion_mode = 1
112116

@@ -119,7 +123,8 @@ position = Vector2(-2.75, -0.5)
119123
shape = SubResource("RectangleShape2D_nkh0n")
120124

121125
[node name="PlayerFeet" type="CharacterBody2D" parent="."]
122-
position = Vector2(860, 270)
126+
position = Vector2(1180, 360)
127+
scale = Vector2(2, 2)
123128
collision_mask = 0
124129
motion_mode = 1
125130
script = ExtResource("7_nkh0n")
@@ -134,12 +139,12 @@ shape = SubResource("RectangleShape2D_feqrw")
134139
[node name="TopWall" type="StaticBody2D" parent="."]
135140

136141
[node name="CollisionShape2D" type="CollisionShape2D" parent="TopWall"]
137-
position = Vector2(483.5, -78)
142+
position = Vector2(640, -87)
138143
shape = SubResource("RectangleShape2D_jf4w0")
139144

140145
[node name="BottomWall" type="StaticBody2D" parent="."]
141146
position = Vector2(7, 705)
142147

143148
[node name="CollisionShape2D" type="CollisionShape2D" parent="BottomWall"]
144-
position = Vector2(483.5, -78)
149+
position = Vector2(632, 103)
145150
shape = SubResource("RectangleShape2D_jf4w0")

HackySack/Scripts/HackySack.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public partial class HackySack : Node2D
1919
[Export]
2020
private PlayerFeet _theFoot;
2121
[Export] private CharacterBody2D _otherFoot;
22-
private float _otherFootSpeed = 200f;
22+
private float _otherFootSpeed = 225f;
2323
private float _otherFootSize = 15;
2424

2525
public override void _EnterTree()

HackySack/Scripts/PlayerFeet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
public partial class PlayerFeet : CharacterBody2D
55
{
6-
private float _speed = 150f;
6+
private float _speed = 200f;
77
private Vector2 _dir = Vector2.Zero;
88

99
public override void _Process(double delta)
1010
{
1111
if (Input.IsActionPressed("Up") && Position.Y > 0)
1212
{
1313
_dir = Vector2.Up;
14-
} else if (Input.IsActionPressed("Down") && Position.Y < 540)
14+
} else if (Input.IsActionPressed("Down") && Position.Y < 720)
1515
{
1616
_dir = Vector2.Down;
1717
}

HackySack/Scripts/TheSack.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
public partial class TheSack : CharacterBody2D
55
{
66
private Vector2 _direction;
7-
private float _speed = 250;
7+
private float _speed = 400;
88

99
public delegate void FootedHandler();
1010
public event FootedHandler Footed;
@@ -44,7 +44,7 @@ private void HandleCollisions(KinematicCollision2D collision)
4444

4545
private void CheckOOB()
4646
{
47-
if (Position.X > 960 || Position.X < 0 || Position.Y < 0 || Position.Y > 540)
47+
if (Position.X > 1280 || Position.X < 0 || Position.Y < 0 || Position.Y > 720)
4848
{
4949
OOB?.Invoke();
5050
Position = new Vector2(960f/2, 540f/2);

LickTheSlug/LickTheSlug.tscn

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ offset_top = -51.0
4444
grow_horizontal = 0
4545
grow_vertical = 0
4646
theme_override_fonts/font = ExtResource("1_7e78s")
47-
theme_override_font_sizes/font_size = 25
47+
theme_override_font_sizes/font_size = 30
4848
text = "(Please do not actually try and lick the slugs!)"
4949
horizontal_alignment = 2
5050
vertical_alignment = 2
5151

5252
[node name="CenterContainer" type="CenterContainer" parent="UI"]
53-
offset_right = 960.0
53+
offset_right = 1280.0
5454
offset_bottom = 86.0
5555
mouse_filter = 2
5656

@@ -60,29 +60,29 @@ layout_mode = 2
6060
[node name="Title" type="Label" parent="UI/CenterContainer/VBoxContainer"]
6161
layout_mode = 2
6262
theme_override_fonts/font = ExtResource("1_7e78s")
63-
theme_override_font_sizes/font_size = 25
63+
theme_override_font_sizes/font_size = 30
6464
text = "Lick The Slug"
6565

6666
[node name="Timer" type="Label" parent="UI/CenterContainer/VBoxContainer"]
6767
layout_mode = 2
6868
theme_override_fonts/font = ExtResource("1_7e78s")
69-
theme_override_font_sizes/font_size = 25
69+
theme_override_font_sizes/font_size = 30
7070
text = "00:59"
7171
horizontal_alignment = 1
7272

7373
[node name="Score" type="Label" parent="UI/CenterContainer/VBoxContainer"]
7474
layout_mode = 2
7575
theme_override_fonts/font = ExtResource("1_7e78s")
76-
theme_override_font_sizes/font_size = 25
76+
theme_override_font_sizes/font_size = 30
7777
text = "Score: 0"
7878
horizontal_alignment = 1
7979

8080
[node name="Camera2D" type="Camera2D" parent="."]
8181
anchor_mode = 0
8282

8383
[node name="BG" type="TextureRect" parent="."]
84-
offset_right = 960.0
85-
offset_bottom = 540.0
84+
offset_right = 1280.0
85+
offset_bottom = 720.0
8686
texture = ExtResource("2_jppqo")
8787

8888
[node name="Slug" type="Sprite2D" parent="."]

SlugSimulator/SlugSimulator.tscn

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ autostart = true
2525
[node name="UI" type="CanvasLayer" parent="."]
2626

2727
[node name="CenterContainer" type="CenterContainer" parent="UI"]
28-
offset_right = 960.0
29-
offset_bottom = 86.0
28+
anchors_preset = 10
29+
anchor_right = 1.0
30+
offset_bottom = 77.0
31+
grow_horizontal = 2
3032
mouse_filter = 2
3133

3234
[node name="VBoxContainer" type="VBoxContainer" parent="UI/CenterContainer"]
@@ -35,13 +37,13 @@ layout_mode = 2
3537
[node name="Title" type="Label" parent="UI/CenterContainer/VBoxContainer"]
3638
layout_mode = 2
3739
theme_override_fonts/font = ExtResource("1_pqebb")
38-
theme_override_font_sizes/font_size = 25
40+
theme_override_font_sizes/font_size = 30
3941
text = "Slug Simulator"
4042

4143
[node name="Timer" type="Label" parent="UI/CenterContainer/VBoxContainer"]
4244
layout_mode = 2
4345
theme_override_fonts/font = ExtResource("1_pqebb")
44-
theme_override_font_sizes/font_size = 25
46+
theme_override_font_sizes/font_size = 30
4547
text = "00:59"
4648
horizontal_alignment = 1
4749

@@ -58,8 +60,8 @@ theme_override_font_sizes/font_size = 30
5860
horizontal_alignment = 1
5961

6062
[node name="BG" type="TextureRect" parent="."]
61-
offset_right = 960.0
62-
offset_bottom = 540.0
63+
offset_right = 1280.0
64+
offset_bottom = 720.0
6365
texture = ExtResource("2_woy7n")
6466

6567
[node name="Slug" type="Sprite2D" parent="."]

Snake/Scripts/Snake.cs

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ public partial class Snake : Node2D
88
[Export] private Label _scoreLabel;
99
[Export] private float _baseTps = 10f;
1010

11+
[Export]
12+
private Label _timeLeftLabel;
13+
[Export]
14+
private Timer _timer;
15+
1116
private List<Sprite2D> _slugParts = [];
1217
private Vector2 _direction = Vector2.Right;
1318
private Queue<Vector2> _inputBuffer = new Queue<Vector2>();
@@ -25,6 +30,11 @@ public partial class Snake : Node2D
2530
private Texture2D _headTexture = GD.Load<Texture2D>("res://Snake/sprites/Slug.png");
2631
private Texture2D _bodyTexture = GD.Load<Texture2D>("res://Snake/sprites/SlugBody.png");
2732

33+
public override void _EnterTree()
34+
{
35+
_timer.Timeout += GameOver;
36+
}
37+
2838
public override void _Ready()
2939
{
3040
// Get screen bounds and center position
@@ -57,7 +67,8 @@ public override void _Process(double delta)
5767
{
5868
if (_gameOver)
5969
return;
60-
70+
71+
TimerToText();
6172
_tickTimer += delta;
6273
if (_tickTimer >= 1.0 / _baseTps)
6374
{
@@ -134,12 +145,14 @@ private void CheckPickupCollisions()
134145
SpawnPickup();
135146
}
136147
}
137-
148+
149+
[Export]
150+
private GameEnd _gameEnd;
138151
private void GameOver()
139152
{
140153
_gameOver = true;
141-
var timer = GetTree().CreateTimer(2.0f);
142-
timer.Timeout += () => GetTree().ChangeSceneToFile("res://TitleScreen/TitleScreen.tscn");
154+
_gameEnd.Visible = true;
155+
GetTree().Paused = true;
143156
}
144157

145158
private void AddBodyPart()
@@ -188,6 +201,11 @@ private void UpdateScoreLabel()
188201
_scoreLabel.Text = $"Score: {_score}";
189202
}
190203
}
204+
205+
private void TimerToText()
206+
{
207+
_timeLeftLabel.Text = "00:" + _timer.TimeLeft.ToString("00");
208+
}
191209

192210
public override void _Input(InputEvent @event)
193211
{

Snake/SlugSnakeBackground-01.svg

Lines changed: 47 additions & 0 deletions
Loading
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://bamk630v4mymq"
6+
path="res://.godot/imported/SlugSnakeBackground-01.svg-2bdbc4bece0881de625e571ff404f673.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://Snake/SlugSnakeBackground-01.svg"
14+
dest_files=["res://.godot/imported/SlugSnakeBackground-01.svg-2bdbc4bece0881de625e571ff404f673.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
35+
svg/scale=1.0
36+
editor/scale_with_editor_scale=false
37+
editor/convert_colors_with_editor_theme=false

0 commit comments

Comments
 (0)