Changed the player's pad movement behaviour

This commit is contained in:
CHIBOUB Chakib
2024-07-31 15:21:07 +02:00
parent 18c6580ae3
commit 067f24f5b8
12 changed files with 526 additions and 64 deletions

View File

@@ -70,7 +70,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
async function checkUserExists(username) {
const response = await fetch('/api/check_user_exists/', {
const response = await fetch('/check_user_exists/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
@@ -105,7 +105,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
async function registerUser(username, password) {
const response = await fetch('/api/register_user/', {
const response = await fetch('/register_user/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
@@ -137,7 +137,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
async function authenticateUser(username, password) {
const response = await fetch('/api/authenticate_user/', {
const response = await fetch('/authenticate_user/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'