File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
arcade-platformer/arcade_platformer Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -788,18 +788,15 @@ def on_update(self, delta_time: float) -> None:
788788 # Update the synchronized platforms
789789 for synch_group in self .synchronized_groups .values ():
790790 # Find the master
791-
792791 for sprite in synch_group :
793792 if sprite .properties ["order" ] == 0 :
794793 master = sprite
795794
796795 # Update the rest based on the master
797796 for sprite in synch_group :
798797 if sprite .properties ["order" ] != 0 :
799- diff_x = sprite .properties ["diff_x" ]
800- diff_y = sprite .properties ["diff_y" ]
801- sprite .left = master .left + diff_x
802- sprite .bottom = master .bottom + diff_y
798+ sprite .left = master .left + sprite .properties ["diff_x" ]
799+ sprite .bottom = master .bottom + sprite .properties ["diff_y" ]
803800
804801 # Check if we've picked up a coin
805802 coins_hit = arcade .check_for_collision_with_list (
You can’t perform that action at this time.
0 commit comments