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

Update keycode #9

Open
SamCode011 opened this issue Jan 4, 2024 · 0 comments
Open

Update keycode #9

SamCode011 opened this issue Jan 4, 2024 · 0 comments

Comments

@SamCode011
Copy link

SamCode011 commented Jan 4, 2024

Opting for arrow keys like ArrowRight, ArrowUp, ArrowLeft, and ArrowDown over numbers for keyboard actions enhances my experience by providing a more intuitive and natural interface. Arrow keys are universally recognized as directional symbols, making it easier for me to understand movement within the interface. This choice improves my user experience by offering a more consistent and easily memorable navigation. Additionally, using arrow keys contributes to my familiarity, as it is a common convention in software and games, promoting more efficient and comfortable interaction.😁

line 59 -app.js

function control(e) {
if (e.key === "ArrowRight"){
  moveright();
}else if (e.key === "ArrowUp"){
rotate();
}else if (e.key === "ArrowLeft"){
moveleft();
}else if (e.key === "ArrowDown"){
moveDown();
}}


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

1 participant