From 6b2cb183196da4ae1d4c9c49c35c04c31819286c Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 2 Apr 2022 19:43:02 +0200 Subject: [PATCH] :hammer: Hide non-code files --- .vscode/settings.json | 6 +++++- src/Fire.tscn | 10 +++++++++- src/Game.tscn | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index d7b46dd..9e2b33f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,10 @@ { "files.exclude": { - "**/.import": true + "**/*.import": true, + "**/*.png": true, + "**/*.tscn": true, + "**/*.tres": true, + "**/*.godot": true, }, "editor.insertSpaces": false, "editor.renderWhitespace": "all" diff --git a/src/Fire.tscn b/src/Fire.tscn index 104dd9c..86262a9 100644 --- a/src/Fire.tscn +++ b/src/Fire.tscn @@ -1,8 +1,11 @@ -[gd_scene load_steps=3 format=2] +[gd_scene load_steps=4 format=2] [ext_resource path="res://src/Light.png" type="Texture" id=1] [ext_resource path="res://src/White.png" type="Texture" id=2] +[sub_resource type="RectangleShape2D" id=1] +extents = Vector2( 16, 16 ) + [node name="Fire" type="Sprite"] texture = ExtResource( 2 ) @@ -10,3 +13,8 @@ texture = ExtResource( 2 ) texture = ExtResource( 1 ) texture_scale = 0.5 color = Color( 1, 0.592157, 0.592157, 1 ) + +[node name="Body" type="StaticBody2D" parent="."] + +[node name="Shape" type="CollisionShape2D" parent="Body"] +shape = SubResource( 1 ) diff --git a/src/Game.tscn b/src/Game.tscn index f095c3d..bef61aa 100644 --- a/src/Game.tscn +++ b/src/Game.tscn @@ -13,4 +13,4 @@ tile_data = PoolIntArray( 0, 2, 0, 1, 2, 0, 2, 2, 0, 3, 2, 0, 4, 2, 0, 5, 2, 0, position = Vector2( 553, 296 ) [node name="Fire" parent="." instance=ExtResource( 3 )] -position = Vector2( 551, 345 ) +position = Vector2( 594, 305 )