Skip to content

Solved Issue#19#20

Open
RohanDeshpande1998 wants to merge 3 commits into
cgrooves:mainfrom
RohanDeshpande1998:main
Open

Solved Issue#19#20
RohanDeshpande1998 wants to merge 3 commits into
cgrooves:mainfrom
RohanDeshpande1998:main

Conversation

@RohanDeshpande1998

Copy link
Copy Markdown

Created new class Turret, with its own draw, click and update methods. Made a minor variable change to the main black_earth file, since the the attribute which was referenced before was migrated to a new class.

Comment thread game/tank.py Outdated
Comment thread game/tank.py Outdated
Comment thread game/tank.py
@@ -38,6 +38,7 @@ def __init__(
# TODO: make a Turret class later on to encapsulate this

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove # TODO comment before merging in

Comment thread game/tank.py
self.name = name
self.position = position
self.color = color
self.turretAngleDeg = TANK_STARTING_ANGLE_DEG

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change turretAngleDeg and others to just angleDeg

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.

2 participants