Skip to content

Commit f05eb08

Browse files
committed
Pong: remove Ball script
This example aims to show how to build a game without GDScript. Remove the Ball script which was primarily exposing some custom inspector properties.
1 parent 76adc27 commit f05eb08

File tree

3 files changed

+0
-42
lines changed

3 files changed

+0
-42
lines changed

addons/block_code/examples/pong_game/ball.gd

Lines changed: 0 additions & 39 deletions
This file was deleted.

addons/block_code/examples/pong_game/ball.tscn

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[gd_scene load_steps=5 format=3 uid="uid://c7l70grmkauij"]
22

3-
[ext_resource type="Script" path="res://addons/block_code/examples/pong_game/ball.gd" id="1_vdrab"]
43
[ext_resource type="Texture2D" uid="uid://bcgr5amsq3jfl" path="res://addons/block_code/examples/pong_game/assets/ball.png" id="2_xkrmm"]
54

65
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_c3m63"]
@@ -20,7 +19,6 @@ contact_monitor = true
2019
linear_velocity = Vector2(353.553, 353.553)
2120
linear_damp_mode = 1
2221
angular_damp_mode = 1
23-
script = ExtResource("1_vdrab")
2422

2523
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
2624
unique_name_in_owner = true

addons/block_code/examples/pong_game/pong_game.tscn

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,6 @@ block_script = SubResource("Resource_lxj2y")
986986
modulate = Color(0.511, 0.362, 0.972, 1)
987987
position = Vector2(960, 544)
988988
gravity_scale = 0.0
989-
linear_velocity = Vector2(353.553, 353.553)
990989

991990
[node name="BlockCode" type="Node" parent="Ball"]
992991
script = ExtResource("3_6jaq8")

0 commit comments

Comments
 (0)