From 537589e30ba817ff3cbbc73934a6336a866866dd Mon Sep 17 00:00:00 2001 From: Snoweuph Date: Fri, 7 Apr 2023 16:22:55 +0200 Subject: [PATCH] Putting Generated Map into PlayerMovement Scene For testing --- Scenes/PlayerMovement.tscn | 15 ++++++++++++++- project.godot | 1 - 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Scenes/PlayerMovement.tscn b/Scenes/PlayerMovement.tscn index 73f741f..ac57954 100644 --- a/Scenes/PlayerMovement.tscn +++ b/Scenes/PlayerMovement.tscn @@ -1,12 +1,24 @@ -[gd_scene load_steps=3 format=3 uid="uid://ccgpsim5nfxd6"] +[gd_scene load_steps=5 format=3 uid="uid://ccgpsim5nfxd6"] [ext_resource type="Script" path="res://Scripts/PlayerController.gd" id="1_x3102"] [ext_resource type="Texture2D" uid="uid://c6n0go8l4gaak" path="res://Assets/Sprites/Jesus_Left_Idle.png" id="2_48vut"] +[ext_resource type="TileSet" uid="uid://b7cqbf6xdbeal" path="res://Assets/Test_Tileset.tres" id="3_0at2g"] +[ext_resource type="Script" path="res://Scripts/MapGenerator.gd" id="4_8st0q"] [node name="Node2D" type="Node2D"] +[node name="TileMap" type="TileMap" parent="."] +tile_set = ExtResource("3_0at2g") +cell_quadrant_size = 8 +collision_visibility_mode = 1 +format = 2 +script = ExtResource("4_8st0q") + [node name="CharacterBody2D" type="CharacterBody2D" parent="."] +position = Vector2(512, 300) +scale = Vector2(0.25, 0.25) script = ExtResource("1_x3102") +speed = 80 [node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D"] texture = ExtResource("2_48vut") @@ -15,6 +27,7 @@ texture = ExtResource("2_48vut") polygon = PackedVector2Array(16, 32, -14, 32, -14, -22, 16, -22) [node name="Camera2D" type="Camera2D" parent="CharacterBody2D"] +zoom = Vector2(10, 10) position_smoothing_enabled = true drag_horizontal_enabled = true drag_vertical_enabled = true diff --git a/project.godot b/project.godot index 8bb1ac3..148a2ef 100644 --- a/project.godot +++ b/project.godot @@ -59,4 +59,3 @@ move_down={ renderer/rendering_method="gl_compatibility" renderer/rendering_method.mobile="gl_compatibility" textures/canvas_textures/default_texture_filter=0 -