news.volyx.in

Draggable objects (redblobgames.com)

1059 points by stefankuehnel · 1060 days ago · 141 comments on HN

Article summary

The article discusses implementing draggable objects on web pages, handling both mouse and touch input. It provides a basic recipe for handling drag events and explores various edge cases, such as text selection and context menus. The author shares their experience and code examples, including demos and tests, to help readers understand the concepts. The article also touches on more advanced topics, like simultaneous dragging and nested dragging.

Main themes

  • draggable objects
  • game development
  • web development
  • interactive learning
  • algorithm explanation
  • user experience

What commenters say

  • The website RedBlobGames is a valuable resource for learning game algorithms and data structures.
  • Amit Patel's content and presentation are exceptional and have helped many game developers.
  • The use of interactive elements and clear explanations makes the website stand out.
  • Some commenters have used the website to learn about specific topics, such as hexagonal grids and A* search algorithms.
  • The website's design and approach to visualization are praised for being effective and user-friendly.
  • The author's ability to explain complex concepts in a clear and concise manner is appreciated.
  • The website has been a helpful resource for many people, including game developers and students.
  • The importance of having high-quality, interactive learning resources like RedBlobGames is emphasized.