- Welcome to Touhou Wiki!
- Registering is temporarily disabled. Check in our Discord server to request an account and for assistance of any kind.
Danmaku RPG/Engine/Danmaku
The Danmaku module is where 2D danmaku battles take place. It implements many of the mechanics from the classic era Touhou games such as Embodiment of Scarlet Devil and Perfect Cherry Blossom
Scene
The scene contains the setting and configuration for the danmaku stage.
Stage Controller
The Stage Controller controls the flow of the stage. It contains a BossStack script which has a stageEnemies array. Upon loading a stage the first enemy in the stageEnemies array is spawned. Once that enemy is defeated the next one is spawned and so on. Once the end of the array is reached the stage is completed.
Background Controller
The Background Controller manages the active background, scripts can call SetBackground2D(GameObject background)
from the BackgroundController component which changes the active background. 3D backgrounds are currently not implemented.
Object Boundary
The Object Boundary is a invisible box outside the visible playing area. Any bullet that leaves it is instantly destroyed, this saves resources by not updating off screen bullets.
Character
The Character is the player controlled character and is made up of various elements.
Hitbox - Hitbox Type Controller
The Hitbox is both the visible hitbox that you see if you hold Focus and also the hitbox that determines if you are touching a bullet. The HitboxTypeController component controls the type of visible hitbox that appears when you hold Focus. Currently there is 4 hitbox styles: EoSD, PCB, GFW and ISC.
Hitbox Primary
The primary hitbox is the visible hitbox you see when you hold Focus. It usually rotates clockwise.
Hitbox Secondary
The secondary hitbox is a second visible hitbox that appears when you have selected a modern hitbox style, it usually rotates counter clockwise or does not rotate at all as seen in Great Fairy Wars
Hitbox Physical
The physical hitbox is the actual CircleCollider2D that determines if the player is touching a bullet. It is not visible in the game and is slightly smaller than the core of the primary visible hitbox.
Hitbox Graze
The graze hitbox is the actual CircleCollider2D that determines if there is a bullet near the player. It is not visible in the game and is about the size of the circle of the snowflake like hitbox.
Player Shot Spawner
The player shot spawner spawns the player's bullets when the [OK] - Z key is pressed or held down and spawns the player's spell card when the [Cancel] - X key is pressed. It contains PlayerBulletSpawner components for each bullet type the player spawns and a PlayerSpellSpawner for the character's spell card.
Canvas
The Canvas contains the GUI elements which are drawn first and are always on top of everything game-related. It is very useful as it shows your score, lives, spells, graze and points. It also shows the enemy health, name, timer and spell card name if the current attack is a spell card.