mirror of
https://github.com/HarmonyHoney/tiny_crate.git
synced 2026-01-23 02:34:53 +00:00
stage display lined up ! can remove excess tiles
This commit is contained in:
parent
8d99147739
commit
54ea3cff32
2 changed files with 4 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ var current_map := "1-1"
|
|||
onready var screens_node : Control = $Control/Screens
|
||||
onready var screen : Control = $Control/Screen
|
||||
export var screen_dist = Vector2(5, 5)
|
||||
export var screen_size = Vector2(136, 104)
|
||||
export var screen_size = Vector2(136, 96)
|
||||
export var columns = 8
|
||||
var screen_pos := []
|
||||
var screen_static := []
|
||||
|
|
@ -197,7 +197,7 @@ func _physics_process(delta):
|
|||
|
||||
pop[2].add_child(inst)
|
||||
if is_instance_valid(cam):
|
||||
inst.position += stage_size / 2
|
||||
inst.position -= cam.position
|
||||
|
||||
screen_static[pop[0]].visible = false
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -69,7 +69,6 @@ script = ExtResource( 7 )
|
|||
__meta__ = {
|
||||
"_edit_lock_": true
|
||||
}
|
||||
screen_size = Vector2( 136, 96 )
|
||||
|
||||
[node name="Control" type="Control" parent="."]
|
||||
margin_right = 320.0
|
||||
|
|
@ -104,6 +103,8 @@ rect = Rect2( 0, 0, 136, 96 )
|
|||
script = ExtResource( 4 )
|
||||
|
||||
[node name="Node2D" type="Node2D" parent="Control/Screen/Vis"]
|
||||
position = Vector2( 68, 48 )
|
||||
z_index = -400
|
||||
|
||||
[node name="Static" type="ColorRect" parent="Control/Screen/Vis"]
|
||||
modulate = Color( 0.14, 0.14, 0.14, 1 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue