top of page

Mafia City

Gameplay recorded from PC

Mafia City is a short flash game assignment that I did for my fundamentals of game tech and fundamentals of game art. It features a mini inventory system, gun shooting, and knife slash. I also did basic A.I such as wandering around a spot and enemy shooting player, having health points. I did all the art assets by myself using photoshop. Sounds are found from various copyright-free websites.

Game Engine:

Language Used:

Primary Role(s):

Group Size:

Development Time:

Stencyl

Stencyl Blocks

All (Including art assets)

1

3 weeks

Inventory System

I created a mini inventory in mafia city. What I used for the inventory system is 2 list of inventory, one is for the actual inventory of the player, then the second one which is Inventory Type List is for checking the database of what kind of items there are.

s3.png

This part is where when the player reloads and consumes a magazine, it will check the inventory list from the player  either it matches the magazine or not. If it matches, which means players' inventory has an existing magazine and will consume from it.

s2.png

InventoryUpdate is whenever the player turns on the inventory, it creates a UI that split as the frame, selection highlight, and the item icons.

s1.png

Below is the function for player pickups item. It checks whether player still has an empty slot by checking #8 which is supposed to be an empty object. If there is an empty slot, replace the empty slot with the picked-up item type.
 

s4.png

Copyright © 2022 by Yee Zhan Quan.

bottom of page