bug: Fix low-resolution text
This commit is contained in:
parent
64c055b23f
commit
e287853798
13 changed files with 1463 additions and 104 deletions
|
|
@ -13,8 +13,8 @@ const CREDIT_LABELS_LINKS := {
|
|||
"Extra Life Jingle" : ["Mrthenoronha : freesound.org", "https://freesound.org/people/Mrthenoronha/sounds/518306/"]
|
||||
}
|
||||
|
||||
const LEFT_COL_WIDTH := 300
|
||||
const RIGHT_COL_WIDTH := 300
|
||||
const LEFT_COL_WIDTH := 350
|
||||
const RIGHT_COL_WIDTH := 350
|
||||
|
||||
func _ready() -> void:
|
||||
$Back.pressed.connect(_emit_back)
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@
|
|||
[ext_resource type="Script" uid="uid://cf1vwutwpi4rf" path="res://Scripts/game_over.gd" id="1_ojehl"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_i2yjh"]
|
||||
font_size = 72
|
||||
font_size = 120
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_ojehl"]
|
||||
font_size = 32
|
||||
font_size = 48
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
|
|
@ -34,9 +34,10 @@ layout_mode = 1
|
|||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -195.0
|
||||
offset_right = 195.0
|
||||
offset_bottom = 99.0
|
||||
offset_left = -326.0
|
||||
offset_top = -55.0
|
||||
offset_right = 326.0
|
||||
offset_bottom = 110.0
|
||||
grow_horizontal = 2
|
||||
text = "Game Over"
|
||||
label_settings = SubResource("LabelSettings_i2yjh")
|
||||
|
|
@ -46,10 +47,10 @@ layout_mode = 1
|
|||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -60.5
|
||||
offset_top = 85.0
|
||||
offset_right = 60.5
|
||||
offset_bottom = 130.0
|
||||
offset_left = -90.5
|
||||
offset_top = 80.0
|
||||
offset_right = 90.5
|
||||
offset_bottom = 147.0
|
||||
grow_horizontal = 2
|
||||
text = "Score: 0"
|
||||
label_settings = SubResource("LabelSettings_ojehl")
|
||||
|
|
@ -59,9 +60,10 @@ layout_mode = 1
|
|||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -75.0
|
||||
offset_top = 155.0
|
||||
offset_right = 75.0
|
||||
offset_bottom = 190.0
|
||||
offset_left = -125.0
|
||||
offset_top = 170.0
|
||||
offset_right = 125.0
|
||||
offset_bottom = 223.0
|
||||
grow_horizontal = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "New Game"
|
||||
|
|
|
|||
|
|
@ -4,18 +4,19 @@
|
|||
[ext_resource type="Texture2D" uid="uid://cv84w0y2jg3i3" path="res://Sprites/i_are_spaceship.png" id="1_fn5yt"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_6vqwg"]
|
||||
radius = 3.0
|
||||
height = 10.0
|
||||
radius = 2.0
|
||||
height = 8.0
|
||||
|
||||
[node name="Laser" type="Area2D"]
|
||||
script = ExtResource("1_6vqwg")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
position = Vector2(-1, 1)
|
||||
scale = Vector2(2, 2)
|
||||
scale = Vector2(1.5, 1.5)
|
||||
texture = ExtResource("1_fn5yt")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(34, 17, 3, 7)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 1)
|
||||
shape = SubResource("CapsuleShape2D_6vqwg")
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://j2mr8pluyo37"]
|
||||
[gd_scene load_steps=2 format=3 uid="uid://dkqojwn3escv3"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cvfsmhdbgh8vh" path="res://Sprites/idle_spaceship.png" id="1_bkce2"]
|
||||
|
||||
[node name="Life" type="TextureRect"]
|
||||
offset_right = 15.0
|
||||
offset_bottom = 24.0
|
||||
[node name="TextureRect" type="TextureRect"]
|
||||
custom_minimum_size = Vector2(30, 48)
|
||||
offset_right = 30.0
|
||||
texture = ExtResource("1_bkce2")
|
||||
expand_mode = 5
|
||||
stretch_mode = 4
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
[ext_resource type="Script" uid="uid://dxbdiq4y3mqtd" path="res://Scripts/main_menu.gd" id="1_28flt"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_i2yjh"]
|
||||
font_size = 72
|
||||
font_size = 120
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
|
|
@ -31,46 +31,38 @@ layout_mode = 1
|
|||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -195.0
|
||||
offset_right = 195.0
|
||||
offset_bottom = 99.0
|
||||
offset_left = -273.0
|
||||
offset_top = -52.0
|
||||
offset_right = 273.0
|
||||
offset_bottom = 113.0
|
||||
grow_horizontal = 2
|
||||
text = "Asteroids"
|
||||
label_settings = SubResource("LabelSettings_i2yjh")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="New Game" type="Button" parent="Container"]
|
||||
[node name="ButtonContainer" type="VBoxContainer" parent="Container"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -75.0
|
||||
offset_top = 105.0
|
||||
offset_right = 75.0
|
||||
offset_bottom = 140.0
|
||||
offset_left = -125.0
|
||||
offset_top = 120.0
|
||||
offset_right = 125.0
|
||||
offset_bottom = 420.0
|
||||
grow_horizontal = 2
|
||||
theme_override_constants/separation = 15
|
||||
|
||||
[node name="New Game" type="Button" parent="Container/ButtonContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "New Game"
|
||||
|
||||
[node name="Quit" type="Button" parent="Container"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -75.0
|
||||
offset_top = 205.0
|
||||
offset_right = 75.0
|
||||
offset_bottom = 240.0
|
||||
grow_horizontal = 2
|
||||
text = "Quit"
|
||||
|
||||
[node name="Credits" type="Button" parent="Container"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -75.0
|
||||
offset_top = 155.0
|
||||
offset_right = 75.0
|
||||
offset_bottom = 190.0
|
||||
grow_horizontal = 2
|
||||
[node name="Credits" type="Button" parent="Container/ButtonContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "Credits"
|
||||
|
||||
[node name="Quit" type="Button" parent="Container/ButtonContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "Quit"
|
||||
|
|
|
|||
|
|
@ -77,14 +77,16 @@ animations = [{
|
|||
}]
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id="ConvexPolygonShape2D_kek77"]
|
||||
points = PackedVector2Array(-6, 0, -7, 7, 8, 7, 7, 0, 0, -8)
|
||||
points = PackedVector2Array(-7, 0, -8, 7, 7, 7, 6, 0, 0, -8)
|
||||
|
||||
[node name="Ship" type="CharacterBody2D"]
|
||||
scale = Vector2(2, 2)
|
||||
script = ExtResource("1_6ejuo")
|
||||
Laser = ExtResource("2_8aq7e")
|
||||
pew = ExtResource("3_fwcnm")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(-1, 0)
|
||||
sprite_frames = SubResource("SpriteFrames_1bvp3")
|
||||
animation = &"right"
|
||||
autoplay = "idle"
|
||||
|
|
@ -94,4 +96,4 @@ position = Vector2(0, -4)
|
|||
shape = SubResource("ConvexPolygonShape2D_kek77")
|
||||
|
||||
[node name="Muzzle" type="Marker2D" parent="."]
|
||||
position = Vector2(0, -15)
|
||||
position = Vector2(0, -14)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue