Showing posts with label Windows Phone. Show all posts
Showing posts with label Windows Phone. Show all posts

Thursday, March 5, 2015

First Game Ever Published

My first game Windows Phone 8 named "Switch'em" got published in Windows Phone store.

Unique thing about this game is that there is not second way to clear a level. A level can be cleared exactly flipping back the same number of tiles that were flipped while generating that level. Simple and elegant design with no extra fruits or fairy magic in UI makes it more attractive and appealing at first sight. Not copying anything but I recreated the theme of 2048 and #Wordament like games.

Here is the link to this game (Switch'em) http://www.windowsphone.com/en-pk/store/app/switch-em/0efb098c-e49d-49ee-8831-273a32637c8b


IsolatedStorage in Windows Phone

I was trying to fix the bug recently I was talking about in my last post. The problem was that I was actually using app local storage to store some game scores (and stuff). Turns out you cannot write in app local storage (you cannot open a file to write). msappx:// this storage defines the app local storage.
Solution to this problem was IsolatedStorage. As the name suggests there is an isolation in this type of storage in terms of data access (only the app using this storage can manipulate it).

This link http://code.tutsplus.com/tutorials/working-with-isolated-storage-on-windows-phone-8--cms-22778 helped me getting my problem solved. Thanks +Tuts+ Code.

Maintenance: Why So Cruel?

Last night we were coding, coding and just coding. Slept at 4:30am and repeatedly done the same for next day. After everything was totally fine, the game was running, we deployed on emulator, physical device, tested everything. Nothing was alarming that's why I uploaded the game in Windows Phone store. After the game got published and appeared in app store. I published the link everywhere in social media without first downloading in my phone and checking it first. Here is what I got. A bug. This made me swear I'll never publish an app without setting permissions from app manifest. Huh. Sick mother of debugging it was.

Sunday, January 4, 2015

How to Create DoubleAnimation in Windows Apps?

I was searching for a good source to read double animation in windows apps but didn't find anything easily understandable, I mean there was a lot of code overdosing the idea of "animation". What I came up with as a solution was, the lecture from a series created by +Bob Tabor.

What DoubleAnimation is?
A simple animation that animates target storyboard property in double data type. For example, take Opacity; it ranges from 0.0 (invisible) to 1.0 (visible).

Example:
Now to actually run this animation we just need to user Where MyStoryBoard_FadeOut is the x:Name property of that storyboard you wan't to animate.
What it actually does is fading out the opacity of target button `Button1` in 2 seconds.

Saturday, September 13, 2014

C#: How to Save Image from a Canvas

So recently I've been working on this Windows Phone app so hard that I hardly get time for myself and blog some fishes here. But now I am talking with my blog I'm talking about the same thing I've been doing since 5 days (nights included too).
I was actually trying to save some image from the screen, more of a screenshot but in a programmers way. I was searching for a lot of XAML tags and studying about them like DrawingSurface and every frigging tag that looks like something that can be sixth sensed and categorized into something imagery (save an image I meant). In the meantime I find this life saver Canvas and now its all vanished. All my dark problems inside me pouncing upon each other to hike through my wind pipe out into the fresh air are now gone.
Here is the code.