Basic Movement and Map Generation #22

Merged
Snoweuph merged 17 commits from dev-base into stable 2023-04-08 00:41:10 +00:00
2 changed files with 14 additions and 2 deletions
Showing only changes of commit 537589e30b - Show all commits

View file

@ -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="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="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="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="."] [node name="CharacterBody2D" type="CharacterBody2D" parent="."]
position = Vector2(512, 300)
scale = Vector2(0.25, 0.25)
script = ExtResource("1_x3102") script = ExtResource("1_x3102")
speed = 80
[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D"] [node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D"]
texture = ExtResource("2_48vut") texture = ExtResource("2_48vut")
@ -15,6 +27,7 @@ texture = ExtResource("2_48vut")
polygon = PackedVector2Array(16, 32, -14, 32, -14, -22, 16, -22) polygon = PackedVector2Array(16, 32, -14, 32, -14, -22, 16, -22)
[node name="Camera2D" type="Camera2D" parent="CharacterBody2D"] [node name="Camera2D" type="Camera2D" parent="CharacterBody2D"]
zoom = Vector2(10, 10)
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

@ -59,4 +59,3 @@ move_down={
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 textures/canvas_textures/default_texture_filter=0