How littlehan3/unrealgame works
Project type and purpose
• This is a C++-based Unreal Engine survival-action game combining TPS and Souls-like melee combat.
• Core gameplay revolves around a single player character (AMainCharacter) with modular combat and skill subsystems, and AI-driven enemies.
File structure
• All gameplay code lives in top-level .cpp/.h files—no separate “Source/” subdirs.
• Key class groups:
• Character & Game Mode: AMainCharacter, MainGameModeBase
• Components: USkillComponent, UMeleeCombatComponent, MainCharacterHealthComponent
• Weapons & Projectiles: Rifle, MachineGun, Cannon, AimSkill*Projectile, Skill3Projectile
• Enemy & AI: AEnemy, EnemyAIController, AnimNotify_*, EnemyAnimInstance
• Build/config: Locomotion.Build.cs
• No explicit UI or networking folders—focus is strictly single-player core logic, AI, effects, animation, physics.
Extracted architectural insights from the README
• The author refactored AMainCharacter into three SRP-compliant pieces:
• AMainCharacter handles input, state, weapon hold logic, animation variables.
• USkillComponent handles all ranged/aimed skills, cooldowns, projectile spawning, skill logic.
• Enemy behaviors are encapsulated in AEnemy (state, damage, death) + EnemyAIController (movement, attack logic, dodge, jump attack) + AnimNotifies for animation-driven events.
• Effects and sound use Niagara and Unreal’s Audio system. Collision/trace logic uses LineTrace and SphereTrace API.
Elements
• Clear labels: use class names (AMainCharacter, USkillComponent, AEnemyAIController, etc.)
• Blue rectangles for player classes/components
• Red for enemy/AI classes
• Orange for projectile/effects
• Gray for engine services