Освітня онлайн-платформа Maixm
Школа Art IT. Цифровий IT простір
Поиск в блоге
неділя, 4 січня 2026 р.
понеділок, 10 березня 2025 р.
Гра Neon Rider в Unity3D
Гра Neon Rider в Unity3D
MoveScript
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MoveScript
: MonoBehaviour
{
Rigidbody2D physic;
public float
force;
public
Transform camera;
bool
isFLy = true;
public float
rotate;
// Start is called before
the first frame update
void Start()
{
physic =
GetComponent<Rigidbody2D>();
}
// Update is called once
per frame
void FixedUpdate()
{
camera.position
= new
Vector3(transform.position.x,
transform.position.y,
camera.position.z);
if
(Physics2D.Raycast(transform.position,
-transform.up,
2, ~(1 << 9)))
{
isFLy = false;
}
else
{
isFLy = true;
}
if
(Input.GetKey(KeyCode.Mouse0))
{
if (!isFLy)
{
physic.AddRelativeForce(new
Vector3(force, 0));
}
else
{
physic.AddTorque(rotate);
}
}
}
}
понеділок, 16 грудня 2024 р.
субота, 7 грудня 2024 р.
пʼятниця, 6 грудня 2024 р.
понеділок, 2 грудня 2024 р.
неділя, 1 грудня 2024 р.
Гра Хрестики нолики в Roblox Studio
script.Parent.Result.Text = "Result"
if buttons[1].Text == "X" and buttons[2].Text == "X" and buttons[3].Text == "X" then
script.Parent.Result.Text = "X win"
end
if buttons[4].Text == "X" and buttons[5].Text == "X" and buttons[6].Text == "X" then
script.Parent.Result.Text = "X win"
end
if buttons[7].Text == "X" and buttons[8].Text == "X" and buttons[9].Text == "X" then
script.Parent.Result.Text = "X win"
end
script.Parent.Result.Text = "X win"
end
if buttons[2].Text == "X" and buttons[5].Text == "X" and buttons[8].Text == "X" then
script.Parent.Result.Text = "X win"
end
if buttons[3].Text == "X" and buttons[6].Text == "X" and buttons[9].Text == "X" then
script.Parent.Result.Text = "X win"
end
script.Parent.Result.Text = "X win"
end
if buttons[3].Text == "X" and buttons[5].Text == "X" and buttons[7].Text == "X" then
script.Parent.Result.Text = "X win"
end
end
вівторок, 26 листопада 2024 р.
Калькулятор в Roblox Studio
Скрипт
a =
script.Parent.A
b =
script.Parent.B
c =
script.Parent.C
butPlus
= script.Parent.PLUS
butMinus
= script.Parent.MINUS
butMul
= script.Parent.MUL
butDiv
= script.Parent.DIV
butClear
= script.Parent.CLEAR
function
Plus()
c.Text = a.Text + b.Text
end
function
Minus()
c.Text = a.Text - b.Text
end
function
Mul()
c.Text = a.Text * b.Text
end
function
Div()
c.Text = a.Text / b.Text
end
function
Clear()
a.Text=0
b.Text=0
c.Text=0
end
butPlus.MouseButton1Click:Connect(Plus)
butMinus.MouseButton1Click:Connect(Minus)
butMul.MouseButton1Click:Connect(Mul)
butDiv.MouseButton1Click:Connect(Div)
butClear.MouseButton1Click:Connect(Clear)




















