File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 11extends Area2D
22
33
4- func _process (delta ):
4+ func _process (_delta ):
55 var enemies_in_range = get_overlapping_bodies ()
66 if enemies_in_range .size () > 0 :
77 var target_enemy = enemies_in_range .front ()
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ func _ready():
1313 % Slime .play_walk ()
1414
1515
16- func _physics_process (delta ):
16+ func _physics_process (_delta ):
1717 var direction = global_position .direction_to (player .global_position )
1818 velocity = direction * speed
1919 move_and_slide ()
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ Settings/Show_Tooltips=true
7676
7777config/name ="Your First 2D Game With Godot 4 (GDQuest)"
7878run/main_scene ="res://survivors_game.tscn"
79- config/features =PackedStringArray ("4.1 " , "Forward Plus" )
79+ config/features =PackedStringArray ("4.2 " , "Forward Plus" )
8080config/icon ="res://icon.png"
8181
8282[display ]
@@ -119,3 +119,7 @@ move_down={
119119[layer_names ]
120120
1211213d_physics/layer_2 ="player"
122+
123+ [rendering ]
124+
125+ renderer/rendering_method ="gl_compatibility"
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ Settings/Show_Tooltips=true
7575[application ]
7676
7777config/name ="Your First 2D Game With Godot 4: START (GDQuest)"
78- config/features =PackedStringArray ("4.1 " , "Forward Plus" )
78+ config/features =PackedStringArray ("4.2 " , "Forward Plus" )
7979config/icon ="res://icon.png"
8080
8181[display ]
@@ -118,3 +118,7 @@ move_down={
118118[layer_names ]
119119
1201203d_physics/layer_2 ="player"
121+
122+ [rendering ]
123+
124+ renderer/rendering_method ="gl_compatibility"
You can’t perform that action at this time.
0 commit comments