Added pause and mute.

Improved fonts and font scaling
Added level editor
This commit is contained in:
2024-05-05 22:36:32 +01:00
parent fef3ae9d8e
commit 81d8e14746
355 changed files with 3231 additions and 5428 deletions

BIN
Brick/BlankBrick.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cvqjlacpxf5j8"
path="res://.godot/imported/BlankBrick.png-437494e4b1c26cf61ba26e02c818b979.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Brick/BlankBrick.png"
dest_files=["res://.godot/imported/BlankBrick.png-437494e4b1c26cf61ba26e02c818b979.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -3,7 +3,8 @@ class_name Brick
enum {
NORMAL,
SHINY,
SILVER,
GOLD,
INVULNERABLE
}
@@ -32,8 +33,8 @@ func hit() -> void:
get_tree().create_timer(5).timeout.connect(_show_block)
return
brick_destroyed.emit(self)
get_parent().remove_child(self)
queue_free()
get_parent().call_deferred("remove_child", self)
call_deferred("queue_free")
else:
var tween = create_tween()
$TextureRect.modulate = Color(1, 1, 1)
@@ -56,11 +57,16 @@ func type(base : int, color : Color) -> void:
$TextureRect.modulate = color
hits = 1
value = 100
SHINY:
SILVER:
$TextureRect.texture = load("res://Brick/ShinyBrick.png")
$TextureRect.modulate = color
hits = 2
value = 200
GOLD:
$TextureRect.texture = load("res://Brick/ShinyBrick.png")
$TextureRect.modulate = color
hits = 3
value = 500
INVULNERABLE:
$TextureRect.texture = load("res://Brick/InvulBrick.png")
$TextureRect.modulate = color

View File

@@ -1,19 +1,15 @@
[gd_scene load_steps=5 format=3 uid="uid://wld2y5cseki8"]
[ext_resource type="Script" path="res://Brick/Brick.gd" id="1_eylhu"]
[ext_resource type="PhysicsMaterial" uid="uid://cql6t5hd40fgn" path="res://CorePhysics.tres" id="1_it5u2"]
[ext_resource type="Texture2D" uid="uid://cipjurqgguse7" path="res://Brick/BaseBrick.png" id="2_v230s"]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_s6ufd"]
rough = true
bounce = 10.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xxkpg"]
size = Vector2(32, 16)
[node name="Brick" type="StaticBody2D"]
input_pickable = true
physics_material_override = SubResource("PhysicsMaterial_s6ufd")
constant_linear_velocity = Vector2(0, 50)
physics_material_override = ExtResource("1_it5u2")
script = ExtResource("1_eylhu")
[node name="Shadow" type="ColorRect" parent="."]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 614 B

After

Width:  |  Height:  |  Size: 5.6 KiB