Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rotation and fix movement #5

Merged
merged 3 commits into from
Apr 13, 2021
Merged

add rotation and fix movement #5

merged 3 commits into from
Apr 13, 2021

Conversation

Sid-Bhatia-0
Copy link
Member

  1. Remove speed and radius from Agent's fields.
  2. Add method draw_line (and draw_agent_direction) using Bresenham's line algorithm.
  3. Add rotation upon pressing left and right arrow keys.
  4. Fix movement behaviour. Incorporate agent's direction.

@Sid-Bhatia-0 Sid-Bhatia-0 merged commit d5fcfb5 into master Apr 13, 2021
@Sid-Bhatia-0 Sid-Bhatia-0 deleted the add_rotation branch April 13, 2021 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant