🛠️2d Games unit 1
This video will show you how to make game 2d😁
this is video will show you how to make 2d Deadzone 😃
This Video will show you how to Draw Your Hero
This Video will show you how to Make 2D Main Menu
This Video will show you how to Make Levels And Anm..
This Video will show you how to Game Over And Win Menu
This Video will show you how to Export Your Game Windows And Android
🛠️3d GAME unit 2
This Video Will show you how to Make 3d Games
Player Script:
extends CharacterBody3D
var speed = 6.0
var jump_velocity = 4.5
var mouse_sense = 0.2
var gravity = 9.8
@onready var camera = $Camera3D
func _ready():
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
func _physics_process(delta):
if not is_on_floor():
velocity.y -= gravity * delta
if Input.is_action_just_pressed("ui_accept") and is_on_floor():
velocity.y = jump_velocity
var input_dir = Vector2.ZERO
input_dir.x = Input.get_action_strength("ui_right") - Input.get_action_strength("ui_left")
input_dir.y = Input.get_action_strength("ui_down") - Input.get_action_strength("ui_up")
var direction = (transform.basis * Vector3(input_dir.x, 0, input_dir.y)).normalized()
if direction:
velocity.x = direction.x * speed
velocity.z = direction.z * speed
else:
velocity.x = 0
velocity.z = 0
move_and_slide()
func _input(event):
if event is InputEventMouseMotion:
rotate_y(deg_to_rad(-event.relative.x * mouse_sense))
camera.rotate_x(deg_to_rad(-event.relative.y * mouse_sense))
camera.rotation.x = clamp(camera.rotation.x, deg_to_rad(-80), deg_to_rad(80))
This Video Will show you how to make 3d game