Rehabilitation game design (Unity+Arduino+Blender)

Preface

This article will use Unity to design a game to help stroke patients continue to move their arms for treatment. This article mainly introduces the game design and project architecture. To save space, the complete code will not be explained in detail. The complete project can be downloaded from GitHub, the link is at the end of the article.

1 background

Stroke may cause limb movement disorders, and research shows that frequent limb training can help restore limb function after stroke. However, patients may need to go to the hospital for treatment and some patients lack the motivation to train. Therefore, this article intends to develop a rehabilitation game that allows patients to exercise their stroke-affected upper limbs in the game, thereby saving costs and improving patients' motivation.

2 Software, hardware and development environment

2.1 Games

  • Game development: Unity 5.5.6f1
  • Programming language: C#
  • Game object modeling: Blender 3.3.1

2.2 Sensor

  • Sensors: Arduino MEGA Board, MPU6050 (two), breadboard (three), male and bus bars (several)
  • Signal transmission: Arduino IDE 2.0.3

2.3 Auxiliary software (card editor, data statistician)

  • Software Development: Visual Studio 2019
  • Programming language: C#
  • Framework: .NET Framework 4.5.2

3 game design

3.1 Game introduction

The two players win the game by picking up and using randomly generated cards on the platform to obtain enough game points or reduce the opponent's health to 0.

3.2 Game Mode

The game can operate game characters through keyboard or sensors. The game can be played solo (tutorials and against computer bosses) or two-player (two players).

3.3 Game characters, objects and scene design

The characters and objects in the game are designed through Blender, and the relevant models can be downloaded at the Rehabilitation Game-Game Model Download .

Create a platform in Unity, place characters and objects on it, and complete the design of the game scene. There are two game scenes in the two-player mode, the first is "Forest";

 

The second is the "crossroads", where vehicles will cross the road at regular intervals, causing harm to game players on the road.

3.4 Game interface (UI)

The UI interface in the game is symmetrical. Taking player 1 (blue) as an example, the player's status (game points and lives) is displayed in the lower left corner of the screen, and the collected cards (up to 5) are on the right side of the player's status. The player's operation records (picking up cards, game points and health changes) will be displayed in the upper left corner of the screen (operation records can be hidden in the game settings).

3.5 Cards and Graphics

There are 30 kinds of cards in the game. The color of the card represents its level (from low to high: grey, blue, purple, gold). The top is the icon of the card, the left is the game points that can be obtained after using the card, and the right The side is the card name, and the bottom is the card description. The graphics at the bottom of the card (square, upper triangle, and lower triangle) are the graphics that players need to draw when using the card. Some picture styles are as follows.

When using the sensor for gaming,

Guess you like

Origin blog.csdn.net/alpha105/article/details/131752384