As the VR HEXBUG nano travels in Planet HEXBUG, it will encounter enemies that guard precious food, and who seek to feed on its own battery power. The VR nano will need to detect enemies and either move away from them or fight them to protect itself and gain strength to level up.


What are Enemies and Why Attack?

The goal of Planet HEXBUG is to survive as long as possible. This requires the VR nano to travel throughout the planet to find food, and protect itself by fighting enemies. Enemies are ever present and must be defeated in order to collect food and survive for longer periods of time.


As the VR nano travels farther from home, the enemies become stronger and the VR nano must gain enough Experience Points (XP) to level up and defeat them.

The map on the left shows where the different enemies live. See the stats below to learn more about the different enemies.


Leveling up increases the VR nano’s strength, enhancing its ability to defeat enemies and carry more food. One way to gain XP is by defeating enemies.

For information on using XP to level up your VR nano, see this article.

Planet HEXBUG Enemies

The following shows the various enemies that the VR nano will encounter on Planet HEXBUG, with a breakdown of the amount of XP that will be gained when they are defeated.


Name: VR HEXBUG nano Zombie
Color: Changes as the VR nano levels up
XP Gained when Defeated: 5


Name: VR HEXBUG Scorpion
Color: Orange
XP Gained when Defeated: 10


Name: VR HEXBUG Scorpion
Color: Red
XP Gained when Defeated: 10


Name: VR HEXBUG Scorpion
Color: Purple
XP Gained when Defeated: 15

Detecting and Responding to Enemies

The VR nano uses built-in AI technology to detect enemies and can be coded to move away from enemies or fight them, depending on its level and battery life. See this article for more information on the AI Sensor features of the VR nano.

Example projects can be used as a starting point for your code. The Detecting and Fighting Enemies Example Project shows you how to put it all together to have the VR nano detect and fight an enemy. See this article for more information on accessing and using Example projects in VEXcode VR.


Detecting and Fighting Enemies

In this example project, the VR nano will use AI information to locate and move toward the enemy and attack it. The VR nano will continue to attack the enemy until it defeats it and can no longer smell it.

For more information, help, and tips, check out the many resources at VEX Professional Development Plus