Android Game Development unity How to make It?
(writen by
gour hari ghosh)
Hello, friends this content you Learn android game development for unity. many game development
unity game engine.App agar unity game engine Android Game banna chata ho to. sayhi website ma
ho. unity game engine miliaya android bBannya ja ta ha. Dosto unity game engine hi Aysa game
engine ha jo Admb ka Ads support kar ha dosto.PlayStore may Apko thousand of game mil jia ga
dosto.unity game engine ma agare apko game banna na shik na ha to phyla Apko coading Ayana
Chia. App Agar unity game engine ma game ko create Kar Na Chata Ha to Apko C sharp Matlab
c# languge Ayana chia but Agar upkoybhi programing languge Janta ho to Apka li Asan ho ga
unity game engine game ko create kar na.
unity Android games:
Kay App unity Android games banna na cha ta ho ? Toa Phyla Apko unity game engine download
kar na para ga dosto. App Unity game Engine ka Oficial Website Ka Under Maya Jia Or Download
kar lia ja ga dost unity personal unity game engines Ka Upor Upko ClickKar Na Ha Dosto or unity game engine 2018.1bf Ko download kar la Na.
Ha ish ka ho ga ka app Animated tile map set kar sak ta ho dosto.unity game engine installer ka under
Android build support ko select kar Na Ha .is ka ho ga ka up Android game Bana paynga dosto.
Ush ka Bad Aapko kar Na Ha ka unity game engine project Create kar li ja project ka name aap kuch
vi de dak ta ho dosto. Isa pha ma appko 2d unity game ka bara ma batun ga dost.project types 2d
select kar Na Ha. Thik dosto Maya apko batun ka app kay sa 2d unity game banasak to phyla app ish
assets ko download kar li ja click here download Ush ka bad dosto App Create ki unity game
engine ka under projet jisa Image diahua ha
Usk ka Bad issh Assets ko drag kar unity 2d Game engine project ka assets ka under chor dija. Apka
assets ko import kar la ga unity game engine.ush ka Bad app main Camera ka nich app idel bale
image ka ko chor dija Ga to camera ka pase ma aya ja ga. App ka cherater. Dosto Iss Image ka Under
jaysa baysa ki ja ga.
unity game engine ka under Inspector ka Add component search ki ja rigidbody2d or Constraints
Freeze Rotation Z tick kar di ja. usk ka bad Add component sa Capsul collider 2d ka li ja. Or Capsul
kop wdit kar li ja ga dosto uppor ma jis tarika sa dia hua ha. ush ka bad tile ko drag kar ka chore di
ja. or Inspector ka under draw mode ma tiled set kar li ja. unity game engine Inspectior ka under
Add component box collider 2d ko li ja. Or ush ko Tiled ka under edit kar jia. app unity game engine
character select kar li ja dosto or unity game engine Inspector ka Add component ka Add new script
la li ja or ushka name Aap rakh li ja playerController. unity game engine ka Inspectior ka under
player controller script ko duble click kar ka Open kar li Visual studio ya mono devloper ma.
Ha ish ka ho ga ka app Animated tile map set kar sak ta ho dosto.unity game engine installer ka under
Android build support ko select kar Na Ha .is ka ho ga ka up Android game Bana paynga dosto.
Ush ka Bad Aapko kar Na Ha ka unity game engine project Create kar li ja project ka name aap kuch
vi de dak ta ho dosto. Isa pha ma appko 2d unity game ka bara ma batun ga dost.project types 2d
select kar Na Ha. Thik dosto Maya apko batun ka app kay sa 2d unity game banasak to phyla app ish
assets ko download kar li ja click here download Ush ka bad dosto App Create ki unity game
engine ka under projet jisa Image diahua ha
Usk ka Bad issh Assets ko drag kar unity 2d Game engine project ka assets ka under chor dija. Apka
assets ko import kar la ga unity game engine.ush ka Bad app main Camera ka nich app idel bale
image ka ko chor dija Ga to camera ka pase ma aya ja ga. App ka cherater. Dosto Iss Image ka Under
jaysa baysa ki ja ga.
unity game engine ka under Inspector ka Add component search ki ja rigidbody2d or Constraints
Freeze Rotation Z tick kar di ja. usk ka bad Add component sa Capsul collider 2d ka li ja. Or Capsul
kop wdit kar li ja ga dosto uppor ma jis tarika sa dia hua ha. ush ka bad tile ko drag kar ka chore di
ja. or Inspector ka under draw mode ma tiled set kar li ja. unity game engine Inspectior ka under
Add component box collider 2d ko li ja. Or ush ko Tiled ka under edit kar jia. app unity game engine
character select kar li ja dosto or unity game engine Inspector ka Add component ka Add new script
la li ja or ushka name Aap rakh li ja playerController. unity game engine ka Inspectior ka under
player controller script ko duble click kar ka Open kar li Visual studio ya mono devloper ma.
Unity Game Engine ka Under 2d character Movement setup:-
Abb Dosto player controller Script ko open ka up mono developer ya visual studio ma kar li ja.
public class PLAYER : MonoBehaviour ish pa Dosato unity game engine ka player ka class and
public class playerController : MonoBehaviour
// ish ka uder player ka VARIVAL Or class likha jata ha.
{
private Rigidbody2D playerbody; //private ka Matlab ea AAP ka unity game engine ma show nahie
kara ga player body jo likha ha bho aap ka player controler
public float speed; //public ka Matlab aap ka unity game engine ka un der show
kara ga float ka matlap upka player ka speed
public bool IslookLeft; // ihapa app jo bool lia hua ha aap ka true or false set kara ga.
// Start is called before the first frame update
void Start() // void start ka under aap ka player ka component select kia jata ha
{
playerbody = GetComponent<Rigidbody2D>();
}
// Update is called once per frame
void Update()
{
float h = Input.GetAxisRaw("Horizontal"); // ihapa float h ka matlab horizontal speed ha
playerbody.velocity = new Vector2(h * speed, playerbody.velocity.y);
if (h > 0 && IslookLeft == true)
{Flip();
}
else if (h < 0 && IslookLeft == false)
{Flip();
}
}
void Flip()
{
IslookLeft = !IslookLeft;
float x = transform.localScale.x *-1;
transform.localScale = new Vector3 (x,transform.localScale.y,transform.localScale.z);
}
}
dosto ish code ko AAP Agar app Apna player controller script ka under paste kar denga to App ka
script kam karla ga . eha pa jo script ha bho unity game engine ma player Arrow key left And Arrow
key right presse kar na sa character Movement kara ga or flip ho ja.
us ka bad tile ka Select Kar ka Inspector ka niche tag section ka under create tag ki ja Or us ka name
di ja ground . unity game game engine ka under tile ka tag ground select kar li ja. Us ka bad unity
game-engine ma Inspector layer tile ka layer create ki ja .layer ka name ground da di ja.layer ko
select kar li ja ground .unity game engine ma player ko select kar ka player Controler Script ka
under duble click kar ka open kar li ja visual studio or mono developer jo vhi ha aap ka pase ma.
jays ki I?mahge ma dia huua ha.
public class playerController : MonoBehaviour
// ish ka uder player ka VARIVAL Or class likha jata ha.
{
private Rigidbody2D playerbody; //private ka Matlab ea AAP ka unity game engine ma show nahie
kara ga player body jo likha ha bho aap ka player controler
public float speed; //public ka Matlab aap ka unity game engine ka un der show
kara ga float ka matlap upka player ka speed
public bool IslookLeft; // ihapa app jo bool lia hua ha aap ka true or false set kara ga.
// Start is called before the first frame update
void Start() // void start ka under aap ka player ka component select kia jata ha
{
playerbody = GetComponent<Rigidbody2D>();
}
// Update is called once per frame
void Update()
{
float h = Input.GetAxisRaw("Horizontal"); // ihapa float h ka matlab horizontal speed ha
playerbody.velocity = new Vector2(h * speed, playerbody.velocity.y);
if (h > 0 && IslookLeft == true)
{Flip();
}
else if (h < 0 && IslookLeft == false)
{Flip();
}
}
void Flip()
{
IslookLeft = !IslookLeft;
float x = transform.localScale.x *-1;
transform.localScale = new Vector3 (x,transform.localScale.y,transform.localScale.z);
}
}
dosto ish code ko AAP Agar app Apna player controller script ka under paste kar denga to App ka
script kam karla ga . eha pa jo script ha bho unity game engine ma player Arrow key left And Arrow
key right presse kar na sa character Movement kara ga or flip ho ja.
unity game engine 2D character jump setup:-
Hello, friend, this Content jump setup fist go to your unity game engine .fist player ko select
kar ka Right Mouse Click kar li ja create game Object kar li ja. Or ush ka name da deja groundCheck
ush ka bad Arow sa drag karka pointer ko player ka nicha kar lik ja. jaysa ki 'Image dea hua ha.
us ka bad tile ka Select Kar ka Inspector ka niche tag section ka under create tag ki ja Or us ka name
di ja ground . unity game game engine ka under tile ka tag ground select kar li ja. Us ka bad unity
game-engine ma Inspector layer tile ka layer create ki ja .layer ka name ground da di ja.layer ko
select kar li ja ground .unity game engine ma player ko select kar ka player Controler Script ka
under duble click kar ka open kar li ja visual studio or mono developer jo vhi ha aap ka pase ma.
jays ki I?mahge ma dia huua ha.
No comments:
Post a Comment
Please do not Enter any Spam link in the Comment Box