Updating Testscene

- Make Scaling Right
- Fix Players Collision Box
This commit is contained in:
Snoweuph 2023-04-08 23:00:44 +02:00
parent e4e4d7e30b
commit 50f435b5f7
2 changed files with 6 additions and 3 deletions

View file

@ -121,6 +121,7 @@ _data = {
[node name="Player Movement" type="Node2D"] [node name="Player Movement" type="Node2D"]
[node name="Map Generator" type="TileMap" parent="."] [node name="Map Generator" type="TileMap" parent="."]
scale = Vector2(1.5, 1.5)
tile_set = ExtResource("1_s4utw") tile_set = ExtResource("1_s4utw")
cell_quadrant_size = 32 cell_quadrant_size = 32
format = 2 format = 2
@ -132,7 +133,7 @@ script = ExtResource("3_dvklj")
bunny_prefab = ExtResource("4_0fyd5") bunny_prefab = ExtResource("4_0fyd5")
[node name="Player" type="CharacterBody2D" parent="." node_paths=PackedStringArray("animation_player")] [node name="Player" type="CharacterBody2D" parent="." node_paths=PackedStringArray("animation_player")]
position = Vector2(960, 512) position = Vector2(1440, 810)
collision_layer = 0 collision_layer = 0
script = ExtResource("5_uv7bh") script = ExtResource("5_uv7bh")
speed = 60 speed = 60
@ -145,10 +146,12 @@ hframes = 8
vframes = 4 vframes = 4
[node name="Player Collider" type="CollisionPolygon2D" parent="Player"] [node name="Player Collider" type="CollisionPolygon2D" parent="Player"]
position = Vector2(2, -24)
polygon = PackedVector2Array(12, 32, -16, 32, -16, -24, 12, -24) polygon = PackedVector2Array(12, 32, -16, 32, -16, -24, 12, -24)
[node name="Player Camera" type="Camera2D" parent="Player"] [node name="Player Camera" type="Camera2D" parent="Player"]
zoom = Vector2(5, 5) position = Vector2(-1, -25)
zoom = Vector2(3, 3)
position_smoothing_enabled = true position_smoothing_enabled = true
drag_horizontal_enabled = true drag_horizontal_enabled = true
drag_vertical_enabled = true drag_vertical_enabled = true

View file

@ -66,6 +66,6 @@ attack={
[rendering] [rendering]
textures/canvas_textures/default_texture_filter=0
renderer/rendering_method="gl_compatibility" renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility" renderer/rendering_method.mobile="gl_compatibility"
textures/canvas_textures/default_texture_filter=0