Codes
Showing posts with label Codes. Show all posts

22 June, 2013

Unity3D Practice - Remake of Safrosoft RoX


/ /
I have been trying to do some coding in Unity3D. I worked as an app programmer for my previous job. I used Unity to code for iOS apps (including games). I always like programming. It's not easy to find a job which could make you feel "Wow I love my job it's totally interesting and suit my interest", or at least not all the time. I work as a system developer now (I still love programming and developing systems) but a job has its restrictions which I have to do what I like or do not like as much, for example, preference of languages, the ways of doing things, etc. People could talk about chasing dreams and living his own life, not to care about earning enough or not... well if you have strong financial background, also not if you have responsibilities.

Why is this turning into rants?

Well I am happy because I have the chance to be educated and be an independent woman, when there are so many more others in the world who are discriminated, not fairly treated, abused and not getting what they deserve. Be grateful for your life.

Let's go back to Unity before the post got all sentimental. Well Safrosoft Rox is a freeware Windows game created by Ilya and Dmitriy Safro (Source: autofish). I remembered I played it on my Windows XP or 97 computer when I was much more younger. The game doesn't have complicated graphics but looks cool and the game play is awesome too.

In RoX you control a hedgehog-like character called Thresher. Through out the game Thresher has to collect the given number of unids (with a 'd') in order to get the exit portal opened and go through it. But RoX offers more than only stones, gems and sand: there are many new elements such as the gnats, who follow you, and missiles to be fired at your enemies! Furthermore, the creators have included ideas of the popular game Sokoban. (From www.bd-fans.com)

A screenshot of Safrosoft RoX. Source: Boulderdash.

It's a game I like a lot so I planned to practice my Unity coding by remaking this game... but yea, I don't have any memory of the levels nor do I have any graphics. I have been planning for around 2 months and also due to my procrastinating nature I am still in the beginning phase of development.

My screenshot :D

I just roughly tried out the player movement control. I think my problem is lack of planning and sources (as in graphics, like some good game graphics). I am only searching for some simple graphics and try to edit them to be usable for the game. Well, when there's a will there's a way. :)

Unity3D is not a difficult game engine (easy to use, I don't mean easy to master). You can code in java or C# and the UI interface is pretty user-friendly. Ready made physics component and all (you can apply gravity on your game object straight away) is good for those who are interested to try out making games.

So yea, hopefully I will update on this soon.

08 June, 2013

Image moves on hover -- a Chrome opacity issue


/ /
Just a quick one.

So I was trying to play with my blog appearance and I want to add in this fade effect to images. According to this stackoverflow post:
"For some reason Chrome interprets the position of elements without an opacity of 1 in a different way..."
 After a few tryouts, the way that works is this:
-webkit-backface-visibility: hidden;
I apply the code in my img{} section (wherever the opacity fade code is embedded) and it got all better. Yeeha. Thanks stackoverflow!

12 April, 2013

Can I haz LOLCODE!


/ /
Accidentally ran into this: LOLCODE. I think I saw it on Google+.

A screenshot I got from the site.

Anyway, what's LOLCODE? According to Wikipedia, LOLCODE is an esoteric programming language inspired by the language expressed in examples of the lolcat Internet meme. The language was created in 2007 by Adam Lindsay, researcher at the Computing Department of Lancaster University. Awesome. Created in 2007 and I just knew about it yesterday.

Code School is having this LOLCODE challenges thingy, like some mini-tests to give you an introduction of this magnificent language of the century. Want to try it out? Click HERE. (I managed to answer them all correctly, bwahahahaha!)

12 December, 2012

Blog Tricks: How to show date of every blog post? (For Blogspot)


/ /
It's probably kind of annoying when the date doesn't show for every post. When I first made the blog, it only showed the date for the latest post if there are multiple posts per day. Sometime I felt like I have certain level of OCD. I WANT date shows on every post of mine!

Ok so thanks to Google (as always) and people who kindly shared their knowledge in this. This is the one which helped me: HERE'S THE LINK

1. In your blogger home page, if you have multiple blogs please choose on the one you want to edit.

2. Click on Template-> Edit HTML -> Proceed

3. Look for something like this:


4. Change it to this:


5. Your script might seem different. So just Ctrl+F to find <data:post.dateHeader/> and let say your tag says <h5 class='postDate'> then you follow whatever the tag is. (I hope that is clear enough.)

Pretty cool right? Have fun trying out on the codes. :)
© thosetimeinbetween
Maira Gall