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

Rewrite to use pixel instead square grid #34

Closed

Conversation

schlagmichdoch
Copy link
Contributor

@schlagmichdoch schlagmichdoch commented Feb 8, 2024

I love this little project. I think it looks gorgeous with this nice color palette!

I have reworked the code to avoid problems that come from calculating collisions incorrectly:

The balls now also start at a random y in a random direction.

I have tested with big and small balls and high speeds. I think this is good to go :)

Copy link

vercel bot commented Feb 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pong-wars ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 9, 2024 10:24pm

@schlagmichdoch
Copy link
Contributor Author

Fixed an issue with the ball being off center

… between frames (fixes constant speed); Rewrite collision logic to check vertical, horizontal and diagonal collisions (fixes vnglst#6, vnglst#18, vnglst#19, vnglst#21, vnglst#22)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant