2d unity3d 2022
unity3d 2022
- ,
.
.
,
unity3d 2022,
.
, , unity3d
,
,
.
, !
unity3d 2022, 2022.3.11f1
.
- . - -
.
Visual Studio c#
unity3d . ,
, . , -
notepad++.
VS , notepad++.
.
.
!
, . ,
Unity Hub.
640 1920 .
2D Core
Project name
- ,
the_first_game
Location
,
Create
640 1920 .
, unity3d 2022 .
2 . .
, , unity3d!
, ,
.
: 1,11 Gb
. . ,
.
-
640 1920 .
.
-
640 1920 .
unity3d
, ,
,
.
, .
Play
640 1920 .
. .
, unity3d ( ).
Play . ,
.
unity3d
,
:
Assets\mng_dress_hordes\game\girls\mindy\
, unity3d
mindy_1_256.png.meta
- .
unity3d
[____]\Assets\mng_dress_hordes\game\girls\mindy\
.
( gif) -
640 1920 .
, ,
Play ( Play !!!),
-
!!!
- ,
.
Play.
.
mindy_1_256 player.
Rename.
640 1920 .
, Enter. - Ctrl + [S]
Play.
, Play .
,
#Scene
Play,
.
640 1920 .
#Scene , Game -
exe.
, .
File > Build settings
640 1920 .
- Windows, Mac, Linux
exe
Windows.
640 1920 .
- Build
Clean Build -
.
Build ,
unity3d .
- build\win
win
- exe
.
zip -,
.
, !
( 1 )
unity3d exe
.
, .
640 1920 .
,
Play,
.
70,6 Mb,
, , .
-, unity3d, visual studio,
WebGL,
win/linux/mac, ,
exe,
Linux Mac. .
.
,
.
Windows Alt + F4.
c# ,
unity3d.
Assets
Scripts
-
unity3d
-
. readme.txt .
.
[____]\Assets\Scripts
Movement
CharacterController_2d.cs
. .cs
,
c# , .
, .
:
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using TMPro;
using UnityEngine;
public class CharacterController_2d : MonoBehaviour
{
public float runSpeed = 40.0f;
float horizontalMove = 0.0f;
float verticalMove = 0.0f;
private Rigidbody2D m_Rigidbody2D;
private Vector3 velocity = Vector3.zero;
// How much to smooth out the movement
[Range(0, 0.3f)] [SerializeField] private float m_MovementSmoothing = 0.05f;
public TMP_Text fpsText;
public float deltaTime;
public bool showFPSOn = true;
void showFPS() {
fpsText.gameObject.SetActive(showFPSOn);
if (!showFPSOn)
return;
deltaTime += (Time.deltaTime - deltaTime) * 0.1f;
float fps = 1.0f / deltaTime;
fpsText.text = "FPS: "+Mathf.Ceil(fps).ToString();
}
// Start is called before the first frame update
void Start()
{
showFPSOn = true;
fpsText = GameObject.Find("FPS").GetComponent<TMP_Text>();
Debug.Log("game started");
}
private void Awake()
{
m_Rigidbody2D = GetComponent<Rigidbody2D>();
}
// Update is called once per frame
void Update()
{
horizontalMove = Input.GetAxisRaw("Horizontal") * runSpeed;
verticalMove = Input.GetAxisRaw("Vertical") * runSpeed;
if (Input.GetKeyUp(KeyCode.F))
{
showFPSOn = !showFPSOn;
}
if (Input.GetKey("escape"))
{
Application.Quit();
}
showFPS();
}
void FixedUpdate()
{
// Move our character
Vector3 targetVelocity = new Vector2(horizontalMove * Time.fixedDeltaTime * 10.0f,
verticalMove
* Time.fixedDeltaTime * 5.0f);
m_Rigidbody2D.velocity = Vector3.SmoothDamp(m_Rigidbody2D.velocity, targetVelocity,
ref velocity,
m_MovementSmoothing);
}
}
.
unity3d,
[____]\Assets\Scripts\Movement
Create > C# Script
-
640 1920 .
:
CharacterController_2d
Visual Studio ( 2019)
, -.
640 1920 .
class NewBehaviourScript
-
-
CharacterController_2d
Visual Studio - Ctrl + S.
640 1920 .
unity3d ,
.
, -
.
, ,
.
?
, ,
- .
player.
.
player
, Inspector,
player.
640 1920 .
640 1920 .
, Play
.
?
exe File > Build and Run Ctlr + [B].
CharacterController_2d.cs
, .
, c# ,
. Visual Studio
c c# .
using System.Collections; //
using System.Collections.Generic; // - Generic
using UnityEngine.UI; // UI
using TMPro; // TMP_Text
using UnityEngine; // -
// unity3d c# .
public class CharacterController_2d : MonoBehaviour
{
public float runSpeed = 40.0f; //
float horizontalMove = 0.0f; //
float verticalMove = 0.0f; //
private Rigidbody2D m_Rigidbody2D; // player,
//
private Vector3 velocity = Vector3.zero; // ,
//
[Range(0, 0.3f)] [SerializeField] private float m_MovementSmoothing = 0.05f;
public TMP_Text fpsText;
public float deltaTime;
public bool showFPSOn = true;
void showFPS() {
fpsText.gameObject.SetActive(showFPSOn);
if (!showFPSOn)
return;
deltaTime += (Time.deltaTime - deltaTime) * 0.1f;
float fps = 1.0f / deltaTime;
fpsText.text = "FPS: "+Mathf.Ceil(fps).ToString();
}
// Start is called before the first frame update
void Start()
{
showFPSOn = true;
fpsText = GameObject.Find("FPS").GetComponent<TMP_Text>();
Debug.Log("game started");
}
private void Awake()
{
m_Rigidbody2D = GetComponent<Rigidbody2D>();
}
// Update is called once per frame
void Update()
{
horizontalMove = Input.GetAxisRaw("Horizontal") * runSpeed;
verticalMove = Input.GetAxisRaw("Vertical") * runSpeed;
if (Input.GetKeyUp(KeyCode.F))
{
showFPSOn = !showFPSOn;
}
if (Input.GetKey("escape"))
{
Application.Quit();
}
showFPS();
}
void FixedUpdate()
{
// Move our character
Vector3 targetVelocity = new Vector2(horizontalMove * Time.fixedDeltaTime * 10.0f,
verticalMove
* Time.fixedDeltaTime * 5.0f);
m_Rigidbody2D.velocity = Vector3.SmoothDamp(m_Rigidbody2D.velocity, targetVelocity,
ref velocity,
m_MovementSmoothing);
}
}
.
, player wasd .
, player
component
, player. .
Rigidbody 2D
Add component , -
640 1920 .
Physics 2D
-
640 1920 .
- Ctrl + [S].
- Play
exe - Ctrl + [B].
, .
?
:
640 1920 .
Gravity Scale 0 ( Enter).
.
, , ,
WASD - .
Gravity Scale
0 ,
. ,
,
.
, :
640 1920 .
, FPS -
FPS, CharacterController_2d.cs
-
fpsText.gameObject.SetActive(showFPSOn);
fpsText.text = "FPS: " + Mathf.Ceil(fps).ToString();
.
SampleScene
-
640 1920 .
.
640 1920 .
Import TMP Essentials .
Examples & Extras, .
- .
- Ctrl + [S].
Text (TMP)
Rename,
FPS
Enter.
.
Play NullReference ,
fps -
640 1920 .
exe - Ctrl + [B]
exe
-
640 1920 .
exe WASD ,
.
[Esc], .
FPS . 144 ,
.
- .
FPS.
-
:
WASD
[Esc]
/ FPS [F]
.
, FPS
, FPS , ,
, (. ).
, -
unity3d !!!
, ,
unity3d, - unity3d
, .
FPS ?
TextMesh Pro , Canvas.
.
() UI (User Interface) -
. , , . .
.
unity3d ,
Inspector c# - .
, FPS
FPS Inspector -
640 1920 .
-
, . .
,
.
WASD ?
-
// Update, ,
//
// deltaTime
//
//
//runSpeed - .
void Update()
{
horizontalMove = Input.GetAxisRaw("Horizontal") * runSpeed;
verticalMove = Input.GetAxisRaw("Vertical") * runSpeed;
}
//
//
//
//
//targetVelocity - 2d ,
// ,
//10.0f 5.0f .
// 2 . .
// - :
//new Vector2 - 2d (x, y)
//m_Rigidbody2D.velocity -
//
void FixedUpdate()
{
// Move our character
Vector3 targetVelocity = new Vector2(horizontalMove * Time.fixedDeltaTime * 10.0f,
verticalMove * Time.fixedDeltaTime * 5.0f);
m_Rigidbody2D.velocity = Vector3.SmoothDamp(m_Rigidbody2D.velocity, targetVelocity,
ref velocity, m_MovementSmoothing);
}
Edit > Project settings > Input manager
640 1920 .
[Esc] ?
void Update()
{
if (Input.GetKey("escape"))
{
Application.Quit();
}
}
, , . Escape -
-
Application.Quit();
FPS, / ?
public TMP_Text fpsText; //
// FPS
public float deltaTime; //
//
//
public bool showFPSOn = true; // true - FPS
// false -
void showFPS()
{
fpsText.gameObject.SetActive(showFPSOn); // true -
//fpsText , false -
if (!showFPSOn) // false -
return;
// FPS fpsText
deltaTime += (Time.deltaTime - deltaTime) * 0.1f;
float fps = 1.0f / deltaTime;
fpsText.text = "FPS: " + Mathf.Ceil(fps).ToString();
}
// Start is called before the first frame update
void Start()
{
showFPSOn = true; // fps
fpsText = GameObject.Find("FPS").GetComponent(); //
// FPS fpsText
//
Debug.Log("game started"); //
// unity3d
}
void Update()
{
if (Input.GetKeyUp(KeyCode.F)) // FPS F
{
showFPSOn = !showFPSOn;
}
showFPS(); // FPS
}
void FixedUpdate()
{
//showFPS();
}
, showFPS FixedUpdate
.
FPS 144 145,
- FixedUpdate - 51.
, , -
private void Awake()
{
m_Rigidbody2D = GetComponent(); //
//Rigidbody2D,
//NullReference exception,
// FPS fps.
}
, , !
, ,
( ). ,
- .
, ,
unity3d,
.
, .
, ,
. , - .
unity3d .
, .
, .
, !!!
, unity3d 2022.3 !!!!!!!!!
: ,
exe ,
. - .
!
, ,
megainformatic !
:
0

