Mačke in miši

V srednji šoli (3 letnik) smo dobili za domačo nalogo narediti igro v konzoli, kjer je igralec maček in mora loviti miši, hkrati pa mora paziti na pse.

Toda jaz sem se odločil, da bom stvar kar naredil lepo v SFMLju (C++) in s pomočjo Photoshopa naredil ikone.

Jaz sem še naredil, da lahko igralec sesuva “blocke”. Če pogledate sliko in najdete mačka, boste videli zidove tik pred sesutjem.

Miši in psi se premikajo po svoje. Če vidijo igralca (torej samo čez pot, čez zidove ne vidijo), spremenijo smer proti igralcu :D.

Na žalost sem source code izgubil, najdel sem samo to sliko :/.

Advertisements

About Vili Volčini

Programming is art! I have been programming since 14 years and I have big interest into video games, electronics and robotics. Currently I am studying at math university FMF and as a side projects I am working on video games. Someday I will build a real robot with intention of helping humanity, but it's long road to there!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: