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

fix: scale cars #1661

Merged
merged 7 commits into from
May 19, 2022
Merged

fix: scale cars #1661

merged 7 commits into from
May 19, 2022

Conversation

KamilPawel
Copy link
Collaborator

@KamilPawel KamilPawel commented May 18, 2022

This change is Reviewable

Copy link
Collaborator

@razvan-pro razvan-pro left a comment

Choose a reason for hiding this comment

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

Reviewed 8 of 9 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @KamilPawel)


aimmo/worksheets.py line 199 at r2 (raw file):

#       - avatar_state.backpack -> LIST OF HELD ARTEFACTS
#       - artefact.type -> TYPE (e.g. artefact_types.KEY or artefact_types.CHEST)
#

We can remove this empty line to keep it consistent with other started codes


game_frontend/src/babylon/assetPacks/modern.ts line 83 at r2 (raw file):

   */

  createRandomRotation(obstacle: any): number {

Arg can be removed


game_frontend/src/babylon/assetPacks/modern.ts line 94 at r2 (raw file):

      return Math.floor(Math.random() * max)
    }
    return angles[getRandomInt(4)]

I think this could be Math.PI * Math.floor(Math.random() * 4) / 2 to avoid the dict

Copy link
Collaborator Author

@KamilPawel KamilPawel left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @razvan-pro)


aimmo/worksheets.py line 199 at r2 (raw file):

Previously, razvan-pro (Razvan Mahu) wrote…

We can remove this empty line to keep it consistent with other started codes

Done.


game_frontend/src/babylon/assetPacks/modern.ts line 83 at r2 (raw file):

Previously, razvan-pro (Razvan Mahu) wrote…

Arg can be removed

Done.


game_frontend/src/babylon/assetPacks/modern.ts line 94 at r2 (raw file):

Previously, razvan-pro (Razvan Mahu) wrote…

I think this could be Math.PI * Math.floor(Math.random() * 4) / 2 to avoid the dict

Done.

Copy link
Collaborator

@razvan-pro razvan-pro left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @KamilPawel)

Copy link
Contributor

@dionizh dionizh left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @KamilPawel)


aimmo/worksheets.py line 198 at r3 (raw file):

#       - MoveTowardsAction(ARTEFACT)
#       - avatar_state.backpack -> LIST OF HELD ARTEFACTS
#       - artefact.type -> TYPE (e.g. artefact_types.KEY or artefact_types.CHEST)

Remove the bit in the brackets please.

Copy link
Collaborator Author

@KamilPawel KamilPawel left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dionizh)


aimmo/worksheets.py line 198 at r3 (raw file):

Previously, dionizh (Dioni Zhong) wrote…

Remove the bit in the brackets please.

Done.

Copy link
Contributor

@dionizh dionizh left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r5, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @KamilPawel)

@codecov
Copy link

codecov bot commented May 19, 2022

Codecov Report

Merging #1661 (367309e) into worksheet4 (0384e2d) will decrease coverage by 0.02%.
The diff coverage is 75.00%.

Impacted file tree graph

@@              Coverage Diff               @@
##           worksheet4    #1661      +/-   ##
==============================================
- Coverage       68.00%   67.98%   -0.03%     
==============================================
  Files             165      165              
  Lines            3376     3377       +1     
  Branches          283      283              
==============================================
  Hits             2296     2296              
- Misses           1053     1054       +1     
  Partials           27       27              
Impacted Files Coverage Δ
aimmo/worksheets.py 86.36% <0.00%> (ø)
game_frontend/src/babylon/assetPacks/ancient.ts 0.00% <0.00%> (ø)
game_frontend/src/babylon/assetPacks/modern.ts 0.00% <0.00%> (ø)
game_frontend/src/babylon/gameEngine.ts 86.04% <88.88%> (ø)
aimmo-game/simulation/map_generator.py 95.68% <100.00%> (ø)
...ame_frontend/src/babylon/entities/avatarManager.ts 100.00% <100.00%> (ø)
...e_frontend/src/babylon/entities/obstacleManager.ts 100.00% <100.00%> (ø)

@dionizh dionizh merged commit 901f3bd into worksheet4 May 19, 2022
@dionizh dionizh deleted the cars_fix branch May 19, 2022 07:27
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.

None yet

3 participants