-
Notifications
You must be signed in to change notification settings - Fork 3
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
Sometimes the pointer input area is shifted #68
Comments
I was able to reproduce this now. The displayed image was not always scaled true to the game coordinate ratios, which then caused wrong coordinate transformations in several places. One of them was input <-> hit box checks. The fix was in the paddle lib (jakmeier/paddle#7) At least this instance of the problem seems to be solved now. @fadeevab if you have a moment to check if it is fixed for you as well, please let me know about the result. The fix should be deployed on https://demo.paddlers.ch |
@jakmeier Okay, fix works... Many bugs though :)
|
Awesome, thanks for the feedback!
Yeah I'm afraid that is the state of affairs 😬
Not sure what this was. I think resource loading is naturally async and sometime delayed. Maybe there is also a bug that it gets missed completely... Resource display is very also buggy on mobile, it requires deeper investigation.
Right, thanks for spotting! This problem only happens when you place the stones to the left, I missed it in my recent tests because I mechanically always place it to the right.
I don't understand this one. Sticks (which you have 50) and logs (which you have 0) are different resources, perhaps that is confusing? (Resources, as they are in the game now, are generally thought through very poorly, yet.) |
Oh, another funky thing you will notice when playing with the stones to the left: ducks swim backwards when the are leaving. Not really intended but it won't stop you from progressing further. |
@jakmeier I didn't realize those are different resources :), logs and sticks. Also, overall, I would've used some game engine that would've taken off the burden of rendering the graphics so that I could've concentrated on game logic (not sure what is used now). |
@fadeevab Very true, if my goal was to create a game rather than learning about how games are built :D The only game engine used in Paddlers today is my own which was created by pulling out all the generic rendering code (WebGL, triangle meshes, user input, etc) which was previously part of Paddlers itself. I've reused the same game engine in a couple of other projects and kept improving small pieces of it in the past few year. Those "improvements" included breaking API changes and this is actually the source for many of the visual bugs in Paddlers today. The history is that I started using quicksilver, which was literally the only game engine in Rust supporting WASM back in 2019. Quicksilver stopped active maintenance soon after. To allow touch input to work at all on mobile Firefox I had to fork it and the upstream PR never got merged. And as time progressed, I replaced virtually every bit of the original code with my own implementations. It was a lot of fun and a hell of a learning experience for sure. 😬 In general, you will find that actual game logic and graphics are only a small fraction of the time I've put into this project. Hence, you will see poor graphics, terrible writing, unsatisfying game play, all kinds of visual bugs and so on. This is just a reflection of my personal prioritization for this project. If my primary goal would have been to create a decent game, I wouldn't have used Rust. The language simply wasn't ready for WASM gamedev in 2019, unless you really wanted to write the game-engine yourself. Also, my Rust programming skills at the time were much poorer then let's say my C++, Java, or even JS skills, which would have arguably all been better choices to create a game at the time. |
Sometimes, not quite clear under what conditions, clicking buttons doesn't work as expected. The input area is higher up on screen than the displayed area. I observed it myself once and it was also reported in #66 (comment) with this helpful image:
The text was updated successfully, but these errors were encountered: