- Edited
TL;DR: Should I stick with Godot 3, or jump to Godot 4?
I'm returning to Godot and game dev after a few years hiatus. I've done things like create a hex map and camera controller entirely in C++, a TPS controller in C++, and other minor things using gdscript. I'm wanting to start using C#, and will for this project. My first question is this, should I stick with Godot 3, or jump to Godot 4?
I had AI whip up a player controller:
using Godot;
public class PlayerController : KinematicBody
{
private const float Speed = 5f;
private const float RotationSpeed = 4f;
private Vector3 motion = Vector3.Zero;
public override void _PhysicsProcess(float delta)
{
// Handle player movement
motion = Vector3.Zero;
if (Input.IsActionPressed("ui_right"))
motion.x += 1;
if (Input.IsActionPressed("ui_left"))
motion.x -= 1;
if (Input.IsActionPressed("ui_down"))
motion.z += 1;
if (Input.IsActionPressed("ui_up"))
motion.z -= 1;
motion = motion.Normalized() * Speed;
MoveAndSlide(motion * delta, Vector3.Up);
// Handle player rotation to look at the mouse
var ray = GetViewport().GetCamera().ProjectRayOrigin(GetViewport().GetMousePosition());
var raycast = GetViewport().GetWorld().DirectSpaceState.IntersectRay(GlobalTransform.origin, ray, new Godot.Collections.Array { this }, 1);
if (raycast.Count > 0 && raycast["collider"] is Spatial collider)
{
var lookDir = (collider.GlobalTransform.origin - GlobalTransform.origin).Normalized();
var targetRotation = lookDir.Rotation().y;
Rotation = new Vector3(0, targetRotation, 0);
}
// Handle shooting
if (Input.IsActionJustPressed("fire"))
{
var bullet = (Bullet)GD.Load<PackedScene>("res://Bullet.tscn").Instance();
GetParent().AddChild(bullet);
bullet.GlobalTransform = GlobalTransform;
bullet.Velocity = GlobalTransform.basis.z.Normalized() * bullet.Speed;
}
}
}
In a world much like our own, you are a scavenger with a troubled history. Your parents died at a young age, but for people like you, that isn't uncommon. You use drugs like amphetamine and you are fully aware of the negative consequences it's having on not only your own life, but those of your fellow associates. You play as Valkyrie.
Valkyrie is a compelling character whose story is shaped by a series of significant events, personal struggles, and a relentless pursuit of justice. From her physical appearance to her inner conflicts, every aspect of her being carries depth and complexity.
Physical Appearance: Valkyrie possesses an arresting presence, standing tall with an athletic figure that exudes both strength and grace. Her long, flowing blond hair cascades down her back in soft waves, catching the light and adding to her ethereal aura. Her piercing ice blue eyes, often filled with a mix of sorrow and determination, seem to hold untold stories. One cannot help but be captivated by the haunting beauty and resilience that radiates from her.
The Scar Under Her Left Eye: A distinctive scar etches a path beneath Valkyrie's left eye, a permanent mark of the car crash that tragically claimed her mother's life. It serves as a visible reminder of the profound loss and pain she endured at a young age. The scar, slightly raised and textured, tells a story of tragedy and resilience, symbolizing the indomitable spirit that resides within Valkyrie.
The Demon Within: Deep within Valkyrie's heart resides a dormant demon, an entity that both intimidates and unsettles those who cross her path. This internal presence adds an air of mystery and unease to her character. Though dormant, the demon's influence is felt in subtle ways, as if it is waiting for the opportune moment to awaken and unleash its dark power.
Bubbly Personality to Somber Demeanor: Prior to the loss of her mother and witnessing her father's overdose, Valkyrie was known for her bubbly personality. She exuded an infectious energy, radiating positivity and joy. However, the weight of these tragic events caused a profound shift within her. The color seemed to drain from her psyche, leaving her with a somber and muted demeanor. Laughter became rare, replaced by a quiet resolve that emanated from her core.
Battle with Addiction: Valkyrie's life took a tumultuous turn when she found herself entangled in the grip of addiction. Despite her initial intentions to use methamphetamine in a controlled manner, the allure of the drug and the escape it offered proved to be a dangerous dance. She witnessed the destructive power of addiction firsthand, not only through her father's demise but also through her own struggles. Valkyrie found herself teetering on the edge, the line between control and chaos becoming increasingly blurred.
The Dance with Darkness: Valkyrie's encounters with addiction created an ongoing battle within her soul. The demon that resided within her seemed to grow stronger, urging her towards self-destruction and chaos. Yet, Valkyrie possessed a strength that transcended her darkest moments. Even in the throes of temptation, she found the willpower to resist. Her determination to avoid succumbing to the demons that haunted her family became a driving force, a flicker of light within the darkness.
Transformation and Pursuit of Sobriety: After months of dancing with the demon, Valkyrie reached a breaking point. She stared into the abyss of addiction and saw the devastating impact it had on her life and the lives of those around her. It was at this critical juncture that she found the strength within herself to embark on a journey towards sobriety. Valkyrie sought the support of loved ones, professional help, and various rehabilitation resources. Her path to recovery was fraught with challenges and setbacks, but she remained resolute in her commitment to break free from the shackles of addiction.
The Power of Redemption: As Valkyrie gained clarity and distance from her dark past, she transformed into a beacon of hope and redemption. Her experiences provided a unique perspective, fueling her unwavering passion for justice and protecting the vulnerable. She became a fierce advocate for those who had fallen victim to addiction and sought to break the cycle of pain and despair. Valkyrie's dedication to making a positive impact in the world became a driving force in her life, propelling her forward with an unyielding sense of purpose.
Intimidation and Passion for Justice: Valkyrie's journey and the demons she wrestled with granted her an aura of intensity and gravitas. Her unwavering commitment to justice became legendary, even surpassing the local arbitrator. Her passion burned like a fierce flame, illuminating the darkness that threatened to engulf society. It was this fierce dedication that both intimidated and inspired those who encountered her. Valkyrie's presence commanded respect, challenging others to question their own values and actions.
Internal Conflict and Dissociation: The battle between good and evil within Valkyrie reached beyond her struggles with addiction. Deep within her soul, a constant internal conflict raged. The dormant demon within her heart whispered dark temptations, urging her towards violent retribution against those responsible for the demons that haunted her. However, Valkyrie refused to succumb to these destructive impulses. Instead, she developed a coping mechanism that involved dissociation. Whenever the urge to use methamphetamine or the darkness within threatened to consume her, she entered a state of dissociation, detaching herself from reality. In these moments, she became an observer in her own internal struggle, navigating the fragile line between righteousness and vengeance.
Valkyrie's character is an intricate tapestry woven with the threads of loss, addiction, redemption, and an unyielding pursuit of justice. She stands as a symbol of resilience, an embodiment of the strength that can emerge from the depths of despair. Valkyrie's journey is one of self-discovery and transformation, as she battles the demons within and without, seeking not only her own salvation but also the betterment of the world around her.