Tuesday, April 25, 2017

Sunday, April 23, 2017

Another bug in the code

Well... I struggle again with, an error. My prototype of equipment is adding first item here
and every next here (if the cell is full it is being replaced). 
And here is the source code: Code attached to the Player, and Code attached to the item.

 If anybody has an idea write to me: wachowiakf@gmail.com 

Monday, April 17, 2017

Using Unity assets

Hmmm... How to make an inventory system? 

I can write a lot of code but I am lazy. So what can I do? The answer is Unity assets. There are a lot of ready inventory systems, that just want to be used. I downloaded one of them and then started studying it to fully understand what is it doing. It is necessary to understand, the code written by somebody before to edit it and adapt well. So first of all I had to delete useless for me parts of code add new statements and functions. And now my first prototype of equipment is working (I mean it is doing something). Now it just needs to be developed. My next goal is to add some NPC's because new Sprites arrived from Michał.

Wednesday, April 12, 2017

Java User Group meeting

 In general

Today I was taking part in meeting for Java users. It was a meeting organized by Java User Group Poznań and named JUGademy. That was the 3rd meeting of this group but for me it was first programming meeting ever. I really recommend that kind of events, they are amazing.

Why Java?

Mainly because after the end of "Daj Się Poznać 2017" competition I am going to write few Android programs so Java knowledge will be required for me.

Can I join next meeting?

Yes of course. The meeting is free and open for everybody. To find out, when Java Users Group is meeting and join it visit this website.  The meeting is taking place in Poznań, for now at the Poznan University of Technology

What were the presentations today about?

#1. Clean code/ Jarosław Cellary

Presentation based on book: "Clean Code: A Handbook of Agile Software Craftsmanship" written by Robert C. Martin. So simply the lecture was about how to use comments, functions and generally naming to keep your code clean.
"You are not writing clean code for computers, you are writing clean code for yourself"
About Jarosław Cellary: Lead Software Engineer in Fandom powered by Wikia (one of the biggest website in USA) and graduate of Poznan University of Technology.
  

#2. How to make an application in Spring Boot / Mariusz Kopylec

Mariusz Kopylec presented us how to create a web application based on Spring Bot. He was coding live and while coding you could ask him questions about it.

About Mariusz Kopylec: Java Software Engineer in Allegro (Polish version of Amazon). He is a specialist in Spring. He has written open-source library based on Spring Boot, that you can find on his GitHub account.




Saturday, April 8, 2017

DevVlog #2

Vlogs are not as scary as i thought that they are. I recorded a second part of "DevVlog"click.
These vlogs are only a little bit connected with my project.

Friday, April 7, 2017

My very first vlog ever

I decided to record few moments from my life. Note, that the video is in Polish.
And here is the link: click.

Monday, April 3, 2017

I fixed it

At the end of the March I wrote a post about animations that were working in Unity Editor but they were not working on mobile devices click. I finally fixed it. Yaaaaay!!!

The problem was, that if you have a script for PC input enabled your script for phones is not working, so now every time I build my game for mobiles I disable all scripts dedicated for computers.

I hope, that I will not face more bugs like, that one.
Keep Your fingers crossed for me. ;)

Saturday, April 1, 2017

First animation in Unity

How to make an animation? How to make at least a decent animation? These questions I was asking myself few days ago. The hardest thing was, that I had only one sprite, not every frame drawn separated, so I had to do every frame by myself. There were not many for the first animation but I am already afraid of the incoming animations.

To make such a animation I had to create 7 different frames.



Now we need to combine them together in Unity. To do it open "Window" and "Animation" or just simply click "Ctrl"+"6". Add the first sprite (frame) to the viewport and click it.


Click "Create" as above to create a new animation.
Now drag and drop every frame from assets (if you didn't import your "frames" to simply drag and drop them from your explorer(i mean file manager)) to the timeline in the order you want and in the interval you want.

Now a new animation file appeared in your assets you should create a new ANIMATOR in assets and then drag and drop inside it our animation.

Now the last thing to do is to add ANIMATOR component to our object, that we want to be animated. Ready now our object will use this animation as a default in an infinte loop.