Little Magic Shop


Specifics

  • Platform : PC

  • Engine : Unreal Engine 5

  • Language( s ) : C++

  • Genre : Singleplayer, Management

  • My role : Lead Programmer


About the project

Little Magic shop is a relaxing game in which you run a shop that sells spells. The only problem? The king hates magic and wants your shop closed. Your goal is to raise your reputation by selling spells so that the king is forced to let your shop be. But beware, not everyone buying magic spells are good at heart and bad actions invloving spells could easily be framed on you.

This project was my first game project at Playgroundsquad.

My work

I was the lead programmer on Little Magic Shop meaning that I held a good amount of responsibility for the group as a whole to make sure that all of our programmers were on the same page so that work could go smoothly.

In terms of code a big chunk of my work was on the games several different AIs, namely the customers, the merchant and the devious thief Skrånk. I also ended up doing a lot of blueprints as I was helping our game designers implement our systems in the game.

Skrånk

Skrånk is a devious little thief who tries to steal the spells you craft in the game.

The AI is pretty simple it uses mostly the same logic as all the other AIs, I cant show a lot of that code however since while I worked quite a bit on it it also includes a bunch of code that is not mine that I don’t want to mix up.

Skrånk model by Mikaela Eriksson

Skrånk selects a spell pedestal to target by looping over all item pedestals and reserving the first open one. In this sense he is considered as the same as a customer to the item pedestals.

After targeting Skrånk moves towards the pedestal.

Upon reaching it he will take The spell and try to make his escape.

Some fun logic I did for the Skrånk to return the spells he stole.