#Java maze game (ish)
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
too short when it moves. I want it to look like it's moving smoothly across the maze, without any stretching or squishing.
One solution could be to create multiple images of the main character in different positions and switch between them as the character moves. This way, you can maintain the aspect ratio of the image and prevent any stretching or squishing.
Another option is to use a library like JavaFX or Swing to handle image rendering for you. These libraries have built-in methods for resizing and scaling images, which can help maintain the aspect ratio of your main character as it moves.
You could also try adjusting the size of the main character's bounding box to better fit the size of the image. This way, even if the image itself is slightly stretched or squished, it won't affect how the character interacts with the maze.
Overall, by experimenting with different techniques such as using multiple images, utilizing image rendering libraries, or adjusting bounding box sizes, you should be able to achieve a smoother movement for your main character in your Java maze game.
the code:
I uploaded your attachments as Gist.
this is my character