<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>coding Archives - Oxmond Technology</title>
	<atom:link href="https://oxmond.com/tag/coding/feed/" rel="self" type="application/rss+xml" />
	<link>https://oxmond.com/tag/coding/</link>
	<description>IT Development</description>
	<lastBuildDate>Thu, 29 Dec 2022 13:07:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.0.2</generator>
	<item>
		<title>How To Download Unity Using Unity Hub</title>
		<link>https://oxmond.com/how-to-download-unity-using-unity-hub/</link>
					<comments>https://oxmond.com/how-to-download-unity-using-unity-hub/#respond</comments>
		
		<dc:creator><![CDATA[Oxmond Technology]]></dc:creator>
		<pubDate>Wed, 14 Aug 2019 20:27:17 +0000</pubDate>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[2019]]></category>
		<category><![CDATA[2D]]></category>
		<category><![CDATA[beginner]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game engine]]></category>
		<category><![CDATA[game maker]]></category>
		<category><![CDATA[gameplay]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[pc]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[unity hub]]></category>
		<category><![CDATA[Unity3d]]></category>
		<category><![CDATA[windows 10]]></category>
		<guid isPermaLink="false">https://oxmond.com/?p=489</guid>

					<description><![CDATA[<p>Unity tutorial for beginners. How to download the Unity game engine for PC (Windows) or Mac (MacOs). In this tutorial we will download and install the free Unity (Unity3D) software from unity.com using Unity Hub. ···················································································· ❤️ Subscribe to Oxmond Tutorials. Stay ahead of the...</p>
<p>The post <a rel="nofollow" href="https://oxmond.com/how-to-download-unity-using-unity-hub/">How To Download Unity Using Unity Hub</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Unity tutorial for beginners.<br />
How to download the Unity game engine for PC (Windows) or Mac (MacOs). In this tutorial we will download and install the free Unity (Unity3D) software from unity.com using Unity Hub.</p>
<p>····················································································</p>
<p>❤️ Subscribe to Oxmond Tutorials. Stay ahead of the game:<br />
<a href="https://bit.ly/SubscribeOxmondTutorials">https://bit.ly/SubscribeOxmondTutorials</a></p>
<p>✅ Need inspiration for your game? Check Out the Free Asset Packages at the Unity Assets Store:<br />
<a href="https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k">https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k</a></p>
<p>😷👕 Need a face mask / developer T-shirt? Drop by our shop and get a 20% DISCOUNT on your first purchase by using the discount code OXMONDSALE. Click here:<br />
<a href="https://shop.oxmond.com/discount/OXMONDSALE">https://shop.oxmond.com/discount/OXMONDSALE</a></p>
<p><span style="font-size: 14px;"><em>Asset Store links sponsored by Unity. Any support is truly appreciated so we can keep on making high quality content</em></span></p>
<p>The post <a rel="nofollow" href="https://oxmond.com/how-to-download-unity-using-unity-hub/">How To Download Unity Using Unity Hub</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://oxmond.com/how-to-download-unity-using-unity-hub/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Buttons! How to create and script a button</title>
		<link>https://oxmond.com/how-to-create-and-script-buttons/</link>
					<comments>https://oxmond.com/how-to-create-and-script-buttons/#comments</comments>
		
		<dc:creator><![CDATA[Oxmond Technology]]></dc:creator>
		<pubDate>Wed, 22 May 2019 12:51:23 +0000</pubDate>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[2019]]></category>
		<category><![CDATA[2D]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[buttons]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[coding pirates]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[down]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[gameplay]]></category>
		<category><![CDATA[interactive]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[mouse]]></category>
		<category><![CDATA[press]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[Unity3d]]></category>
		<category><![CDATA[up Unity]]></category>
		<guid isPermaLink="false">https://oxmond.com/?p=455</guid>

					<description><![CDATA[<p>How to create buttons in Unity? Let&#8217;s have a look. We will create and script buttons in this Unity tutorial for beginners. ❤️ Subscribe to Oxmond Tutorials. Stay ahead of the game: https://bit.ly/SubscribeOxmondTutorials ✅ Check Out the Free Asset Packages at the Unity Assets Store:...</p>
<p>The post <a rel="nofollow" href="https://oxmond.com/how-to-create-and-script-buttons/">Buttons! How to create and script a button</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>How to create buttons in Unity? Let&#8217;s have a look. We will create and script buttons in this Unity tutorial for beginners.</p>
<hr />
<p>❤️ Subscribe to Oxmond Tutorials. Stay ahead of the game:<br />
<a href="https://bit.ly/SubscribeOxmondTutorials">https://bit.ly/SubscribeOxmondTutorials</a></p>
<p>✅ Check Out the Free Asset Packages at the Unity Assets Store:<br />
<a href="https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k">https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k</a></p>
<p>😷👕 Need a face mask / developer T-shirt? Drop by our shop and get a 20% DISCOUNT on your first purchase by using the discount code OXMONDSALE. Click here:<br />
<a href="https://shop.oxmond.com/discount/OXMONDSALE">https://shop.oxmond.com/discount/OXMONDSALE</a></p>
<hr />
<p><strong>The Button script:</strong></p>
<pre>
/* .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © OXMOND / www.oxmond.com */

using UnityEngine;
using UnityEngine.Events;

public class Button : MonoBehaviour
{

    public Sprite btnUp;
    public Sprite btnDown;
    public UnityEvent buttonClick;

    void Awake()
    {
        if (buttonClick == null) { buttonClick = new UnityEvent(); }
    }

    void OnMouseDown()
    {
        GetComponent().sprite = btnDown;
    }

    void OnMouseUp()
    {
        print("Click!");
        buttonClick.Invoke();
        GetComponent().sprite = btnUp;
    }
}

</pre>
<p>The post <a rel="nofollow" href="https://oxmond.com/how-to-create-and-script-buttons/">Buttons! How to create and script a button</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://oxmond.com/how-to-create-and-script-buttons/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>How to make multiple copies (clones) of a GameObject. Unity 2019 beginner tutorial</title>
		<link>https://oxmond.com/how-to-make-multiple-copies-of-a-gameobject/</link>
					<comments>https://oxmond.com/how-to-make-multiple-copies-of-a-gameobject/#respond</comments>
		
		<dc:creator><![CDATA[Oxmond Technology]]></dc:creator>
		<pubDate>Thu, 16 May 2019 17:41:45 +0000</pubDate>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[2019]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[coding pirates]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[duplicate]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[gameplay]]></category>
		<category><![CDATA[instantiate]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[paste]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[Unity3d]]></category>
		<guid isPermaLink="false">https://oxmond.com/?p=448</guid>

					<description><![CDATA[<p>How to clone, copy, duplicate&#8230;developers call this &#8220;to instantiate an object&#8221;. In this video we will take a look at how we can clone (instantiate) an object. It&#8217;s easy and very, very useful in almost all kinds of game development. ❤️ Subscribe to Oxmond Tutorials....</p>
<p>The post <a rel="nofollow" href="https://oxmond.com/how-to-make-multiple-copies-of-a-gameobject/">How to make multiple copies (clones) of a GameObject. Unity 2019 beginner tutorial</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>How to clone, copy, duplicate&#8230;developers call this &#8220;to instantiate an object&#8221;. In this video we will take a look at how we can clone (instantiate) an object. It&#8217;s easy and very, very useful in almost all kinds of game development.</p>
<hr />
<p>❤️ Subscribe to Oxmond Tutorials. Stay ahead of the game:<br />
<a href="https://bit.ly/SubscribeOxmondTutorials">https://bit.ly/SubscribeOxmondTutorials</a></p>
<p>✅ Check Out the Free Asset Packages at the Unity Assets Store:<br />
<a href="https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k">https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k</a></p>
<p>😷👕 Need a face mask / developer T-shirt? Drop by our shop and get a 20% DISCOUNT on your first purchase by using the discount code OXMONDSALE. Click here:<br />
<a href="https://shop.oxmond.com/discount/OXMONDSALE">https://shop.oxmond.com/discount/OXMONDSALE</a></p>
<hr />
<pre>/* .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © OXMOND / www.oxmond.com */

using UnityEngine;

public class Coin : MonoBehaviour
{
    void Update()
    {
        transform.Rotate(new Vector3(0f, 100f, 0f) * Time.deltaTime);
    }
}
</pre>
<pre>/* .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © OXMOND / www.oxmond.com */

using System.Collections.Generic;
using UnityEngine;

public class Gameplay : MonoBehaviour
{

    public GameObject coinOriginal;
    public GameObject coinContainer;

    void Start()
    {
        CreateCoins(60);
    }

    private void CreateCoins(int coinsNum)
    {
        for (int i = 0; i &lt; coinsNum; i++)
        {
            // GameObject CoinClone = Instantiate(coinOriginal);
            GameObject CoinClone = Instantiate(coinOriginal, new Vector3(i * 0.6f, coinOriginal.transform.position.y, i * 0.75f), coinOriginal.transform.rotation);
            CoinClone.name = "CoinClone-" + (i + 1);
            CoinClone.transform.parent = coinContainer.transform;
        }
    }

    public void DestroyAllCoins()
    {
            var coins = new List();
            foreach (Transform child in coinContainer.transform) coins.Add(child.gameObject);
            coins.ForEach(child =&gt; Destroy(child));
    }


}
</pre>
<p>The post <a rel="nofollow" href="https://oxmond.com/how-to-make-multiple-copies-of-a-gameobject/">How to make multiple copies (clones) of a GameObject. Unity 2019 beginner tutorial</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://oxmond.com/how-to-make-multiple-copies-of-a-gameobject/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Create the Iconic Asteroids Arcade Gameplay! Unity 2019 Intermediate Tutorial</title>
		<link>https://oxmond.com/asteroids-arcade-gameplay/</link>
					<comments>https://oxmond.com/asteroids-arcade-gameplay/#comments</comments>
		
		<dc:creator><![CDATA[Oxmond Technology]]></dc:creator>
		<pubDate>Mon, 13 May 2019 10:07:34 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[2019]]></category>
		<category><![CDATA[2D]]></category>
		<category><![CDATA[Asteroids]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[coding pirates]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[gameplay]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[skybox]]></category>
		<category><![CDATA[star]]></category>
		<category><![CDATA[stars]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[Unity3d]]></category>
		<guid isPermaLink="false">https://oxmond.com/?p=445</guid>

					<description><![CDATA[<p>Learn how to setup and code the iconic Asteroids shooter arcade gameplay originally designed by Lyle Rains &#38; Ed Logg and released by Atari in 1979. ···················································································· ❤️ Subscribe to Oxmond Tutorials https://bit.ly/SubscribeOxmondTutorials 🚀 Play the game here: https://oxmond.com/games/asteroids/ ✅ Download the free star skybox here...</p>
<p>The post <a rel="nofollow" href="https://oxmond.com/asteroids-arcade-gameplay/">How to Create the Iconic Asteroids Arcade Gameplay! Unity 2019 Intermediate Tutorial</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Learn how to setup and code the iconic Asteroids shooter arcade gameplay originally designed by Lyle Rains &amp; Ed Logg and released by Atari in 1979.</p>
<p>····················································································</p>
<p>❤️ <strong>Subscribe to Oxmond Tutorials</strong><br />
<a href="https://bit.ly/SubscribeOxmondTutorials">https://bit.ly/SubscribeOxmondTutorials</a></p>
<p><strong>🚀 Play the game here:</strong><br />
<a href="https://oxmond.com/games/asteroids/">https://oxmond.com/games/asteroids/</a></p>
<p>✅<strong> Download the free star skybox here (Real Stars Skybox):</strong><br />
<a href="https://assetstore.unity.com/packages/3d/environments/sci-fi/real-stars-skybox-116333?aid=1100l4p9k">https://assetstore.unity.com/packages/3d/environments/sci-fi/real-stars-skybox-116333?aid=1100l4p9k</a></p>
<p>✅<strong> Download Yughues Free Rocks here:</strong><br />
<a href="https://assetstore.unity.com/packages/3d/environments/yughues-free-rocks-13568?aid=1100l4p9k">https://assetstore.unity.com/packages/3d/environments/yughues-free-rocks-13568?aid=1100l4p9k</a></p>
<p>✅ <strong>Download the Rocket mesh here:</strong><br />
<a href="https://assetstore.unity.com/packages/3d/vehicles/space/atom-rocket-model-140021?aid=1100l4p9k">https://assetstore.unity.com/packages/3d/vehicles/space/atom-rocket-model-140021?aid=1100l4p9k</a></p>
<p>✅ <strong>Other free Asset Packages at the Unity Assets Store:</strong><br />
<a href="https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k">https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k</a></p>
<p>😷👕 <strong>Need a face mask / developer T-shirt? Drop by our shop and get a 20% DISCOUNT on your first purchase by using the discount code OXMONDSALE. Click here:</strong><br />
<a href="https://shop.oxmond.com/discount/OXMONDSALE">https://shop.oxmond.com/discount/OXMONDSALE</a></p>
<hr />
<p><strong>Asteroid.cs</strong></p>
<pre>/*

   .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © OXMOND / www.oxmond.com 

*/

using UnityEngine;

public class Asteroid : MonoBehaviour
{

    public GameObject rock;
    public Gameplay gameplay;
    private float maxRotation;
    private float rotationX;
    private float rotationY;
    private float rotationZ;
    private Rigidbody rb;
    private Camera mainCam;
    private float maxSpeed;
    private int _generation;

    void Start()
    {

        mainCam = Camera.main;

        maxRotation = 25f;
        rotationX = Random.Range(-maxRotation, maxRotation);
        rotationY = Random.Range(-maxRotation, maxRotation);
        rotationZ = Random.Range(-maxRotation, maxRotation);

        rb = rock.GetComponent();

        float speedX = Random.Range(200f, 800f);
        int selectorX = Random.Range(0, 2);
        float dirX = 0;
        if (selectorX == 1) { dirX = -1; }
        else { dirX = 1; }
        float finalSpeedX = speedX * dirX;
        rb.AddForce(transform.right * finalSpeedX);

        float speedY = Random.Range(200f, 800f);
        int selectorY = Random.Range(0, 2);
        float dirY = 0;
        if (selectorY == 1) { dirY = -1; }
        else { dirY = 1; }
        float finalSpeedY = speedY * dirY;
        rb.AddForce(transform.up * finalSpeedY);

    }

    public void SetGeneration(int generation)
    {
        _generation = generation;
    }

    void Update()
    {
        rock.transform.Rotate(new Vector3(rotationX, rotationY, 0) * Time.deltaTime);
        CheckPosition();
        float dynamicMaxSpeed = 3f;
        rb.velocity = new Vector2(Mathf.Clamp(rb.velocity.x, -dynamicMaxSpeed, dynamicMaxSpeed), Mathf.Clamp(rb.velocity.y, -dynamicMaxSpeed, dynamicMaxSpeed));
    }

    void OnCollisionEnter(Collision collisionInfo)
    {
        if (collisionInfo.collider.name == "Bullet(Clone)")
        {
            if (_generation &lt; 3)
            {
                CreateSmallAsteriods(2);
            }
            Destroy();
        }

        if (collisionInfo.collider.name == "Rocket")
        {
            gameplay.RocketFail();
        }
    }

    void CreateSmallAsteriods(int asteroidsNum)
    {
        int newGeneration = _generation + 1;
        for (int i = 1; i &lt;= asteroidsNum; i++)
        {
            float scaleSize = 0.5f;
            GameObject AsteroidClone = Instantiate(rock, new Vector3(transform.position.x, transform.position.y, 0f), transform.rotation);
            AsteroidClone.transform.localScale = new Vector3(AsteroidClone.transform.localScale.x * scaleSize, AsteroidClone.transform.localScale.y * scaleSize, AsteroidClone.transform.localScale.z * scaleSize);
            AsteroidClone.GetComponent().SetGeneration(newGeneration);
            AsteroidClone.SetActive(true);
        }
    }

    private void CheckPosition()
    {

        float sceneWidth = mainCam.orthographicSize * 2 * mainCam.aspect;
        float sceneHeight = mainCam.orthographicSize * 2;
        float sceneRightEdge = sceneWidth / 2;
        float sceneLeftEdge = sceneRightEdge * -1;
        float sceneTopEdge = sceneHeight / 2;
        float sceneBottomEdge = sceneTopEdge * -1;

        float rockOffset;
        if (gameplay.allAsteroidsOffScreen)
        {
            rockOffset = 1.0f;
            float reverseSpeed = 2000.1f;

            if (rock.transform.position.x &gt; sceneRightEdge + rockOffset)
            {
                rock.transform.rotation = Quaternion.identity;
                rb.AddForce(transform.right * (reverseSpeed * (-1)));
            }

            if (rock.transform.position.x &lt; sceneLeftEdge - rockOffset) { rock.transform.rotation = Quaternion.identity; rb.AddForce(transform.right * reverseSpeed); } if (rock.transform.position.y &gt; sceneTopEdge + rockOffset)
            {
                rock.transform.rotation = Quaternion.identity;
                rb.AddForce(transform.up * (reverseSpeed * (-1)));
            }

            if (rock.transform.position.y &lt; sceneBottomEdge - rockOffset) { rock.transform.rotation = Quaternion.identity; rb.AddForce(transform.up * reverseSpeed); } } else { rockOffset = 2.0f; if (rock.transform.position.x &gt; sceneRightEdge + rockOffset)
            {
                rock.transform.position = new Vector2(sceneLeftEdge - rockOffset, rock.transform.position.y);
            }

            if (rock.transform.position.x &lt; sceneLeftEdge - rockOffset) { rock.transform.position = new Vector2(sceneRightEdge + rockOffset, rock.transform.position.y); } if (rock.transform.position.y &gt; sceneTopEdge + rockOffset)
            {
                rock.transform.position = new Vector2(rock.transform.position.x, sceneBottomEdge - rockOffset);
            }

            if (rock.transform.position.y &lt; sceneBottomEdge - rockOffset)
            {
                rock.transform.position = new Vector2(rock.transform.position.x, sceneTopEdge + rockOffset);
            }
        }
    }

    public void Destroy()
    {
        gameplay.asterodDestroyed();
        Destroy(gameObject, 0.01f);
    }

    public void DestroySilent()
    {
        Destroy(gameObject, 0.00f);
    }

}

</pre>
<p><strong>Bullet.cs</strong></p>
<pre>
/*

   .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © OXMOND / www.oxmond.com 

*/

using UnityEngine;

public class Bullet : MonoBehaviour
{
    void Start()
    {
        GetComponent().AddForce(transform.up * 350);
    }

    public void KillOldBullet()
    {
        Destroy(gameObject, 2.0f);
    }

    void OnCollisionEnter(Collision collisionInfo)
    {
        Destroy(gameObject, 0.0f);
    }
}

</pre>
<p>
<strong>Gameplay.cs</strong></p>
<pre>/*

   .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © OXMOND / www.oxmond.com 

*/

using UnityEngine;

public class Gameplay : MonoBehaviour
{

    public GameObject asteroid;
    public GameObject rocket;
    private int _startLevelAsteroidsNum;
    private bool _allAsteroidsOffScreen;
    private int levelAsteroidNum;
    private Camera mainCam;
    private int asteroidLife;

    private void Start()
    {
        asteroid.SetActive(false);
        mainCam = Camera.main;
        _startLevelAsteroidsNum = 2;
        CreateAsteroids(_startLevelAsteroidsNum);
    }

    private void Update()
    {
        RenderSettings.skybox.SetFloat("_Rotation", Time.time * 0.8f);

        if (asteroidLife &lt;= 0)
        {
            asteroidLife = 6;
            CreateAsteroids(1);
        }
        
        float sceneWidth = mainCam.orthographicSize * 2 * mainCam.aspect;
        float sceneHeight = mainCam.orthographicSize * 2;
        float sceneRightEdge = sceneWidth / 2;
        float sceneLeftEdge = sceneRightEdge * -1;
        float sceneTopEdge = sceneHeight / 2;
        float sceneBottomEdge = sceneTopEdge * -1;

        _allAsteroidsOffScreen = true;
        
    }

    private void CreateAsteroids(float asteroidsNum)
    {
        for (int i = 1; i &lt;= asteroidsNum; i++)
        {
            GameObject AsteroidClone = Instantiate(asteroid, new Vector2(Random.Range(-10, 10), 6f), transform.rotation);
            AsteroidClone.GetComponent().SetGeneration(1);
            AsteroidClone.SetActive(true);
        }
    }

    public void RocketFail()
    {
        Cursor.visible = true;
        print("GAME OVER");
    }

    public void asterodDestroyed()
    {
        asteroidLife--;
    }

    public int startLevelAsteroidsNum
    {
        get { return _startLevelAsteroidsNum; }
    }

    public bool allAsteroidsOffScreen
    {
        get { return _allAsteroidsOffScreen; }
    }

}</pre>
<hr />
<p>
<strong>Rocket.cs</strong></p>
<pre>/*

   .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © OXMOND / www.oxmond.com 

*/

using UnityEngine;

public class Rocket : MonoBehaviour
{
    public GameObject bullet;
    private float thrust = 6f;
    private float rotationSpeed = 180f;
    private float MaxSpeed = 4.5f;
    private Camera mainCam;
    private Rigidbody rb;

    private void Start()
    {
        mainCam = Camera.main;
        rb = GetComponent();
        bullet.SetActive(false);
    }

    private void FixedUpdate()
    {
        ControlRocket();
        CheckPosition();
    }

    private void Update()
    {
        if (Input.GetMouseButtonDown(0) || Input.GetKeyDown("space"))
        {
            Shoot();
        }
    }

    private void ControlRocket()
    {
        transform.Rotate(0, 0, Input.GetAxis("Horizontal") * rotationSpeed * Time.deltaTime);
        rb.AddForce(transform.up * thrust * Input.GetAxis("Vertical"));
        rb.velocity = new Vector2(Mathf.Clamp(rb.velocity.x, -MaxSpeed, MaxSpeed), Mathf.Clamp(rb.velocity.y, -MaxSpeed, MaxSpeed));
    }

    private void CheckPosition()
    {

        float sceneWidth = mainCam.orthographicSize * 2 * mainCam.aspect;
        float sceneHeight = mainCam.orthographicSize * 2;

        float sceneRightEdge = sceneWidth / 2;
        float sceneLeftEdge = sceneRightEdge * -1;
        float sceneTopEdge = sceneHeight / 2;
        float sceneBottomEdge = sceneTopEdge * -1;

        if (transform.position.x &gt; sceneRightEdge)
        {
            transform.position = new Vector2(sceneLeftEdge, transform.position.y);
        }
        if (transform.position.x &lt; sceneLeftEdge) { transform.position = new Vector2(sceneRightEdge, transform.position.y); } if (transform.position.y &gt; sceneTopEdge)
        {
            transform.position = new Vector2(transform.position.x, sceneBottomEdge);
        }
        if (transform.position.y &lt; sceneBottomEdge)
        {
            transform.position = new Vector2(transform.position.x, sceneTopEdge);
        }
    }

    public void ResetRocket()
    {
        transform.position = new Vector2(0f, 0f);
        transform.eulerAngles = new Vector3(0, 180f, 0);
        rb.velocity = new Vector3(0f, 0f, 0f);
        rb.angularVelocity = new Vector3(0f, 0f, 0f);
    }

    void Shoot()
    {
            GameObject BulletClone = Instantiate(bullet, new Vector2(bullet.transform.position.x, bullet.transform.position.y), transform.rotation);
            BulletClone.SetActive(true);
            BulletClone.GetComponent().KillOldBullet();
            BulletClone.GetComponent().AddForce(transform.up * 350);
    }
}

</pre>
<p>The post <a rel="nofollow" href="https://oxmond.com/asteroids-arcade-gameplay/">How to Create the Iconic Asteroids Arcade Gameplay! Unity 2019 Intermediate Tutorial</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://oxmond.com/asteroids-arcade-gameplay/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title>Create a VR app in only 7 minutes!</title>
		<link>https://oxmond.com/create-a-vr-app-in-only-7-minutes/</link>
					<comments>https://oxmond.com/create-a-vr-app-in-only-7-minutes/#respond</comments>
		
		<dc:creator><![CDATA[Oxmond Technology]]></dc:creator>
		<pubDate>Thu, 27 Dec 2018 04:28:46 +0000</pubDate>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[2018]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[beginners]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Earth]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game making]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[star skybox]]></category>
		<category><![CDATA[stars]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[Unity3d]]></category>
		<category><![CDATA[Virtual Reality]]></category>
		<category><![CDATA[VR]]></category>
		<guid isPermaLink="false">https://oxmond.com/?p=440</guid>

					<description><![CDATA[<p>How to create a Virtual Reality App in Unity. After a just few minutes of work, you and your friends can fly around our beautiful Earth and have a look at the 5000 brightest stars. All in your own home made app. What&#8217;s not to...</p>
<p>The post <a rel="nofollow" href="https://oxmond.com/create-a-vr-app-in-only-7-minutes/">Create a VR app in only 7 minutes!</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>How to create a Virtual Reality App in Unity. After a just few minutes of work, you and your friends can fly around our beautiful Earth and have a look at the 5000 brightest stars. All in your own home made app. What&#8217;s not to like? Unity Intermediate Tutorial</p>
<hr />
<p><strong>❤️ Subscribe to Oxmond Tutorials. Stay ahead of the game:</strong><br />
<a href="https://bit.ly/SubscribeOxmondTutorials">https://bit.ly/SubscribeOxmondTutorials</a></p>
<p><strong>✅ Download the free star skybox here (Real Stars Skybox):</strong><br />
<a href="https://assetstore.unity.com/packages/3d/environments/sci-fi/real-stars-skybox-116333?aid=1100l4p9k">https://assetstore.unity.com/packages/3d/environments/sci-fi/real-stars-skybox-116333?aid=1100l4p9k</a></p>
<p><strong>✅ Download the free Earth Model here (Earth Rendering Free):</strong><br />
<a href="https://assetstore.unity.com/packages/vfx/shaders/earth-rendering-free-54914?aid=1100l4p9k">https://assetstore.unity.com/packages/vfx/shaders/earth-rendering-free-54914?aid=1100l4p9k</a></p>
<p><strong>✅ Download the free Google VR SDK for Unity:</strong><br />
<a href="https://github.com/googlevr/gvr-unity-sdk/releases">https://github.com/googlevr/gvr-unity-sdk/releases</a></p>
<p><strong>✅ Other free Asset Packages at the Unity Assets Store:</strong><br />
<a href="https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k">https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k</a></p>
<p>😷👕 <strong>Need a face mask / developer T-shirt? Drop by our shop and get a 20% DISCOUNT on your first purchase by using the discount code OXMONDSALE. Click here:</strong><br />
<a href="https://shop.oxmond.com/discount/OXMONDSALE">https://shop.oxmond.com/discount/OXMONDSALE</a></p>
<p><strong>The Earth rotation script:</strong></p>
<pre>using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Earth : MonoBehaviour
{
    void Update()
    {
        transform.Rotate(0f, 8f * Time.deltaTime, 0f);        
    }
}
</pre>
<p>The post <a rel="nofollow" href="https://oxmond.com/create-a-vr-app-in-only-7-minutes/">Create a VR app in only 7 minutes!</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://oxmond.com/create-a-vr-app-in-only-7-minutes/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Animations Basics! How to Rotate Objects</title>
		<link>https://oxmond.com/animations-basics-how-to-rotate-objects/</link>
					<comments>https://oxmond.com/animations-basics-how-to-rotate-objects/#comments</comments>
		
		<dc:creator><![CDATA[Oxmond Technology]]></dc:creator>
		<pubDate>Fri, 14 Dec 2018 12:41:20 +0000</pubDate>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[2018]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[beginners]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[coin]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[dotween]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game making]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[itween]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[rotate]]></category>
		<category><![CDATA[rotation]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[tween]]></category>
		<category><![CDATA[tweens]]></category>
		<category><![CDATA[Unity3d]]></category>
		<guid isPermaLink="false">https://oxmond.com/?p=404</guid>

					<description><![CDATA[<p>Animation Tutorial for beginners. How to rotate objects in Unity. Using the Update() method, Unity Animation tools or a Tween tool like iTween or DOTween (HOTween v2) ❤️ Subscribe to Oxmond Tutorials: https://bit.ly/SubscribeOxmondTutorials ✅ Download the free iTween tool here: https://assetstore.unity.com/packages/tools/animation/itween-84?aid=1100l4p9k ✅ iTween documentation: http://www.pixelplacement.com/itween/documentation.php...</p>
<p>The post <a rel="nofollow" href="https://oxmond.com/animations-basics-how-to-rotate-objects/">Animations Basics! How to Rotate Objects</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><span style="font-weight: 400;">Animation Tutorial for beginners. How to rotate objects in Unity. Using the Update() method, Unity Animation tools or a Tween tool like iTween or DOTween </span><span style="font-weight: 400;">(HOTween v2)</span></p>
<hr />
<p><span style="font-weight: 400;"><strong>❤️ Subscribe to Oxmond</strong> Tutorials:<br />
<a href="https://bit.ly/SubscribeOxmondTutorials">https://bit.ly/SubscribeOxmondTutorials</a></span></p>
<p><strong>✅ Download the free iTween tool here:</strong><br />
<a href="https://assetstore.unity.com/packages/tools/animation/itween-84?aid=1100l4p9k"><span style="font-weight: 400;">https://assetstore.unity.com/packages/tools/animation/itween-84?aid=1100l4p9k</span></a></p>
<p><strong>✅ iTween documentation:<br />
</strong><a href="http://www.pixelplacement.com/itween/documentation.php">http://www.pixelplacement.com/itween/documentation.php</a></p>
<p><span style="font-weight: 400;"><strong>✅ Other free Asset Packages at the Unity Assets Store:<br />
</strong></span><a href="https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k">https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k</a></p>
<p>😷👕 <strong>Need a face mask / developer T-shirt? Drop by our shop and get a 20% DISCOUNT on your first purchase by using the discount code OXMONDSALE. Click here:</strong><br />
<a href="https://shop.oxmond.com/discount/OXMONDSALE">https://shop.oxmond.com/discount/OXMONDSALE</a></p>
<hr />
<p><strong>Rotate script:</strong></p>
<pre>/* .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © OXMOND / www.oxmond.com */

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Rotate : MonoBehaviour {

	void Update () {
        transform.Rotate(new Vector3(0f, 0f, 100f) * Time.deltaTime);
	}
}
</pre>
<p><strong>Set rotation:</strong></p>
<pre>
transform.eulerAngles = new Vector3(0, 100f, 0);
</pre>
<p><strong>Rotate iTween script:</strong></p>
<pre>/* .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © OXMOND / www.oxmond.com */

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RotateTween : MonoBehaviour {

    public iTween.EaseType easeType;
    public iTween.LoopType loopType;
	
	void Start () {
        iTween.RotateTo(this.gameObject, iTween.Hash("z", 180, "time", 1.5f, "easetype", easeType, "looptype", loopType));
	}
}

</pre>
<p>The post <a rel="nofollow" href="https://oxmond.com/animations-basics-how-to-rotate-objects/">Animations Basics! How to Rotate Objects</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://oxmond.com/animations-basics-how-to-rotate-objects/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Tank Game Basics! How to build, animate and control a tank</title>
		<link>https://oxmond.com/tank-game-basics-how-to-build-animate-and-control-a-tank/</link>
					<comments>https://oxmond.com/tank-game-basics-how-to-build-animate-and-control-a-tank/#respond</comments>
		
		<dc:creator><![CDATA[Oxmond Technology]]></dc:creator>
		<pubDate>Mon, 10 Dec 2018 05:46:32 +0000</pubDate>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[2018]]></category>
		<category><![CDATA[2D]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[Animator]]></category>
		<category><![CDATA[beginners]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[coding pirates]]></category>
		<category><![CDATA[control]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game making]]></category>
		<category><![CDATA[green]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[red]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[tank]]></category>
		<category><![CDATA[tanks]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[Unity3d]]></category>
		<guid isPermaLink="false">https://oxmond.com/?p=352</guid>

					<description><![CDATA[<p>Create a small tank game. Learn how to build, animate and control 2D tanks using free assets. Full C# script included. ❤️ Subscribe to Oxmond Tutorials: https://bit.ly/SubscribeOxmondTutorials ✅ Download the free Tank Constructor tool here: https://assetstore.unity.com/packages/2d/textures-materials/tank-constructor-131316?aid=1100l4p9k ✅ Other free Asset Packages at the Unity Assets...</p>
<p>The post <a rel="nofollow" href="https://oxmond.com/tank-game-basics-how-to-build-animate-and-control-a-tank/">Tank Game Basics! How to build, animate and control a tank</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Create a small tank game. Learn how to build, animate and control 2D tanks using free assets. Full C# script included.</p>
<hr />
<p><span style="font-weight: 400;"><strong>❤️ Subscribe to Oxmond Tutorials:<br />
</strong><a href="https://bit.ly/SubscribeOxmondTutorials">https://bit.ly/SubscribeOxmondTutorials</a></span></p>
<p>✅ Download the free Tank Constructor tool here:<br />
<a href="https://assetstore.unity.com/packages/2d/textures-materials/tank-constructor-131316?aid=1100l4p9k">https://assetstore.unity.com/packages/2d/textures-materials/tank-constructor-131316?aid=1100l4p9k</a></p>
<p><span style="font-weight: 400;"><strong>✅ Other free Asset Packages at the Unity Assets Store:</strong><br />
</span><a href="https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k"><span style="font-weight: 400;">https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k </span></a></p>
<p>😷👕 <strong>Need a face mask / developer T-shirt? Drop by our shop and get a 20% DISCOUNT on your first purchase by using the discount code OXMONDSALE. Click here:</strong><br />
<a href="https://shop.oxmond.com/discount/OXMONDSALE">https://shop.oxmond.com/discount/OXMONDSALE</a></p>
<hr />
<p><strong>Tank script:</strong></p>
<pre>/* .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © OXMOND / www.oxmond.com */

using UnityEngine;

public class Tank : MonoBehaviour
{

    /////*******************************************/////
    /////                   VARS                    /////  
    /////*******************************************/////

    public Track trackLeft;
    public Track trackRight;

    public string keyMoveForward;
    public string keyMoveReverse;
    public string keyRotateRight;
    public string keyRotateLeft;

    bool moveForward = false;
    bool moveReverse = false;
    float moveSpeed = 0f;
    float moveSpeedReverse = 0f;
    float moveAcceleration = 0.1f;
    float moveDeceleration = 0.20f;
    float moveSpeedMax = 2.5f;

    bool rotateRight = false;
    bool rotateLeft = false;
    float rotateSpeedRight = 0f;
    float rotateSpeedLeft = 0f;
    float rotateAcceleration = 4f;
    float rotateDeceleration = 10f;
    float rotateSpeedMax = 130f;


    /////*******************************************/////
    /////                 UPDATE                    /////  
    /////*******************************************/////

    void Update()
    {

        rotateLeft = (Input.GetKeyDown(keyRotateLeft)) ? true : rotateLeft;
        rotateLeft = (Input.GetKeyUp(keyRotateLeft)) ? false : rotateLeft;
        if (rotateLeft)
        {
            rotateSpeedLeft = (rotateSpeedLeft &lt; rotateSpeedMax) ? rotateSpeedLeft + rotateAcceleration : rotateSpeedMax; } else { rotateSpeedLeft = (rotateSpeedLeft &gt; 0) ? rotateSpeedLeft - rotateDeceleration : 0;
        }
        transform.Rotate(0f, 0f, rotateSpeedLeft * Time.deltaTime);

        rotateRight = (Input.GetKeyDown(keyRotateRight)) ? true : rotateRight;
        rotateRight = (Input.GetKeyUp(keyRotateRight)) ? false : rotateRight;
        if (rotateRight)
        {
            rotateSpeedRight = (rotateSpeedRight &lt; rotateSpeedMax) ? rotateSpeedRight + rotateAcceleration : rotateSpeedMax; } else { rotateSpeedRight = (rotateSpeedRight &gt; 0) ? rotateSpeedRight - rotateDeceleration : 0;
        }
        transform.Rotate(0f, 0f, rotateSpeedRight * Time.deltaTime * -1f);

        moveForward = (Input.GetKeyDown(keyMoveForward)) ? true : moveForward;
        moveForward = (Input.GetKeyUp(keyMoveForward)) ? false : moveForward;
        if (moveForward)
        {
            moveSpeed = (moveSpeed &lt; moveSpeedMax) ? moveSpeed + moveAcceleration : moveSpeedMax; } else { moveSpeed = (moveSpeed &gt; 0) ? moveSpeed - moveDeceleration : 0;
        }
        transform.Translate(0f, moveSpeed * Time.deltaTime, 0f);

        moveReverse = (Input.GetKeyDown(keyMoveReverse)) ? true : moveReverse;
        moveReverse = (Input.GetKeyUp(keyMoveReverse)) ? false : moveReverse;
        if (moveReverse)
        {
            moveSpeedReverse = (moveSpeedReverse &lt; moveSpeedMax) ? moveSpeedReverse + moveAcceleration : moveSpeedMax; } else { moveSpeedReverse = (moveSpeedReverse &gt; 0) ? moveSpeedReverse - moveDeceleration : 0;
        }
        transform.Translate(0f, moveSpeedReverse * Time.deltaTime * -1f, 0f);

        if (moveForward | moveReverse | rotateRight | rotateLeft)
        {
            trackStart();
        }
        else
        {
            trackStop();
        }

    }

    /////*******************************************/////
    /////                METHODS                    /////  
    /////*******************************************/////

    void trackStart()
    {
        trackLeft.animator.SetBool("isMoving", true);
        trackRight.animator.SetBool("isMoving", true);
    }

    void trackStop()
    {
        trackLeft.animator.SetBool("isMoving", false);
        trackRight.animator.SetBool("isMoving", false);
    }

}


</pre>
<p><strong>Tracks script:</strong></p>
<pre>/* .-------.                             .--.    .-------.     .--.            .--.     .--.        
   |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
   |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
   |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
   © OXMOND / www.oxmond.com */

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Track : MonoBehaviour {

    public Animator animator;

}

</pre>
<p>The post <a rel="nofollow" href="https://oxmond.com/tank-game-basics-how-to-build-animate-and-control-a-tank/">Tank Game Basics! How to build, animate and control a tank</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://oxmond.com/tank-game-basics-how-to-build-animate-and-control-a-tank/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Learn basic level design using Unity&#8217;s 2D Game Kit Design. NO coding needed!</title>
		<link>https://oxmond.com/learn-basic-level-design-using-unitys-2d-game-kit-design-no-coding-needed/</link>
					<comments>https://oxmond.com/learn-basic-level-design-using-unitys-2d-game-kit-design-no-coding-needed/#respond</comments>
		
		<dc:creator><![CDATA[Oxmond Technology]]></dc:creator>
		<pubDate>Sat, 01 Dec 2018 11:30:00 +0000</pubDate>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[2018]]></category>
		<category><![CDATA[2D]]></category>
		<category><![CDATA[2D Game Kit]]></category>
		<category><![CDATA[beginners]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[coding pirates]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game making]]></category>
		<category><![CDATA[Kit]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[level design]]></category>
		<category><![CDATA[no coding]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[Unity3d]]></category>
		<guid isPermaLink="false">https://oxmond.com/?p=346</guid>

					<description><![CDATA[<p>Learn basic level design with Unitys 2D Game Kit. It&#8217;s a full game example including collections of mechanics, tools, systems, assets etc. No coding needed! ❤️ Subscribe to Oxmond Tutorials. Stay ahead of the game: https://bit.ly/SubscribeOxmondTutorials ✅ Download the 2D Game Kit here: https://assetstore.unity.com/packages/essentials/tutorial-projects/2d-game-kit-107098?aid=1100l4p9k ✅...</p>
<p>The post <a rel="nofollow" href="https://oxmond.com/learn-basic-level-design-using-unitys-2d-game-kit-design-no-coding-needed/">Learn basic level design using Unity&#8217;s 2D Game Kit Design. NO coding needed!</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Learn basic level design with Unitys 2D Game Kit. It&#8217;s a full game example including collections of mechanics, tools, systems, assets etc. No coding needed!</p>
<hr />
<p>❤️ <strong>Subscribe to Oxmond Tutorials. Stay ahead of the game:</strong><br />
<a href="https://bit.ly/SubscribeOxmondTutorials">https://bit.ly/SubscribeOxmondTutorials</a></p>
<p>✅ <strong>Download the 2D Game Kit here:</strong><br />
<a href="https://assetstore.unity.com/packages/essentials/tutorial-projects/2d-game-kit-107098?aid=1100l4p9k">https://assetstore.unity.com/packages/essentials/tutorial-projects/2d-game-kit-107098?aid=1100l4p9k</a></p>
<p>✅ <strong>Other free Asset Packages at the Unity Assets Store:</strong><br />
<a href="https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k">https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k</a></p>
<p>✅ <strong>Music:</strong><br />
Mr. Sunny Face by Wayne Jones</p>
<p>😷👕 Need a face mask / developer T-shirt? Drop by our shop and get a 20% DISCOUNT on your first purchase by using the discount code OXMONDSALE. Click here:<br />
<a href="https://shop.oxmond.com/discount/OXMONDSALE">https://shop.oxmond.com/discount/OXMONDSALE</a></p>
<p>The post <a rel="nofollow" href="https://oxmond.com/learn-basic-level-design-using-unitys-2d-game-kit-design-no-coding-needed/">Learn basic level design using Unity&#8217;s 2D Game Kit Design. NO coding needed!</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://oxmond.com/learn-basic-level-design-using-unitys-2d-game-kit-design-no-coding-needed/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Create easy and cool animations using classic tweener techniques</title>
		<link>https://oxmond.com/create-easy-and-cool-animations-using-classic-tweener-techniques/</link>
					<comments>https://oxmond.com/create-easy-and-cool-animations-using-classic-tweener-techniques/#respond</comments>
		
		<dc:creator><![CDATA[Oxmond Technology]]></dc:creator>
		<pubDate>Thu, 29 Nov 2018 07:05:02 +0000</pubDate>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[2018]]></category>
		<category><![CDATA[animate]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[animations]]></category>
		<category><![CDATA[beginners]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[coding pirates]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game making]]></category>
		<category><![CDATA[itween]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[script animation]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[tweener]]></category>
		<category><![CDATA[tweens]]></category>
		<category><![CDATA[Unity3d]]></category>
		<guid isPermaLink="false">https://oxmond.com/?p=330</guid>

					<description><![CDATA[<p>Create fast and beautiful animations using the free iTween tool. ❤️ Subscribe to Oxmond Tutorials: https://bit.ly/SubscribeOxmondTutorials ✅ Download the free iTween tool here: https://assetstore.unity.com/packages/tools/animation/itween-84?aid=1100l4p9k ✅ iTween documentation: http://www.pixelplacement.com/itween/documentation.php ✅ Other free Asset Packages at the Unity Assets Store: https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k 😷👕 Need a face mask /...</p>
<p>The post <a rel="nofollow" href="https://oxmond.com/create-easy-and-cool-animations-using-classic-tweener-techniques/">Create easy and cool animations using classic tweener techniques</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Create fast and beautiful animations using the free iTween tool.</p>
<hr />
<p><strong><span style="font-weight: 400;">❤️ <strong>Subscribe to Oxmond Tutorials:</strong><br />
<a href="https://bit.ly/SubscribeOxmondTutorials">https://bit.ly/SubscribeOxmondTutorials</a></span></strong></p>
<p>✅ Download the free iTween tool here:<br />
<a href="https://assetstore.unity.com/packages/tools/animation/itween-84?aid=1100l4p9k">https://assetstore.unity.com/packages/tools/animation/itween-84?aid=1100l4p9k</a></p>
<p><strong>✅ iTween documentation:</strong><br />
<a href="http://www.pixelplacement.com/itween/documentation.php">http://www.pixelplacement.com/itween/documentation.php</a></p>
<p><strong>✅ Other free Asset Packages at the Unity Assets Store:</strong><br />
<a href="https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k">https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k</a></p>
<p>😷👕 <strong>Need a face mask / developer T-shirt? Drop by our shop and get a 20% DISCOUNT on your first purchase by using the discount code OXMONDSALE. Click here:</strong><br />
<a href="https://shop.oxmond.com/discount/OXMONDSALE">https://shop.oxmond.com/discount/OXMONDSALE</a></p>
<hr />
<p><strong>Cube script:</strong></p>
<pre>/*   .-------.                             .--.    .-------.     .--.            .--.     .--.        
     |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
     |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
     |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
     Author: Oxmond Tutorials / www.oxmond.com  */


using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Cube : MonoBehaviour {

    public float animationTime = 1.0f;
    public iTween.EaseType easetype;

    private bool jumpReady = true;

	void Update () {
        if (Input.GetKeyDown(KeyCode.Space) &amp;&amp; jumpReady == true) CubeJump();	
	}

    void CubeJump() {
        jumpReady = false;
        iTween.MoveTo(this.gameObject, iTween.Hash("y", 3.5, "time", 0.4, "easetype", "easeOutSine"));		
        iTween.MoveTo(this.gameObject, iTween.Hash("y", 0, "time", 0.4, "easetype", "easeInSine", "delay", 0.4));		
        iTween.RotateTo(this.gameObject, iTween.Hash("z", transform.rotation.eulerAngles.z - 90, "time", 0.8, "easetype", "easeOutQuint", "oncomplete", "SetJumpReady"));		
    }

    void SetJumpReady() {
        jumpReady = true;
    }
}</pre>
<hr />
<p><strong>Obstacle script:</strong></p>
<pre>/*   .-------.                             .--.    .-------.     .--.            .--.     .--.        
     |       |--.--.--------.-----.-----.--|  |    |_     _|--.--|  |_.-----.----|__|---.-|  |-----.
     |   -   |_   _|        |  _  |     |  _  |      |   | |  |  |   _|  _  |   _|  |  _  |  |__ --|
     |_______|__.__|__|__|__|_____|__|__|_____|      |___| |_____|____|_____|__| |__|___._|__|_____|
     Author: Oxmond Tutorials / www.oxmond.com  */

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Obstacle : MonoBehaviour {

void Start () {
        iTween.MoveTo(this.gameObject, iTween.Hash("x", -6.5, "time", 1.4, "easetype", "linear", "looptype", "pingpong"));
    }
}

</pre>
<p>The post <a rel="nofollow" href="https://oxmond.com/create-easy-and-cool-animations-using-classic-tweener-techniques/">Create easy and cool animations using classic tweener techniques</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://oxmond.com/create-easy-and-cool-animations-using-classic-tweener-techniques/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Create a Real Time Analog Wall Clock using C#</title>
		<link>https://oxmond.com/create-a-real-time-analog-wall-clock-using-c-unity-2018-intermediate-tutorial/</link>
					<comments>https://oxmond.com/create-a-real-time-analog-wall-clock-using-c-unity-2018-intermediate-tutorial/#comments</comments>
		
		<dc:creator><![CDATA[Oxmond Technology]]></dc:creator>
		<pubDate>Tue, 27 Nov 2018 05:46:46 +0000</pubDate>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[2018]]></category>
		<category><![CDATA[beginners]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Clock]]></category>
		<category><![CDATA[clock face]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game making]]></category>
		<category><![CDATA[hour hand]]></category>
		<category><![CDATA[itween]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[minute hand]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[second hand]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[tweener]]></category>
		<category><![CDATA[Unity3d]]></category>
		<guid isPermaLink="false">https://oxmond.com/?p=316</guid>

					<description><![CDATA[<p>Script an analog real time wall clock with C#. Rotate and animate the hands using the awesome iTween tool. ❤️ Subscribe to Oxmond Tutorials: https://bit.ly/SubscribeOxmondTutorials ✅ Download free Analog Wall Clock assets here: https://www.freepik.com/free-vector/designer-wall-clock-in-a-metal-casing_1310847.htm Designed by Iconicbestiary ✅ Download the free iTween tool here: https://assetstore.unity.com/packages/tools/animation/itween-84?aid=1100l4p9k...</p>
<p>The post <a rel="nofollow" href="https://oxmond.com/create-a-real-time-analog-wall-clock-using-c-unity-2018-intermediate-tutorial/">Create a Real Time Analog Wall Clock using C#</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Script an analog real time wall clock with C#. Rotate and animate the hands using the awesome iTween tool.</p>
<hr />
<p><strong><span style="font-weight: 400;">❤️ <strong>Subscribe to Oxmond Tutorials:</strong><br />
<a href="https://bit.ly/SubscribeOxmondTutorials">https://bit.ly/SubscribeOxmondTutorials</a></span></strong></p>
<p>✅ Download free Analog Wall Clock assets here:<br />
<a href="https://www.freepik.com/free-vector/designer-wall-clock-in-a-metal-casing_1310847.htm">https://www.freepik.com/free-vector/designer-wall-clock-in-a-metal-casing_1310847.htm</a><br />
Designed by Iconicbestiary</p>
<p><strong>✅ Download the free iTween tool here:</strong><br />
<a href="https://assetstore.unity.com/packages/tools/animation/itween-84?aid=1100l4p9k">https://assetstore.unity.com/packages/tools/animation/itween-84?aid=1100l4p9k</a></p>
<p><strong>✅ Other free Asset Packages at the Unity Assets Store:</strong><br />
<a href="https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k">https://assetstore.unity.com/lists/top-free-packages-13201?aid=1100l4p9k</a></p>
<p>😷👕 Need a face mask / developer T-shirt? Drop by our shop and get a 20% DISCOUNT on your first purchase by using the discount code OXMONDSALE. Click here:<br />
<a href="https://shop.oxmond.com/discount/OXMONDSALE">https://shop.oxmond.com/discount/OXMONDSALE</a></p>
<hr />
<p><strong>Clock script:</strong></p>
<pre>using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Clock : MonoBehaviour {

    public GameObject secondHand;
    public GameObject minuteHand;
    public GameObject hourHand;
    string oldSeconds;

	void Update () {

        string seconds = System.DateTime.UtcNow.ToString("ss");
        

        if (seconds != oldSeconds) {
            UpdateTimer();
        }
        oldSeconds = seconds;
	}

    void UpdateTimer() {

        int secondsInt = int.Parse(System.DateTime.UtcNow.ToString("ss"));
        int minutesInt = int.Parse(System.DateTime.UtcNow.ToString("mm"));
        int hoursInt = int.Parse(System.DateTime.UtcNow.ToLocalTime().ToString("hh"));
        print(hoursInt + " : " + minutesInt +  " : " + secondsInt);

        iTween.RotateTo(secondHand, iTween.Hash("z", secondsInt * 6 * -1, "time", 1, "easetype", "easeOutQuint"));
        iTween.RotateTo(minuteHand, iTween.Hash("z", minutesInt * 6 * -1, "time", 1, "easetype", "easeOutElastic"));
        float hourDistance = (float)(minutesInt) / 60f;
        iTween.RotateTo(hourHand, iTween.Hash("z", (hoursInt + hourDistance) * 360 / 12 * -1, "time", 1, "easetype", "easeOutQuint"));

    }
}
</pre>
<p>The post <a rel="nofollow" href="https://oxmond.com/create-a-real-time-analog-wall-clock-using-c-unity-2018-intermediate-tutorial/">Create a Real Time Analog Wall Clock using C#</a> appeared first on <a rel="nofollow" href="https://oxmond.com">Oxmond Technology</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://oxmond.com/create-a-real-time-analog-wall-clock-using-c-unity-2018-intermediate-tutorial/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
