DEV Community

Laimonas K
Laimonas K

Posted on

Why You Should Make a Game Engine: 5 Years as a Developer

They say time flies when you are having fun. I can definitely vouch for that, especially since I made the switch from being an architect to becoming a software developer five years ago.

With my background in art and design, I found a whole new world of enjoyment by messing around with the HTML canvas and exploring the visual side of coding. So, it was pretty natural for me to get curious about making games. At first, it was just a little experiment driven by curiosity, but over time, it grew into something more. It turned into my personal playground where I would keep coming back to add new cool stuff that I learned throughout the year.

The journey had its highs and lows, with moments of victory and some major letdowns. But there was always one thing that kept me going: the game itself.

Here's my story.

Image description

 

Year #0 - Improvise, Adapt, and Overcome

It all started like most stories do – a feeling that my current path, even though successful, was missing something important: joy. It was draining me both physically and emotionally. I knew something had to change.

By then, I had a bit of experience with coding. I had made my own portfolio website (a standard thing for architects), worked on simple websites for other businesses, and dabbled with coding in general. But never did I think of coding as a career option. How could I? I had invested so much time into architecture already.

Around that time, coding schools were popping up all over, promising amazing opportunities. I talked to some folks from a coding school just next door to where I lived. They had these full day 3-month courses that guaranteed job placement with a sort of "trust me, bro" assurance. I was skeptical but a course, which was like a full-time job seemed like a good way to stay focused. So, I set a simple plan: one year, go all in, no ragrets.

The courses covered the usual suspects - HTML, CSS, JavaScript, PHP, Laravel - basically, the whole shebang to make you a junior full-stack developer, even though that title makes little sense. But out of it all, one thing stood out - JavaScript tutor.

"I won't just teach you JavaScript. I'll teach you how to think like programmers."

Those were the first words from him. It sounded cheesy then, but looking back, I can see how lucky I was. His constant questions - how does this work? Why do you need this? Was a daily ritual. This approach of digging deeper really resonated with me and helped me realize, that I need to focus. A "junior full-stack developer" made even less sense, than before. A "junior JavaScript developer" sounds much more reasonable.

Inspired to do more, I wanted something to work on at home. I mean, there are only so many to-do lists you can make, right? That is when I stumbled upon the HTML canvas. It was amazing to see code come to life visually, especially in a form close to my heart - games. Writing something as simple as Pong felt amazing and I was hooked. I tried making Tetris and that worked!

Image description

So, what is the natural next step after you have tried to create your own version of Pong or Tetris? For me, it was an obvious choice - make a Mario clone! This was a completely different challenge - creating tiles, making a player object interact with them, jump and everything else what looks as simple as it can. Did it pay off? Yes, it did! Spoiler - it even helped me land my first job, after many rejections, of course.

Image description

As the coding school course neared its end and the job hunt loomed, I did not want all my efforts to go to waste. So, I transformed that simple Mario project into my personal website, showcasing my journey. Maybe just to show off, or maybe so I could continue working on it in the future.

Image description

 

Year #1 - Small Steps, Big Changes

After the initial excitement of "I'm actually a developer now" settled down, I knew I had to keep the ball rolling. What next? I had already done Pong, Tetris, a Mario clone... Well of course it is Wolfenstein 3D. What else could it be?

Since I already had a system based on tiles for my platformer, the only thing left was to change how it was rendered - essentially, create a ray-casting engine. There were tons of tutorials and videos about this, including some from John Carmack himself. All I needed to do - translate that into JavaScript.

Surprisingly, it was not as tough as I thought. In fact, it was quite motivating. Sure, it was not perfect, but I saw it as a fun experiment. Little did I know that tinkering with 3D graphics would become a major driver in improving my skills as a developer.

Here is my ScriptenStein. It only has keyboard (arrow buttons) controls, so do not expect much.

Image description

 

Year #2 - Are You Really a Developer If You Don't Have an NPM Package?

Feeling comfortable in my developer shoes and having ventured beyond just front-end work, I realized it was time to optimize my game - make updates and deployment easier, expand it further.

Main focus this year, was to extract some logic into a separate package, as I have already started having some ideas about using it else were. Spoiler - a mobile app. This is how LaikaJS was born.

Isolating game logic from design elements turned out to be a game-changer. It allowed me to concentrate on each aspect more effectively. With new features in place (multi-layered backgrounds, music, so NPCs), I felt motivated to revisit and revamp the visual side. After all, why should code be the only thing that looks good?

You can see the latest version here

Image description

 

Year #3 - It's All Fun and Games Until It's an App

By my fourth year, I had worked on several projects and gained enough experience to dive into React Native. With the core JavaScript foundation of my game already in place, I decided to turn it into an app. How hard could that be? Oh boy, how wrong I was...

