Adding PhonePhreak Image #5

Merged
matt merged 1 commits from phonephreak-image into main 2026-10-03 11:46:59 -05:00
6 changed files with 73 additions and 17 deletions

No files matched your search

Binary file not shown.
Binary file not shown.
+40
View File
@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://hbkkhhlechol"
path="res://.godot/imported/phonephreak.png-e57daefd5201fd666bc927a15f0fb805.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/sprites/phonephreak.png"
dest_files=["res://.godot/imported/phonephreak.png-e57daefd5201fd666bc927a15f0fb805.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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
+4
View File
@@ -20,6 +20,10 @@ config/icon="res://icon.svg"
window/stretch/mode="canvas_items"
window/stretch/aspect="expand"
[filesystem]
import/blender/enabled=false
[input]
left={
+14 -9
View File
@@ -2,6 +2,7 @@
[ext_resource type="Script" uid="uid://c7fhd1eqlgwr4" path="res://scripts/Phonephreak.gd" id="1_knn0u"]
[ext_resource type="FontFile" uid="uid://dkytywan8eapf" path="res://assets/fonts/PixelOperator8.ttf" id="2_bg4gc"]
[ext_resource type="Texture2D" uid="uid://hbkkhhlechol" path="res://assets/sprites/phonephreak.png" id="3_ba2os"]
[node name="Phonephreak" type="Node2D" unique_id=1830177910]
script = ExtResource("1_knn0u")
@@ -11,22 +12,26 @@ script = ExtResource("1_knn0u")
[node name="Button0" type="Button" parent="." unique_id=1619377723]
offset_left = 568.0
offset_top = 494.0
offset_right = 668.0
offset_bottom = 594.0
offset_right = 613.0
offset_bottom = 541.0
flat = true
[node name="Label" type="Label" parent="Button0" unique_id=1004291322]
layout_mode = 0
offset_left = 15.0
offset_top = 14.0
offset_right = 85.0
offset_bottom = 94.0
offset_right = 44.0
offset_bottom = 51.0
theme_override_fonts/font = ExtResource("2_bg4gc")
theme_override_font_sizes/font_size = 80
theme_override_font_sizes/font_size = 50
text = "0"
[node name="ColorRect" type="ColorRect" parent="Button0" unique_id=582830561]
layout_mode = 0
offset_right = 100.0
offset_bottom = 100.0
offset_right = 43.0
offset_bottom = 47.0
mouse_filter = 2
color = Color(1, 1, 1, 0)
[node name="Phonephreak" type="Sprite2D" parent="." unique_id=1607325509]
position = Vector2(253, 328)
scale = Vector2(2.17, 2.17)
texture = ExtResource("3_ba2os")
+9 -8
View File
@@ -22,21 +22,22 @@ const PhoneSounds = [
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
var origin = Vector2(0, 0)
var offset = 125
$Button0.position.x = origin.x + 1 * offset
$Button0.position.y = origin.y + 3 * offset
var origin = Vector2(150, 225)
var offset = Vector2(135, 120)
$Button0.position.y = origin.y + 3 * offset.y + 3 * -10
$Button0.position.x = origin.x + 1 * offset.x + 2 * -5
$Button0.move_to_front()
buttons.append($Button0)
for i in range(0, 9):
var col = i % 3
var row = i / 3
var row = i % 3
var col = i / 3
var b: Button = $Button0.duplicate()
var label: Label = b.get_child(0)
label.text = "%s" %(i+1)
var rect: ColorRect = b.get_child(1)
rect.color = Color.from_rgba8(255, 255, 255, 0)
b.position.x = origin.x + col * offset
b.position.y = origin.y + row * offset
b.position.y = origin.y + col * offset.y + row * -10
b.position.x = origin.x + row * offset.x + col+1 * -5
b.pressed.connect(_on_button_pressed.bind(i+1))
buttons.append(b)
b.name = "Button%i" %(i)