Mastodon Icon RSS Icon GitHub Icon LinkedIn Icon RSS Icon

Category GameDev

How to use ElevenLabs text-to-speech in Unity

A simple script to add ElevenLabs text-to-speech to your Unity game.

Calculon from Futurama sipping cognac or whatever.

ElevenLabs offers the best text-to-speech API on the market, and it is my go-to service when I want to have very good results. I had to add text-to-speech to Unity’s demos a lot of times in the last months, and I decided to share the basic script I use to do it.

Utility-based AI for Games

Header image for Utility-based AI for Games

Finite-State Machines (FSM) are the bread-and-butter of game AI due to their simplicity (both in implementation and theory) and effectiveness. As such, FSMs are the topic of many tutorials and guides. Unfortunately, most of them focus on the States part of FSM. After all, they are called Finite-State Machines, so you expect that states are the critical part.

Well, no. The critical part is the other: transitions.

Transitions can make or break your AI independently of how carefully crafted the states are. In other words, intelligence is in change, and the element of change in an FSM is represented by transitions.

Unity Artificial Intelligence Programming – Fifth Edition

Header image for Unity Artificial Intelligence Programming – Fifth Edition

Hey, everyone. As you know, I am not particularly present recently (I need to find out how to handle this blog while my interests spread out on non-technical stuff, but this is something for another time).

However, I am back with an announcement: I have recently published the fifth edition of Unity Artificial Intelligence Programming.

Not only have I updated the book for Unity 2022, but the book is also a massive improvement over the last edition in terms of code quality and consistency (and I really need to thank Kazimieras Mikelis for the extensive and detailed review). Moreover, I added a chapter on Procedural Content Generation because it is my main interest, of course.

The Grammar of Game Design

Header image for The Grammar of Game Design

Game Design is a kind of language. It has basic elements, it has rules, and we use it to express specific sensations. Therefore, as a language, it has a proper grammar with its alphabet, its morphology, and its syntax and semantic. In this article I’ll briefly try to exapand this thought.

Hades: a case study in storytelling for roguelike games

Header image for Hades: a case study in storytelling for roguelike games

I know, I know: everybody loves Hades, the Super Giant’s latest jewel. These days, it is impossible to read any online game magazine without reading articles about it. This game has been on everybody’s mouth since its official release on September 17th.

And for good reasons.

Hades managed to raise the bar of the roguelike genre just when the genere started to become stale and boring. There are many reasons for this success but, in my opinion, Hades’ greatest accomplishment is that it was able to provide a glaring example of a roguelike with a solid storytelling.

Five Tabletop Games for Creating Stuff

Header image for Five Tabletop Games for Creating Stuff

We already know that Procedural Content Generation (PCG) is a masterful tool for building games. But can PGC become a game by itself? This seems a silly question at first. After all, what is the purpose of generating something if we do not use it afterward?

However, if you think that a bit more, you know that there is something else. If you are interested in PCG, you know that most enjoyment comes from the creation itself.

Therefore, the question is easy: of course, that PCG can be a game! And to prove that, I am going to show you five of the most beautiful examples of that I played in recent years.

And so you want to choose a Fantasy Console

Header image for And so you want to choose a Fantasy Console

Making a game on a Fantasy Console is one of the best activity for any game development enthusiast. This small, curated, nostalgic “emulators” for consoles that never existed can bring you back to a simpler time when hardware was less capable and developer needed to make every bit of memory and every pixel count.

There is always a reason to play with a Fantasy Console. If you are an experienced developer, Fantasy Consoles represents a good challenge. If you are a new developer, Fantasy Consoles allows you to focus on the game and on the basics of game development without being side-tracked by all the bells and whistles of modern game engines.

So, how can we chose the right one?

The Great Convergence of AAA Games

Header image for The Great Convergence of AAA Games

Let’s be honest: nowadays, almost every AAA game looks the same. They are all action games with RGP elements and a crafting system and some kind of open world. It is almost like playing the same game over and over again. The latest God of War (2018) is a good example of this year-long trend in the gaming industry that I called The Convergence. Let’s talk a bit about this.