Posted October 21, 2020 by mosenco
#rpg #roguelike #mobile #android #diablo #path of exile
Hi, im mosenco a solo developer.
I've been using Unity3D for about 1 year where i learned the basic things and create some easy game for test. I love rpg, fantasy, scifi things. I play LoL, mmorpg and so on, so for my first serious project i wanted to make a game like diablo / path of exile i mean something like a roguelike, dungeon crawler and so on.
But i don't wanna something too "serious", i don't want something real, with high detail angry serious design but something cute like Animal Crossing, so the idea is a diablo meets animal crossing haha.
The device target for now is for mobile.
I will warn you, some following videos are recorded with the phone, cause i use whatsapp to share my work to my friends haha.
I started the project with the player and implements the basic movements.
After that i wanted to create an inventory. In this kind of game you need to collect items and maybe equip it or use it right? First i tried to download an assets from the unity store free, but trying to understand someone else code and edit to customize it's kinda hard so i deleted it and create a my own inventory system. The following video is a early version of the inventory, i already managed to make it better.
So now we are ready to collect swords and spells so i need to create a fight system. I thought something like, a basic attack and 3 spells. So i made some spells, a basic attack for the sword and a mob to test it out.
Testing my game in that plane and empty space is kinda sad, so i started to think about how to create a procedural map and it's light and not heavy, cause i targeted the mobile device. I went on google and youtube and read how people usually do that. I found something cool where you define a matrix and for each cell you instantiate a gameobject floor or wall. The following video shows that the procedural map has no loading time to generated it, so fast, so wow.
But in the test, my fps drops too much. Having so many GameObject really is a problem. I remember a tutorial about a guy that teach you how to create minecraft in Unity where he creates the mesh with the vertex and tris. So i thought "ehi, i can do that also, instead of instantiate n GameObject that has a mesh renderer and a collider i can make a single GameObject with a single mesh that i can define in the matrix". So i started to learn how to create mesh from come and after that i finally managed to create my mesh.
Now we need some destructible object like box, crate where you can found something or nothing and auto generated mob that we will encounter in the game
The lighting is so bad. For now i was using a directional light, but the theme should be darker. I deleted it and place some point or spot light around the map (everything procedural) at some lamp or torch to make it cool. But i encounter a big problem. A single mesh can't be renderer by too many different lights in the same time and this can make the game run slower. I can increase the light pixel count but if i have every realtime light active even in some place i don't see it's a waste.
I put a big trigger that listen for the player to enter and leave to activate or disable to render only where the camera sees.
A lot of things happens. I found some new assets on the store (free xd) and i changed my player, and add a new mob with a throwable spell and test it. lol.
After this, i already made 3 cool spells for my player. Everything was cool and so on but ehy, i was working on a laptop old 5-6 years old and suddenly it stopped to work. After some quick research and long test i realized that my HDD is dead xd f*ck. Luckly i saved the project but it's the old project before the procedural map and the spells.. So the cool particle system and spells i made it's all lost. Luckly 1 week before the disaster, i saved the scripts. So i can start the project from 1 week old.
I managed to recreate everything, except for the spells (i just randomly change values of my particle system and luckly achieved my goal xd). I changed the lighting system, to make it darker.
And here we are. I'm still working on it and soon i will publish more update. I hope you guys enjoy my work and would be great if in the future a small community will born from my game xd, bye guys see you soon uwu