0

|
|
|
|
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
|
|
, , 2020 - ,
|
|
|
|
|
|
|
|
|
|
, , , .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(3), (1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(3), (1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
,
|
 anova
|
 A Knots Story |
 sabotage |
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
, ,
|
|
|
|
|
|
|
, ,
|
|
|
|
|
|
|
, , cms,
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
, , ria xxl , fly snow 3d , . -
|
|
|
|
|
|
fle game engine -
|
|
|
|
|
|
- / megainformatic cms express files -
|
|
|
|
|
|
Flash, Flash - .
|
|
|
|
|
|
(multi lang), , . - (megainformatic cms social), megainformatic cms groupon, keywords gen + , .
megainformatic.ru/webjob/ -
- |
|
|
megainformatic.ru/webjob/
megainformatic.ru/webjob/ -
- |
|
|
|
|
|
,
megainformatic cms admin -
|
|
|
|
|
|
350 . |
5800 . |
3000 . |
500 . |
|
|
|
|
|
|
|
|
|
|
|
|
megainformatic cms free - Photoshop
,
Adobe Photoshop. ,
- GIMP, Corel Photo Paint .
|
|
|
|
|
|
2d 3d, , !
. ,
,
!!! ( , ! ). |
|
|
|
|
|
|
|
|
|
|
|
,
: -
350 . |
510 . |
fle game engine |
|
- , ,
, .
- - :
- |
|
|
|
|
|
|
|
|
|
|
|
, 3ds max, photoshop, c++,
directx, delphi php.
,
.
. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Photoshop free,
delphi directx - , !,
mp3 - ,
megainformatic cms express -
php + my sql. |
|
|
|
|
|
|
|
|
|
|
|
,
, delphi directx 8.1 (
3d ), 3d studio max, -
Fruity Loops Studio |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|