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

Verilog: reset signal is inconsistent? #132

Open
HazeSystem opened this issue Nov 19, 2022 · 1 comment
Open

Verilog: reset signal is inconsistent? #132

HazeSystem opened this issue Nov 19, 2022 · 1 comment

Comments

@HazeSystem
Copy link

HazeSystem commented Nov 19, 2022

Using Ball Motion (absolute position) as an example, if one clicks reset over and over at the start of running the code while the ball is moving to the bottom-left of the screen, it seems to reset correctly. However, if you let the ball bounce so it's then traveling to the top-right and reset it, the ball moves back to the center of the screen but keeps the same direction from before the reset, traveling towards the top-right. Additionally, reloading the page seems to fill some variables with random values; sometimes the ball will start moving to the top-right or top-left upon refreshing, despite supposedly being reset in the code.

@sehugg
Copy link
Owner

sehugg commented Nov 6, 2023

You're right, the velocity X/Y values don't respond to the reset signal. I fixed the module in the dev build.

See also: #23

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