In recent years, due to the increasing number of basketball games and training activities, basketball players often face the problem of fatigue and injury. This study aims to develop an interactive digital entertainment and gamification training method to provide basketball players with more efficient training methods and enhance their training fun. Sensors can be installed in various key parts of the athlete’s body, through the use of high-precision sensor equipment, real-time acquisition of athlete action data, the use of machine learning and data mining technology, real-time analysis and modeling of sensor data to extract key information and movement patterns. Using gamified training theory to design interactive digital entertainment system, develop a series of training scenarios and gamified tasks for different technical elements, combine sensor data and motion analysis results, and provide athletes with personalized training plans and feedback mechanisms to help them improve their technical level. Through an interactive digital entertainment system, basketball players can train and compete in a virtual environment. They can complete various training tasks by interacting with the system, which will give real-time evaluation and guidance based on the athlete’s performance to help them correct mistakes, improve technique and improve training results.