Bresenham movement.


Hey everyone! 👋Just added a cool feature to my game:

What's New?

Implemented a Bresenham function, that will make a path for the character that makes sense.

How It Works

  • Line Visualization: Shows a direct path from the character to the mouse click.
  • Pathfinding: Calculated using the Bresenham algorithm to create step-by-step movement.

Check It Out!

Explore the code on GitHub to see how I did it.

Next Steps

Tile Detection

Planning to implement Tile Detection to identify and categorize game elements like grass, water, walls, and more.

Pathfinding Around Obstacles

Using the detected tiles, I'll develop pathfinding algorithms to navigate around obstacles like walls, ensuring smooth and intelligent character movement.

// note: We will add a prototype version once it's more playable.

Thank you and have a good day!

Leave a comment

Log in with itch.io to leave a comment.