Quellcode durchsuchen

Remove debug line

DricomDragon vor 3 Jahren
Ursprung
Commit
2b989351ec
2 geänderte Dateien mit 13 neuen und 14 gelöschten Zeilen
  1. 13 13
      godot/scenes/main.tscn
  2. 0 1
      godot/scripts/Launcher.gd

+ 13 - 13
godot/scenes/main.tscn

@@ -6,20 +6,20 @@
 [ext_resource path="res://scripts/Launcher.gd" type="Script" id=4]
 [ext_resource path="res://image/visor.png" type="Texture" id=5]
 
-[sub_resource type="PhysicsMaterial" id=5]
+[sub_resource type="PhysicsMaterial" id=1]
 friction = 0.0
 bounce = 1.0
 
-[sub_resource type="RectangleShape2D" id=6]
+[sub_resource type="RectangleShape2D" id=2]
 extents = Vector2( 50, 300 )
 
-[sub_resource type="RectangleShape2D" id=7]
+[sub_resource type="RectangleShape2D" id=3]
 extents = Vector2( 300, 50 )
 
-[sub_resource type="ConvexPolygonShape2D" id=1]
+[sub_resource type="ConvexPolygonShape2D" id=4]
 points = PoolVector2Array( 0, 0, 40, 0, 40, 20, 0, 20 )
 
-[sub_resource type="TileSet" id=2]
+[sub_resource type="TileSet" id=5]
 0/name = "brik.png 0"
 0/texture = ExtResource( 2 )
 0/tex_offset = Vector2( 0, 0 )
@@ -32,34 +32,34 @@ points = PoolVector2Array( 0, 0, 40, 0, 40, 20, 0, 20 )
 "autotile_coord": Vector2( 0, 0 ),
 "one_way": false,
 "one_way_margin": 1.0,
-"shape": SubResource( 1 ),
+"shape": SubResource( 4 ),
 "shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
 } ]
 0/z_index = 0
 
-[sub_resource type="RectangleShape2D" id=8]
+[sub_resource type="RectangleShape2D" id=6]
 extents = Vector2( 200, 50 )
 
 [node name="Node2D" type="Node2D"]
 
 [node name="Walls" type="StaticBody2D" parent="."]
-physics_material_override = SubResource( 5 )
+physics_material_override = SubResource( 1 )
 
 [node name="Left" type="CollisionShape2D" parent="Walls"]
 position = Vector2( -50, 200 )
-shape = SubResource( 6 )
+shape = SubResource( 2 )
 
 [node name="Right" type="CollisionShape2D" parent="Walls"]
 position = Vector2( 450, 200 )
-shape = SubResource( 6 )
+shape = SubResource( 2 )
 
 [node name="Top" type="CollisionShape2D" parent="Walls"]
 position = Vector2( 200, -50 )
-shape = SubResource( 7 )
+shape = SubResource( 3 )
 
 [node name="Grid" type="TileMap" parent="."]
 mode = 2
-tile_set = SubResource( 2 )
+tile_set = SubResource( 5 )
 cell_size = Vector2( 40, 20 )
 cell_custom_transform = Transform2D( 40, 0, 0, 20, 0, 0 )
 format = 1
@@ -70,7 +70,7 @@ position = Vector2( 200, 470 )
 script = ExtResource( 3 )
 
 [node name="Area" type="CollisionShape2D" parent="Catcher"]
-shape = SubResource( 8 )
+shape = SubResource( 6 )
 
 [node name="Launcher" type="Node2D" parent="."]
 script = ExtResource( 4 )

+ 0 - 1
godot/scripts/Launcher.gd

@@ -62,7 +62,6 @@ func _on_Launcher_get_firing():
 
 func _on_Ball_tree_exited():
 	loadBullet(1)
-	print(get_tree().get_nodes_in_group("ball").size())
 	if (get_tree().get_nodes_in_group("ball").size() == 0):
 		current_state = State.READY
 		target.position = source.position