First and probably the main this was, that there is no native canvas! Technically you can get some implementations of it, but the performance is far from acceptable. So what can you do? WebGL to the rescue. But there is a catch - it has steepest learning curve that I have faced up to that moment. I had to learn the WebGL API, understand GPUs, and implement general logic. It's important to note that I wanted to learn WebGL itself, so using libraries wasn't the route I wanted to take.

After quite some time I have managed to get grips of WebGL basics and implemented all the game logic, that I have had on the web!

Was it easy? No. Was it worth it? Ohh yes! You can get it from PlayStore and give it a go yourself.

Image description

 

Year #4 - Psst… I Heard You Like WebGL

In my fifth year, I started my journey to understand WebGL better, as it felt like the natural step to turn my 2D world into a 3D one.

To do this, I needed to get really comfortable with WebGL and computer graphics in general, not just poke around in the dark. The thing that helped me the most, where amazing tutorials from Andrew Adamson

That is not all. Another thing that also really stuck to me from this year was, that I finally needed to and was able to read dedicated math and computer graphics books. It is not much, but felt like a great milestone to me.

Sometimes it felt like a detour from my day-to-day work, but growing up playing video games, working with 3D software in university, and being an architect with an interest in software got me hooked. Understanding computer graphics better made me appreciate of graphics engineers even more.

But anyway, even though it is a work in progress, I'm thrilled that I can replicate this progress myself. From Pong to Tetris, to 2D platformer, to a simple 3D rendering, and now a full 3D world.

Take a look here

Image description

 

Year #n+1

Switching careers was a tough call, but I'm so glad I took the leap. It's been an amazing journey so far and the architect inside me is really happy, as software development has much more in common with architecture, than most people expect.

I'm excited to see where the next 5 years take me. Maybe I will have to learn something else, when AI will make all developers obsolete ¯\_(ツ)_/¯

Image description

TLDR; I like to code.

Top comments (10)

Collapse
 
overflow profile image
overFlow • Edited

Very intriguing story and I got a couple of questions though.

1.So How long after the three month course did it take you to get a job?

  1. and what skill level were you and what was the job like and what did they require from you? 3.Whats your favourite specialty?

All in all awesome post please bring us more. Very lovely and very motivating.
educating and entertaining.
Thank you.

Collapse
 
lkatkus profile image
Laimonas K

Thanks @overflow !

It took 5 more months to get a job after the course. So in general it was around 9 months in total. It could have probably taken less, because initially I was applying through job add on LinkedIn and etc., so a major block was HR. It felt that my applications, portfolio site, github (with quite a few personal projects) were mostly ignored due to lack of formal CS education. I only got some traction after I've posted my portfolio on a web dev group on Facebook, were it got major attention and I've started working within weeks :D

It was a junior front-end developer position. It was mainly developing UI elements, implementing some business logic. Nothing fancy. As for skill level, even now I would consider myself at the moment already a proper junior, not entry dev, as during those 9 months I was coding non-stop. Even after starting at the job I was coding at home, to catch up with colleagues.

And for the favourite specialty, I can't really say. I really enjoy building proper web apps, not just landing pages or simple UI. It's really cool, that with web3 stuff web apps are getting recognized as proper apps, not just some UI.

Collapse
 
kaamkiya profile image
Kaamkiya

Very inspiring. It's a very cool idea to make your entire website a game :)

Collapse
 
beatkalipska profile image
Beata Lipska

Great journey, Laimonas! I hope yor are proud of yourself. I can't wait to see your next 5 years, keep up the good thing! Onwards and upwards!

Collapse
 
lkatkus profile image
Laimonas K

Thanks, Beata!

Collapse
 
bytesizedlucy profile image
Bytesized Lucy

Great article, Laimonas, thanks a lot! Would you share a list of books that had the most impact on your journey?

Collapse
 
lkatkus profile image
Laimonas K

Thanks! As for the books, then it's probablu "Dune" by Frank Herbert. Or do you mean programming ones? :D

To be serious, then it's definitely "You don't know JS" by Kyle Simpson. They really get to the bottom of all the "strange" things and explain them in details. Too bad, that after reading them, JS memes are less funny :(

Collapse
 
williehamm profile image
WillieHamm

Thanks for sharing it with us. I appreciate you :)

Collapse
 
lkatkus profile image
Laimonas K

Thanks! I'm really happy that people found my ramblings interesting to read :)

Collapse
 
jasicarose75 profile image
Info Comment hidden by post author - thread only accessible via permalink
jasicarose75 • Edited

Everything is written interesting. I've been involved in games since childhood. So it's not surprising that I became a game developer. I also recently got hooked on earning extra money, download an application for this, you can read more info here if you want. It seems to me that this is fate, since I enjoy my work. But the work is not easy.

Some comments have been hidden by the post's author - find out more