Viretron: Engineering Case Study
Initialization & Game State Management
This sequence demonstrates the technical bridge between the main menu and the active gameplay environment. I engineered the initialization logic to ensure all player variables, camera bounds, and world assets load correctly before the player takes control.
Health Systems & Attribute Logic
I developed a dynamic health system that manages real-time interactions between the player character and game hazards. The code handles variable tracking for both damage and healing, while simultaneously broadcasting those changes to the user interface for immediate feedback.
Combat Mechanics & Collision Detection
This section showcases the implementation of melee combat through precise hitbox and hurtbox management. I scripted the collision detection to ensure that weapon swings register accurately against enemy entities, providing a responsive and fair experience for the player.
This script manages the lifecycle and collision logic for physics-based projectiles. I implemented defensive programming by verifying the target has the appropriate damage method before execution, preventing null-reference crashes during high-intensity combat.
This module handles player persistence and world state updates. When triggered, it simultaneously updates the player's global respawn coordinates and provides immediate visual feedback through dynamic material property shifts.
This hazard script utilizes a fail-safe animation system that automatically detects and plays available assets to ensure visual consistency. It also features a self-destruct timer using await logic to optimize memory by cleaning up instances after their active lifetime.
I engineered this pickup system to be highly modular, using group-based detection rather than strict name-matching. This allows the system to interact seamlessly with any entity assigned to the "Player" group, triggering the specialized state-change logic for the shrink mechanic.

You may also like

Back to Top