7 Oct 2015
1 Oct 2015
23 Sept 2015
7 Sept 2015
21 Aug 2015
3 Jul 2015
26 Jun 2015
Bounding Player to Screen
http://www.raywenderlich.com/70344/unity-2d-tutorial-physics-and-screen-sizes
http://www.aeonphyxius.com/2013/03/how-to-force-an-object-to-stay-in-the-visible-camera-area-in-unity/
My code:
/// <summary>
/// Restrict the player to the camera's boundaries
/// </summary>
private void LimitPlayerToCamera ()
{
_playerPos.x = Mathf.Clamp ( transform.position.x ,
CameraBehaviour.instance.transform.position.x - _widthOrtho + _playerBoundSize.x ,
CameraBehaviour.instance.transform.position.x + _widthOrtho - _playerBoundSize.x );
_playerPos.y = Mathf.Clamp ( transform.position.y ,
CameraBehaviour.instance.transform.position.y - Camera.main.orthographicSize + _playerBoundSize.y ,
CameraBehaviour.instance.transform.position.y + Camera.main.orthographicSize - _playerBoundSize.y );
transform.position = _playerPos;
}
http://www.aeonphyxius.com/2013/03/how-to-force-an-object-to-stay-in-the-visible-camera-area-in-unity/
My code:
/// <summary>
/// Restrict the player to the camera's boundaries
/// </summary>
private void LimitPlayerToCamera ()
{
_playerPos.x = Mathf.Clamp ( transform.position.x ,
CameraBehaviour.instance.transform.position.x - _widthOrtho + _playerBoundSize.x ,
CameraBehaviour.instance.transform.position.x + _widthOrtho - _playerBoundSize.x );
_playerPos.y = Mathf.Clamp ( transform.position.y ,
CameraBehaviour.instance.transform.position.y - Camera.main.orthographicSize + _playerBoundSize.y ,
CameraBehaviour.instance.transform.position.y + Camera.main.orthographicSize - _playerBoundSize.y );
transform.position = _playerPos;
}
23 Jun 2015
28 May 2015
21 May 2015
20 May 2015
13 May 2015
Object Pooling in Unity C#
Below are the links/tutorials on how to do object pooling in Unity.
http://answers.unity3d.com/questions/765574/can-someone-just-post-a-generic-object-pool-script.html
http://stackoverflow.com/questions/24442389/trouble-getting-a-game-object-from-object-pool-in-unity
http://blogs.msdn.com/b/dave_crooks_dev_blog/archive/2014/07/21/object-pooling-for-unity3d.aspx
https://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/object-pooling
http://answers.unity3d.com/questions/765574/can-someone-just-post-a-generic-object-pool-script.html
http://stackoverflow.com/questions/24442389/trouble-getting-a-game-object-from-object-pool-in-unity
http://blogs.msdn.com/b/dave_crooks_dev_blog/archive/2014/07/21/object-pooling-for-unity3d.aspx
https://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/object-pooling
17 Mar 2015
Unity Melee System
http://answers.unity3d.com/questions/249579/melee-attacking-multiple-enemies.html
http://gamedev.stackexchange.com/questions/69344/how-can-i-implement-a-directional-melee-attack
http://answers.unity3d.com/questions/182449/enemies-in-my-range.html
http://answers.unity3d.com/questions/14207/how-to-apply-explosionmagicgrenade-damage-to-detec.html
http://gamedev.stackexchange.com/questions/69344/how-can-i-implement-a-directional-melee-attack
http://answers.unity3d.com/questions/182449/enemies-in-my-range.html
http://answers.unity3d.com/questions/14207/how-to-apply-explosionmagicgrenade-damage-to-detec.html
3 Mar 2015
22 Jan 2015
Places to buy dice in Singapore
If you are hunting for dice in Singapore, visit Mahjong/gambling shops. D&D shops is commonly preferred.
The following places sell dice:
The following places sell dice:
- SWEE HUAT PLASTIC COMPANY LLP
- http://www.koplowgames.com/ OR http://www.boardgamelifestyle.com/
- http://www.tcsk.com.sg/
I am not sure if this shop still exists. |
Subscribe to:
Posts (Atom)