base level camera

This commit is contained in:
Dana 2025-09-02 15:35:13 +03:00
commit 0aebf6fa9b
8 changed files with 126 additions and 3 deletions

View file

@ -0,0 +1,14 @@
[gd_scene load_steps=3 format=3 uid="uid://i3u4tuahol83"]
[ext_resource type="Texture2D" uid="uid://crq58656204me" path="res://assets/blocks_programm/beatle.png" id="1_e2y7o"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mlwwt"]
size = Vector2(8, 8)
[node name="CharacterBody2D" type="CharacterBody2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_e2y7o")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_mlwwt")

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=3 format=3 uid="uid://bv4rxfc4hm6t7"]
[gd_scene load_steps=4 format=3 uid="uid://bv4rxfc4hm6t7"]
[ext_resource type="PackedScene" uid="uid://bv27o64fwb1l1" path="res://scenes/blocks/step.tscn" id="1_n7yau"]
[ext_resource type="PackedScene" uid="uid://r3u4855s3sbq" path="res://scenes/blocks/turn.tscn" id="2_i14ye"]
[ext_resource type="Texture2D" uid="uid://0p2fn0fpolbt" path="res://assets/blocks_programm/play_script.png" id="3_i14ye"]
[node name="LevelHandler" type="Control"]
layout_mode = 3
@ -75,6 +76,23 @@ anchor_right = 0.163
anchor_bottom = 0.05
offset_left = 0.0249977
offset_right = 269.025
offset_bottom = 647.0
offset_bottom = 606.0
mouse_filter = 2
theme_override_constants/separation = 50
[node name="HBoxContainer" type="HBoxContainer" parent="ColorRect"]
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -46.0
offset_right = -6.10352e-05
grow_horizontal = 2
grow_vertical = 0
[node name="TextureButtonPlayScript" type="TextureButton" parent="ColorRect/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 4
texture_normal = ExtResource("3_i14ye")

View file

@ -1,6 +1,8 @@
[gd_scene load_steps=4 format=3 uid="uid://qtbj61yxud26"]
[gd_scene load_steps=6 format=3 uid="uid://qtbj61yxud26"]
[ext_resource type="Script" uid="uid://nmmuvdffrtuu" path="res://scripts/blocks_programm/base_level.gd" id="1_ishh6"]
[ext_resource type="Texture2D" uid="uid://c6p5jv6qlgjp5" path="res://assets/blocks_programm/tile_set.png" id="1_v4bdw"]
[ext_resource type="PackedScene" uid="uid://i3u4tuahol83" path="res://scenes/blocks_programming/beatle.tscn" id="2_yi2kq"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_yi2kq"]
texture = ExtResource("1_v4bdw")
@ -26,10 +28,16 @@ texture = ExtResource("1_v4bdw")
2:8/0 = 0
[sub_resource type="TileSet" id="TileSet_ishh6"]
tile_size = Vector2i(32, 32)
sources/0 = SubResource("TileSetAtlasSource_yi2kq")
[node name="base_level" type="Node2D"]
script = ExtResource("1_ishh6")
[node name="TileMap" type="TileMap" parent="."]
tile_set = SubResource("TileSet_ishh6")
format = 2
[node name="Beatle" parent="." instance=ExtResource("2_yi2kq")]
[node name="Camera2D" type="Camera2D" parent="."]