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

Code Reviews #11

Open
ngolapnguyen opened this issue Nov 7, 2023 · 3 comments
Open

Code Reviews #11

ngolapnguyen opened this issue Nov 7, 2023 · 3 comments

Comments

@ngolapnguyen
Copy link

ngolapnguyen commented Nov 7, 2023

  • Not sure why gamepad is kept here? I think it should be in the tokyo-gamepad project
  • Why is EventType an enum? Shouldn't it be a type/interface?
  • Type/interface names should be more consistent. E.g. IConfig -> Config
@haongo138
Copy link
Collaborator

Not sure why gamepad is kept here? I think it should be in the tokyo-gamepad project

Currently, in lib, user has two choices:

  • Implement an algorithm in setGamePlan to consume & respond to event from the map (sent from server) by using gamepad obj
  • Manually controls the ship via tokyo-gamepad using exposed gamepad object

@haongo138
Copy link
Collaborator

Why is EventType an enum? Shouldn't it be a type/interface?

I think EventType is only used as a constant represents type of event from server

@haongo138
Copy link
Collaborator

Type/interface names should be more consistent. E.g. IConfig -> Config

yep, I will update this one after done discussing about two questions above

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

No branches or pull requests

2 participants