forked from interstellar_development/freettrpg
		
	uncomented .tscn
This commit is contained in:
		
							parent
							
								
									b803229d32
								
							
						
					
					
						commit
						39f6b1e247
					
				
					 1 changed files with 13 additions and 22 deletions
				
			
		|  | @ -1,41 +1,32 @@ | ||||||
| [gd_scene load_steps=4 format=3 uid="uid://dv67vdgb4h44q"] | [gd_scene load_steps=4 format=3 uid="uid://dv67vdgb4h44q"] | ||||||
| 
 | 
 | ||||||
| # External resource for the player texture |  | ||||||
| [ext_resource type="Texture2D" uid="uid://dheqglouhkis6" path="res://testing/testAssets/player.png" id="1_cujcj"] | [ext_resource type="Texture2D" uid="uid://dheqglouhkis6" path="res://testing/testAssets/player.png" id="1_cujcj"] | ||||||
| 
 | 
 | ||||||
| # External resource for the player script |  | ||||||
| [ext_resource type="Script" path="res://scripts/player.gd" id="1_oik63"] | [ext_resource type="Script" path="res://scripts/player.gd" id="1_oik63"] | ||||||
| 
 | 
 | ||||||
| # Sub-resource for the collision shape of the player |  | ||||||
| [sub_resource type="RectangleShape2D" id="RectangleShape2D_kf6qt"] | [sub_resource type="RectangleShape2D" id="RectangleShape2D_kf6qt"] | ||||||
| size = Vector2(20, 18) # Setting the size of the RectangleShape2D | size = Vector2(20, 18) | ||||||
| 
 | 
 | ||||||
| # Root node of the scene, a CharacterBody2D named "player" |  | ||||||
| [node name="player" type="CharacterBody2D"] | [node name="player" type="CharacterBody2D"] | ||||||
| script = ExtResource("1_oik63") # Assigning the external script to the player node | script = ExtResource("1_oik63")  | ||||||
| 
 | 
 | ||||||
| # Child node of the player, a Sprite2D named "sprite" |  | ||||||
| [node name="sprite" type="Sprite2D" parent="."] | [node name="sprite" type="Sprite2D" parent="."] | ||||||
| texture = ExtResource("1_cujcj") # Assigning the external texture to the sprite node | texture = ExtResource("1_cujcj") | ||||||
| 
 | 
 | ||||||
| # Child node of the player, a CollisionShape2D named "CollisionShape2D" |  | ||||||
| [node name="CollisionShape2D" type="CollisionShape2D" parent="."] | [node name="CollisionShape2D" type="CollisionShape2D" parent="."] | ||||||
| shape = SubResource("RectangleShape2D_kf6qt") # Assigning the rectangle shape as the collision shape | shape = SubResource("RectangleShape2D_kf6qt")  | ||||||
| 
 | 
 | ||||||
| # Child node of the player, a Camera2D named "camera" |  | ||||||
| [node name="camera" type="Camera2D" parent="."] | [node name="camera" type="Camera2D" parent="."] | ||||||
| enabled = false # Camera is initially disabled | enabled = false  | ||||||
| 
 | 
 | ||||||
| # Child node of the player, a Button named "stats" |  | ||||||
| [node name="stats" type="Button" parent="."] | [node name="stats" type="Button" parent="."] | ||||||
| visible = false # Button is initially invisible | visible = false  | ||||||
| offset_left = 112.0 # Left offset of the button | offset_left = 112.0  | ||||||
| offset_top = 152.0 # Top offset of the button | offset_top = 152.0  | ||||||
| offset_right = 238.0 # Right offset of the button | offset_right = 238.0  | ||||||
| offset_bottom = 187.0 # Bottom offset of the button | offset_bottom = 187.0  | ||||||
| scale = Vector2(2, 2) # Scaling the button by a factor of 2 | scale = Vector2(2, 2) | ||||||
| disabled = true # Button is initially disabled | disabled = true  | ||||||
| text = "Stats" # Text displayed on the button | text = "Stats"  | ||||||
| 
 | 
 | ||||||
| # Connecting the "pressed" signal of the "stats" button to the "_on_stats_pressed" method in the current node |  | ||||||
| [connection signal="pressed" from="stats" to="." method="_on_stats_pressed"] | [connection signal="pressed" from="stats" to="." method="_on_stats_pressed"] | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sage The DM
						Sage The DM