Thursday, March 29, 2012

Let me debug in your GUI


Here's a script I made to be able to see debug stuff while testing a game outside of the editor i.e. webplayer. It adds a button on the top right corner to turn on/off the debug window.

Should be pretty easy to use, just put it on some gameobject, and alter the "maxlines" value to fit your need.

using UnityEngine;
using System.Collections;

public class MyLog : MonoBehaviour
{
    static string myLog;
    static Queue myLogQueue = new Queue();
    public string output = "";
    public string stack = "";
    private bool hidden = true;
    private Vector2 scrollPos;
    public int maxLines = 30;

    void OnEnable()
    {
        Application.RegisterLogCallback(HandleLog);
    }

    void OnDisable()
    {
        Application.RegisterLogCallback(null);
    }

    void HandleLog(string logString, string stackTrace, LogType type)
    {
        output = logString;
        stack = stackTrace;
        string newString = "\n [" + type + "] : " + output;
        myLogQueue.Enqueue(newString);
        if (type == LogType.Exception)
        {
            newString = "\n" + stackTrace;
            myLogQueue.Enqueue(newString);
        }

        while (myLogQueue.Count > maxLines)
        {
            myLogQueue.Dequeue();
        }

        myLog = string.Empty;
        foreach (string s in myLogQueue)
        {
            myLog += s;
        }
    }

    void OnGUI()
    {
        if (!hidden)
        {
            GUI.TextArea(new Rect(0, 0, Screen.width / 3, Screen.height), myLog);
            if (GUI.Button(new Rect(Screen.width - 100, 10, 80, 20), "Hide"))
            {
                hide(true);
            }
        }
        else
        {
            if (GUI.Button(new Rect(Screen.width - 100, 10, 80, 20), "Show"))
            {
                hide(false);
            }
        }
    }

    public void hide(bool shouldHide)
    {
        hidden = shouldHide;
    }
}

Hope you like it. If you make any improvements, please share.

Friday, March 23, 2012

Harry the Fairy Reviews

These are all of the reviews we've found of Harry the Fairy so far.
Please let us know if you come across any we haven't seen.



http://www.appspy.com/harry-the-fairy-review  4/5
“Now this game is probably meant for younger players, but with controls such as these and some clever uses of machinery, older players will probably gain some enjoyment out of this title as well.”

http://www.148apps.com/reviews/harry-fairy-review/ 
"It's Magic" 4/5

http://appcroc.com/iphone/harry-the-fairy-review/  4/5
" In short, this game’s a cracker!" 

http://app-score.com/harry-the-fairy/  8/10
"Its gameplay is extremely fun and unique." 

http://appadvice.com/appnn/2012/03/quickadvice-harrythefairy  4/5
”...with the catchy music, the high quality graphics, and the myriad of achievements to earn, this is a game that is worth downloading.”

http://blog.appzapp.net/en/2012/03/16/harry-the-fairy/  4/5
”The new Chillingo game will get you hooked pretty fast – thanks to the enchanting background music and the amazing graphics that create a wonderfully sculptured fairytale world.”

http://ifanzine.com/harry-the-fairy-review/  3.5/5
”Harry carries a clean and formidable presentation”


“This one is really for people who want to solve puzzles and take there time about things.”

http://www.familyfriendlygaming.com/Reviews/2012/Harry%20the%20Fairy.html  86/100
”I hope to see more games like Harry the Fairy in the coming months. It was a joy and a pleasure for me to play and review Harry the Fairy.”

http://www.unigamesity.com/get-harry-the-fairy-on-iphone-a-high-quality-puzzle-experience/ 
“Really a game to remember and a game to love from start to the end.” 
“it’s unique, it’s humorous and it totally deserves the low price of 99 cents you have to pay for it. Totally recommended!”

http://www.mytoptrailer.com/show.php?channel=CGRundertow&vid=xgOLxM0Eg5I 
“Harry The Fairy is a side scrolling action game with a very old school feel.”

http://apptudes.com/2012/03/21/harry-the-fairy-a-magical-adventure-by-chillingo-win-promocode-with-comment-or-tweet/  4/5
“With a winning combination of exceptional graphics, lovable characters and addictive gameplay, Harry the Fairy its a great add to any casual gamer’s library.”

http://www.macworld.co.uk/ipad-iphone/reviews/?reviewid=3345733  4/5
“With an emotional soundtrack and dark graphics, this game will keep you on edge, leaving you anticipating what's coming next. The graphics are quite stunning: everything down to each separate blade of grass has been utilised to show off your iOS device at its best.”

http://www.gamezebo.com/games/harry-fairy/review 3/5
“ The game follows a formula to a tee and doesn't stray from it. The controls are great, the audio and visuals are solid, the gameplay offers light challenges and solid design.”



And yet Harry is sad, why?





Tuesday, March 20, 2012

Free stuff because we love you

To celebrate the release of Harry the Fairy we have decided to make our previous games free for a week or so. Angry Viking is about deathmetal, blood and viking rampage. Smack a seal is about...smacking seals.
Get them by clicking the icons in the column to the right. Enjoy.



Thursday, March 15, 2012

Harry the Fairy Gameplay video

Hi all now that Harry is out all over the world, its time to show some gameplay so you don't need to spend your hard-earned .99$ blindly. Get the game here

Wednesday, March 14, 2012

Harry the Fairy Released

Finally Harry the Fairy is out. Although only in New Zealand at the moment, but it will be avaliable within the next 23 hours everywhere else. Here's the game intro:

Thanks to everybody who bought or will buy it. You rock!

Here's a screenshot from the Chillingo site:

And here from the App Store: