Skip to content

Commit

Permalink
Changed laser scan order.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohsLoje committed May 13, 2018
1 parent 50e1fd9 commit 617e82c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flappy_main_game/scripts/laser.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def scan(self,startPoint,bitmap,time):

for i in raysToCast:
# calc endpoint from angle and range
angle = self.angle_max-(i*self.angle_increment)
angle = self.angle_min+(i*self.angle_increment)
endPoint = (int(math.cos(angle)*self.range + startPoint[0]),
int(-math.sin(angle)*self.range + startPoint[1]))
#endpoint
Expand Down

0 comments on commit 617e82c

Please sign in to comment.