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

Direction idea #15

Open
Alphabetsoup16 opened this issue Feb 26, 2023 · 0 comments
Open

Direction idea #15

Alphabetsoup16 opened this issue Feb 26, 2023 · 0 comments

Comments

@Alphabetsoup16
Copy link

if event.direction == "up": # Up button

You can make this just a few lines like:

if event.action == "pressed":
    # Check which direction
    if event.direction == "middle":
        flipped = False # exits the loop
   sense.set_rotation(direction_dict[event.direction])
   sense.show_letter(arrow)    

You could also do:
if event.direction in ["up", "down", "left", "right"]:

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