🎉 Initial Commit
✨ Grid system, player movement etc
This commit is contained in:
BIN
Scenes/Entities/Player.png
Normal file
BIN
Scenes/Entities/Player.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 893 KiB |
34
Scenes/Entities/Player.png.import
Normal file
34
Scenes/Entities/Player.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://jye6c2ehuxtg"
|
||||
path="res://.godot/imported/Player.png-a47763ac98e2bfa7959d9f7899f4e3bc.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Scenes/Entities/Player.png"
|
||||
dest_files=["res://.godot/imported/Player.png-a47763ac98e2bfa7959d9f7899f4e3bc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
19
Scenes/Entities/Player.tscn
Normal file
19
Scenes/Entities/Player.tscn
Normal file
@@ -0,0 +1,19 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://doxy60afddg1m"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dgm1o21sv2o1x" path="res://Scripts/Entities/Player.cs" id="1_08t41"]
|
||||
[ext_resource type="Texture2D" uid="uid://jye6c2ehuxtg" path="res://Scenes/Entities/Player.png" id="1_ucweq"]
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
script = ExtResource("1_08t41")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.1, 0.1)
|
||||
texture = ExtResource("1_ucweq")
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||||
position = Vector2(1, 2.5)
|
||||
polygon = PackedVector2Array(54, 87.5, 62, 76.5, 7, -89.5, -1, -92.5, -10, -89.5, -64, 76.5, -55, 87.5)
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
process_callback = 0
|
||||
position_smoothing_enabled = true
|
22
Scenes/Root.tscn
Normal file
22
Scenes/Root.tscn
Normal file
@@ -0,0 +1,22 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://c22aprj452aha"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cudpc3w17mbsw" path="res://Scripts/System/GridManager.cs" id="1_knkkn"]
|
||||
[ext_resource type="Script" uid="uid://bx1wj7gn6vrqe" path="res://Scripts/System/PlacementManager.cs" id="2_sxhdm"]
|
||||
[ext_resource type="PackedScene" uid="uid://doxy60afddg1m" path="res://Scenes/Entities/Player.tscn" id="3_oss8w"]
|
||||
[ext_resource type="PackedScene" uid="uid://d1pudmkg5nnhj" path="res://Scenes/Tiles/WallTile.tscn" id="3_sxhdm"]
|
||||
|
||||
[node name="Root" type="Node2D"]
|
||||
|
||||
[node name="GridSystem" type="Node2D" parent="."]
|
||||
script = ExtResource("1_knkkn")
|
||||
|
||||
[node name="PlacementSystem" type="Node2D" parent="." node_paths=PackedStringArray("Grid")]
|
||||
script = ExtResource("2_sxhdm")
|
||||
BuildingScene = ExtResource("3_sxhdm")
|
||||
Grid = NodePath("../GridSystem")
|
||||
|
||||
[node name="WallTile" parent="." instance=ExtResource("3_sxhdm")]
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("3_oss8w")]
|
||||
position = Vector2(602, 324)
|
||||
scale = Vector2(0.5, 0.5)
|
BIN
Scenes/Tiles/WallTile.png
Normal file
BIN
Scenes/Tiles/WallTile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 942 KiB |
34
Scenes/Tiles/WallTile.png.import
Normal file
34
Scenes/Tiles/WallTile.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://14ohvtl6eroj"
|
||||
path="res://.godot/imported/WallTile.png-6f272ac3f660cd90075e54aa0a66efaf.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Scenes/Tiles/WallTile.png"
|
||||
dest_files=["res://.godot/imported/WallTile.png-6f272ac3f660cd90075e54aa0a66efaf.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
17
Scenes/Tiles/WallTile.tscn
Normal file
17
Scenes/Tiles/WallTile.tscn
Normal file
@@ -0,0 +1,17 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://d1pudmkg5nnhj"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://14ohvtl6eroj" path="res://Scenes/Tiles/WallTile.png" id="1_8o613"]
|
||||
[ext_resource type="Script" uid="uid://cywgb6hvlw8lr" path="res://Scripts/Tiles/WallTile.cs" id="1_ph7y3"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8o613"]
|
||||
size = Vector2(54, 54)
|
||||
|
||||
[node name="WallTile" type="StaticBody2D"]
|
||||
script = ExtResource("1_ph7y3")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.05, 0.05)
|
||||
texture = ExtResource("1_8o613")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_8o613")
|
Reference in New Issue
Block a user