On with our RTS project! Today, we’ll add the character and skill systems…

Last week, we improved our selection feature and, in particular, we added an info panel for the currently selected unit. Now, it’s time to populate this panel with skills and use it to create even more units!

For now, we only have building units — but remember that we prepared our class hierarchy in previous tutorials so it is easy to add character units. Today, we’ll add these character units, plus we’ll start a basic skills system that allows us to produce one of those character units in our House building.

Implementing character units

As we discussed a few weeks ago, characters are…


Today we’ll see how to send an ASCII art-styled webcam video stream over the network using Python!

A few months ago, I came across this video by Micode (in French) where the young youtuber presented his 24h-project on how to transform the stream from his webcam into animated ASCII art — so instead of a normal video stream, you get a sequence of images only composed of characters, like this:


Because choosing the right data structure can save your program!

When you want to store a pack of data in Python, you can pick one of several built-in iterable types (in the docs, they’re classified in “sequence”, “set” and “mapping” types). Most of us know of the lists and the dicts, but there are some others that can prove very efficient in specific situations.

It’s important to know the strengths and weaknesses of those common data types because choosing the proper data structure at the right time can drastically alter (in good or in bad) the performance of your application!

Lists, sets, tuples, dicts: what are they?

I’ll dive more into each of these data types and…


Let’s continue our RTS game project: today, we’ll improve our selection mechanism!

A couple of weeks ago, we improved our UI and displayed more info on the buildings (with an info panel and healthbars).

Today, we’re going to continue on this topic and improve our selection mechanism — we’ll do three things:

  • display the list of currently selected units: in order to better remember what we’ve selected, even if it is off-screen, let’s list the units at the bottom of the screen as little blocks!
  • create selection groups: this is a nice way of switching between your units that many RTS provide
  • show up info on the active selected unit: it would…


Can AI create, or is it a purely human skill?

To learn more about this project, read the introductory article.

In the past few years, we’ve had plenty of articles on AIs that had created amazing paintings, incredible texts or uncannily realistic music. While the results were sometimes not as truly unbelievable as the article’s buzz-title suggested, we have to admit that there’s an ever-growing trend of “creative AIs”, or AI artists. But this begs the question: can AI really be creative? Isn’t this ability to invent, to create, inherently human?

In this article, I’ll first discuss what creating can mean (and suffice it to say I won’t establish a…


Let’s continue our RTS game and focus on the hierarchy of our classes!

In this tutorial, we are going to reorganize some of our classes to better prepare what’s to come: we will create a clear logical hierarchy for our units that can be either buildings or characters. We started that process in a previous episode of this series, but we’re not done yet.

At that point, you might realize that we could — and should! — re-use the notions of inheritance and polymorphism we saw in the previous tutorial for our data and unit classes. …


About robots, cyborgs, AIs…

The introductory article of this project is available here.

In this third article in the Artifakal Intelligence series, I’ll discuss a common question in sci-fi culture: “do AIs need a body?”. Are robots always shiny humanoid entities, or should we widen our search field and consider more of the tech marvels around us as robots?

Robots? AIs? Cyborgs?

When we think of robots, most of the times we picture a humanoid metallic being that quacks around and jiggles a bit, completely devoted to obeying humans, or conversely bent on destroy the human race. They walk among us smoothly, often indistinguishable from real humans…


On with our RTS game! Today, we’ll focus back on our UI…

The last tutorial on Scriptable Objects was fairly abstract.

Let’s shift gears and focus on something more visual, for a change: we’re going to improve the UI system we started earlier in this series by adding two features:

  • whenever we select one or more units, we want their healthpoints to be displayed with floating healthbars
  • also, we want to show some info on the currently selected units in a dedicated panel

Adding healthbars on selected units

In a previous tutorial, we implemented the selection mechanism. The goal of this new healthbar feature is, among other things, to provide additional info on the targeted units.

Fancy…


Are AIs really that fair? (spoiler: no)

The introductory article of this project is available here.

This week, it’s Part II of the second article in the Artifakal Intelligence series. I’ll keep discussing the idea that: “machines are logical, hence they are objective”. Today, we’ll focus more on examples and possible solutions.

Last week, we saw why the concept of “objectivity” is sometimes complex to define. I also gave some examples of issues that can arise from the datasets and how these can determine unexpected and unwanted behaviors for the AIs. …


How to use Krita to draw a simple icon and populate our game resources folder…

“Asset Day”: every other week, on Friday, I post a little timelapse or mini-post on how to create a specific game asset for the RTS project I develop throughout my Unity RTS programming tutorial.

Today, here is a timelapse of how I made a wood resource icon for my RTS game in Krita.

Krita’s logo

The timelapse

To get some inspiration, I searched for things like “wood pile icon” and “game wood icon” on my search engine and found some useful references:

Mina Pêcheux

I’m an engineer in Applied Mathematics and Computer Science and I’m passionate about topics like AI, music, web programming and more! https://minapecheux.com/wp

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store