August
14th
2015

New game released – 45 degrees
by

Here a new game from Takohi!

45 Degrees is a game where you have to lead a sphere threw a tiny path.

web

The ball is moving by itself, you can only change directions and jump. How far can you go?

To improve yourself, here some tips:

  • While pressing the jump button, the ball will keep jumping after reaching back to the ground
  • You can change the direction taken by the ball after reaching the ground by pressing the desired direction while jumping
  • If you feel you are too close to one edge, you can quickly move in the opposite direction then to the other to be safer

It is currently available on Google Play and will be soon on Windows Store, being currently under review.

August
14th
2015

Extend the functions of UnityEngine.UI.Button
by

The new Unity UI elements offers a nice and easy to use items to build graphical interfaces. But, wanted to use buttons in one of our game leads us with a problem. As matter of fact, the standard Button offers only to trigger callbacks on onClick event, meaning user have to click down and release the click on the button. Using buttons to control directions and jumps, for directions, testing player felt a lack of reactivity, action triggered when the user released the button, so a moment after he pushed the button to turn. Also, we wanted to keep the player jumping while pressing the jump button.

 

Screen Shot 2015-08-14 at 01.52.08

 

Well, it is possible to hard code the action triggered by implementing in a script attached to the button IPointerUpHandler and IPointerDownHandler but that means less re-usability of your script and not really easy to debug/use on programmer’s side. And the solution is simple and elegant, so why not taking few minutes to implement it? Well, having a look into the default implementation here, it is simple as creating a script with the following code and attaching it to your button:

 

using System.Collections;
using System;
using UnityEngine.Events;
using UnityEngine.EventSystems;
using UnityEngine.Serialization;
using UnityEngine;

namespace Takohi
{
	public class EventUpDown : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
	{
	#region PointerDown
		[Serializable]
		public class ClickDownEvent : UnityEvent
		{
		}

		// Event delegates triggered on down.
		[FormerlySerializedAs("onDown")]
		[SerializeField]
		private ClickDownEvent
			m_OnDown = new ClickDownEvent ();

		public ClickDownEvent onDown {
			get { return m_OnDown; }
			set { m_OnDown = value; }
		}

		// Trigger all registered callbacks.
		public virtual void OnPointerDown (PointerEventData eventData)
		{
			m_OnDown.Invoke ();
		}
	#endregion

	#region PointerUp
		[Serializable]
		public class ClickUpEvent : UnityEvent
		{
		}

		// Event delegates triggered on down.
		[FormerlySerializedAs("onUp")]
		[SerializeField]
		private ClickUpEvent
			m_OnUp = new ClickUpEvent ();

		public ClickUpEvent onUp {
			get { return m_OnUp; }
			set { m_OnUp = value; }
		}

		public virtual void OnPointerUp (PointerEventData eventData)
		{
			m_OnUp.Invoke ();
		}
	#endregion
	}
}

Now, you’re getting these new options in your editor:
Screen Shot 2015-08-14 at 01.57.51

And if you want to remove the first line mentioning the script, you can just add your own editor script by creating a new script in Assets/Editor with the following code:

 

using UnityEngine;
using System.Collections;
using UnityEditor;

namespace Takohi
{
	[CustomEditor(typeof(EventUpDown), true)]
	public class EventUpDownEditor : Editor
	{
		SerializedProperty m_DownEventProperty;
		SerializedProperty m_UpEventProperty;

		protected void OnEnable ()
		{
			m_DownEventProperty = serializedObject.FindProperty ("m_OnDown");
			m_UpEventProperty = serializedObject.FindProperty ("m_OnUp");
		}

		public override void OnInspectorGUI ()
		{
			serializedObject.Update ();
			EditorGUILayout.PropertyField (m_DownEventProperty);
			EditorGUILayout.PropertyField (m_UpEventProperty);
			serializedObject.ApplyModifiedProperties ();
		}

	}
}

That’s it!

October
25th
2013

Wavefront files viewer
by

A new application is coming to the Windows Phone Store from Takohi. It is a tool for displaying 3D meshes using Wavefront .obj file format. After using our Windows Phone device at Takohi, opening enclosed files from e-mail using that format, we noticed that no application could carry that on Store…

5d7f9b92-7674-486d-ae7d-d756cfe23f9c

So, if you need a tool for viewing Wavefront files on your Windows Phone, it is now available for free ! New 3D formats will be supported in the future.

Download Video Game Sounds on Windows Phone

October
10th
2013

We are coming to Windows Phone!
by

Today is a great day for Takohi! As matter of fact, we decided to develop our application Video Game Sounds for Windows Phone 8 devices. Sorry for Windows Phone 7 users but, we could not manage to make the application available for Windows Phone 7 due to system restrictions.

From today, you can download our first application on the Windows Phone Market. Other applications are coming soon! Keep following 😉

Download Video Game Sounds on Windows Phone