feat: map editor (#56)

This commit is contained in:
M VINCENT PETT
2025-04-28 16:52:13 +02:00
committed by GitHub
parent 5cd536be84
commit 02ef8cdf74
38 changed files with 8394 additions and 140 deletions

View File

@ -0,0 +1,20 @@
using UnityEngine;
public class CameraController : MonoBehaviour
{
public float moveSpeed = 10f;
void Update()
{
float horizontalInput = Input.GetAxisRaw("Horizontal"); // ← → ou A D
float verticalInput = Input.GetAxisRaw("Vertical"); // ↑ ↓ ou W S
Vector3 movement = new Vector3(
horizontalInput * moveSpeed * Time.deltaTime,
verticalInput * moveSpeed * Time.deltaTime,
0f
);
Camera.main.transform.position += movement;
}
}