I’m not a MATLAB expert myself, but I had to code the roulette wheel selection algorithm, once again, this time in the MATLAB programming language. It complements this post, so I thought I could share it: % ——————————————————— % Roulette Wheel Selection Algorithm. A set of weights % represents the… Roulette Wheel Selection Algorithm in MATLABRead more
Category: Programming
Simple FSM-like structure using Coroutines in C# (Unity3D)
The previous post got a funny comment in Reddit: “Yawn. Hang on, inheritance, singletons? Bletch”. So I thought… “I may be getting rusty… let’s give those coroutines a try”. At first, coroutines seemed like a sure way of leaving behind all my (humble) OOP practices. I though they were some… Simple FSM-like structure using Coroutines in C# (Unity3D)Read more
A Finite State Machine in C# for Unity3D
Finite State Machines (FSMs) are pretty useful in many different contexts, as you may know if you are reading this. From a game menu to the complex behaviour of game entities, a nice FSM may improve your code’s readability and simplify its design. Or turn it into a hell of… A Finite State Machine in C# for Unity3DRead more
Peer Review. EGP Day… er… Last Day.
Ok, it’s done. It looks like a storyboard, or a sketch or the shadow of a game. But I simply didn’t have more time to invest on it. It may sound like a joke… but I had to proof read my own thesis work this weekend! What an appropriate excuse!… Peer Review. EGP Day… er… Last Day.Read more
Peer Review. EGP Day 4.
I hacked in some sketches to represent each character: the PhD director (who also represents other colleagues), the reviewer and the scientist. There are a few things that simply don’t fit. That is, gameplay is not exactly entertaining… but that’s precisely what is nice about the ‘game in a week’… Peer Review. EGP Day 4.Read more
Peer Review. EGP Day 3.
I changed how the player ‘writes’ new papers. Until now, he just moved the scientist sideways with ‘z’ and ‘x’ and blowed papers pressing space repeatidly. Now, the player has to lie his hands on the keyboard as if writing. The character is controlled with ‘a’ and ‘l’ (with the… Peer Review. EGP Day 3.Read more
Peer Review. EGP Day 2.
Not much today, I had little time to spend in front of the computer. I tweaked gameplay a little bit (mostly how papers react to different forces) and I added… two fearsome reviewers. They wander in the upper part of the screen, waiting for your papers. When one of them… Peer Review. EGP Day 2.Read more
Peer Review. EGP Day 1.
Here I go. Not much time for words, though. Peer Review will be a metaphor of the publishing process of scientific papers in journals and conferences for the Experimental Gameplay project competition (theme: Rejection). I’ll be using Unity3D, of course, as it will make workload much lighter. You control the… Peer Review. EGP Day 1.Read more
Experimental Gameplay project
Because it’s February and somewhere in there it’s Valentine’s Day, Experimental Gameplay project current competition’s theme is REJECTION. There was enough love everywhere else! EGP competitions have three simple rules: 1. Each game must be made in less than seven days, 2. Each game must be made by exactly one… Experimental Gameplay projectRead more
Roulette wheel selection for procedural content generation
There are times when you need to give your code the ability to choose among many options that have different frequencies or probabilities of being selected. Whether you need to create a random power-up or decide the next enemy encounter, here’s a tool that you will find useful: the Roulette… Roulette wheel selection for procedural content generationRead more