-
Notifications
You must be signed in to change notification settings - Fork 315
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
Window size customization #180
base: master
Are you sure you want to change the base?
Conversation
Hello! first of all thank you for making this window size customization but i encounter some error with "pawStartingPoint": |
It`s not the same i used on the pictures above. Hope it works. |
I think you have to play with offsetY but I am not that confident, it's been a while since I developed this. I can't help you further sorry. |
First of all check if you have used my release as kuroni version doesn't have this feature. Also it could be that you swapped width and height. I recommend you to make a copy of the initial configuration and work slowly from there. Start increasing either width or height by a lot (1000 for example) and fine tune those values until you see the background on its place. After that, it could be that the arm of the bongo cat appears disjointed. If that happens, you will have to adjust pawStartingPoint and pawEndingPoint until the paw is in its place again. The size is increased from the top to the bottom so if you increase the height the cat will be further down but the image starts at the top so it could be hanging in the air if the sizes are not exact. Background size and window size have to be the same. It's been a while since I developed this and I think it's never going to be merged so I'm going to unsubscribe from this PR. Good luck. |
@Therepup, this doesn't appear to be an issue with this PR. Please ensure the exe is extracted and inside the same folder, which contains a font folder. If this is still an issue you would like to fix... |
Resolves #60
I have changed the fixed size to a custom one.
The base height and width is still there because it was the easier way to modify the bezier calculation.
Window size is established on config.json and this gives some space so a bigger background can be rendered in all game modes.
The user has to fine-tune other configuration parameters for this to work as intended, pawsStart and ending points have to be adjusted with the new height. Other artifacts that don't use the bezier calculation will be pushed down and should keep their standard dimensions to be adequately rendered.
Note: The wobbly line between the keyboard and mousepad is a result of my image editing skills, not related to code, the skin is like that 😆 .
![image](https://user-images.githubusercontent.com/36534958/190709269-83932837-40b8-45ac-b625-d09708217287.png)
In this example I used an increased height of 260 (612 pixels x 612 pixels window) so I had to modify the pawPoints in the config.json like this:
"pawStartingPoint": [211, 419], "pawEndingPoint": [258, 488]
Mode 2 example with increased width too:
![image](https://user-images.githubusercontent.com/36534958/190710009-48d17eaa-b4d7-4a35-9f64-024fb193e6e5.png)