Skip to content

Commit

Permalink
Merge pull request #76 from endlessm/fix-viewport-example
Browse files Browse the repository at this point in the history
Add camera to fit default project size
  • Loading branch information
dylanmccall authored Jun 25, 2024
2 parents 0e3444e + f1d044d commit d78eba2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/block_code/examples/pong_game/pong_game.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,12 @@ script = ExtResource("3_6jaq8")
block_script = SubResource("Resource_6drva")

[node name="HUD" parent="." instance=ExtResource("8_yg457")]
follow_viewport_enabled = true

[node name="BlockCode" type="Node" parent="."]
script = ExtResource("3_6jaq8")
block_script = SubResource("Resource_f070g")

[node name="Camera2D" type="Camera2D" parent="."]
position = Vector2(960, 540)
zoom = Vector2(0.6, 0.6)

0 comments on commit d78eba2

Please sign in to comment.