Maths Magic Devlog


Sometimes on the road to success, there are setbacks. To be honest, I wasn’t expecting any during the creation of Maths Magic as I felt that I had already finished the game prototype but alas.

The screen of the hardware device of my graphics designer got cracked and there is nothing I can do except wait for him to get it fixed.

So I am doing my research on how to create the animations needed to complete the game. The user interface part will have to wait for the designer.

Its kind of funny that the final 10 percent is taking longer than the initial 90 percent.

Maths Magic Devlog

Code Refactoring

As at today, the code for Maths Magic is completed. However, I cannot show it to the world because although the maths is in the game, I am unable to add magic to it.

Adding magic to a game is hard. It’s those little bits of animation that bring delight to a user.

Adding magic involves animation which I currently don’t know how to do in the Phaser game engine.

But I am happy with the progress made. Code refactoring has started. Code refactoring is the act of removing code that is repetitious and replacing it as appropriate.

Its a way to clean up a messy program. The code for Maths Magic was hacked rather than planned so although it worked, it wasn’t as elegant as it could be.

After multiple code reviews, I am happy with the code refactoring. Maths Magic still works pretty much the same.

Maths Magic Devlog


In building Maths Magic, the issue of timing has come up time and time again. This is because timers are needed for counting down and to delay code execution in the game.

My first approach was to use the default timer function in Phaser 3. However after hitting some major roadblocks, I had to reconsider and now I am using the setTimeout function which is native to JavaScript.

I find the setTimeout function easier to use as I have used in some games I developed in the past.

To be honest, this represents a breakthrough with the game. Once this phase is finished, I intend to add the other screens and make it a polished game fit for release.

Maths Magic Devlog

Game UI

In the past week, I got a graphics designer to work on the user interface of Maths Magic the result of which you can see above.

Compare this with the first user interface of Maths Magic and you will agree with me that progress has been made.

A loading screen and a splash screen have been created and I have figured out how to add a font.

With that, the game screen has been completed. All that is left is to add the functionality needed to make the game work.

I will be revamping the work to add all the sprites into a sprite-sheet like was done for the prototype.