Lumo GDL

Lumo GDL

🎮 Welcome to my game dev log. 💻

code_image

It Begins:

2023-06-01

From Pixels to Polygons: A Web Developer's Journey into Unity Game Development

images/classic_nes_controller

Transitioning from web development to game development was akin to stepping through a portal into an uncharted realm of creativity and code. My initiation into Unity Engine, while crafting the captivating RPG "Savage Roar," marked the commencement of an awe-inspiring odyssey.

images/savage_roar_logo

The Nexus of Code and Canvas: Unifying Two Realms

In the world of web development, I wove together HTML, CSS, and JavaScript to create interactive experiences. The revelation was that Unity Engine follows a similar pattern with C# scripts, GameObjects, and the Scene hierarchy. The adaptation was seamless—just as I arranged div elements on web pages, I orchestrated GameObjects on Unity's Scene canvas.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Fantasy Quest RPG</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <header>
        <h1>Fantasy Quest RPG</h1>
        <nav>
            <ul>
                <li><a href="#">Home</a></li>
                <li><a href="#">About</a></li>
                <li><a href="#">Characters</a></li>
                <li><a href="#">Quests</a></li>
                <li><a href="#">Gallery</a></li>
                <li><a href="#">Contact</a></li>
            </ul>
        </nav>
    </header>
    <main>
        <section class="hero">
            <h2>Embark on an Epic Journey!</h2>
            <p>Join our immersive RPG world, where you can create characters, embark on quests, and battle fierce monsters.</p>
            <a href="#" class="btn-primary">Get Started</a>
        </section>
        <section class="character-selection">
            <h2>Create Your Hero</h2>
            <div class="character-card">
                <img src="warrior.png" alt="Warrior Character">
                <h3>Warrior</h3>
                <p>Brave and strong, the warrior excels in close combat.</p>
            </div>
            <div class="character-card">
                <img src="mage.png" alt="Mage Character">
                <h3>Mage</h3>
                <p>Master of spells and magic, the mage wields powerful arcane forces.</p>
            </div>
            <div class="character-card">
                <img src="rogue.png" alt="Rogue Character">
                <h3>Rogue</h3>
                <p>Stealthy and agile, the rogue specializes in sneak attacks and traps.</p>
            </div>
        </section>
    </main>
    <footer>
        <p>&copy; 2023 Fantasy Quest RPG. All rights reserved.</p>
    </footer>
</body>
</html>

A Symphony of Pixels and Polygons: Graphics and Artistry

Shifting from web graphics to 3D modeling and animation was a leap into unexplored territory. The Asset Store, akin to a treasure trove, offered a plethora of pre-made assets that accelerated my journey. Crafting characters capable of shapeshifting from humans to animals demanded a fusion of artistic intuition and technical proficiency, creating a dynamic world rich with visual splendor.

using UnityEngine;

[CreateAssetMenu(fileName = "NewWeapon", menuName = "SavageRoar/Weapons")]
public class Weapon : ScriptableObject
{
    public string weaponName;
    public int damage;
    public float attackSpeed;
    public Sprite icon;
    public GameObject model;
    public WeaponType weaponType;
}

public enum WeaponType
{
    Sword,
    Axe,
    Bow,
    Staff
}