From 926ee37651e9ae3ec6cea36de5f64af10c4fb27b Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sun, 16 Apr 2023 18:43:39 -0500 Subject: [PATCH] Spawn is now based on spawn location. --- Faceball2030/assets/map/map1.map | 4 ++-- Faceball2030/main.cpp | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Faceball2030/assets/map/map1.map b/Faceball2030/assets/map/map1.map index c80fd62..64969c9 100644 --- a/Faceball2030/assets/map/map1.map +++ b/Faceball2030/assets/map/map1.map @@ -25,8 +25,8 @@ 8202 8198 8195 -16662 -8207 +278 +24591 8195 8202 8202 diff --git a/Faceball2030/main.cpp b/Faceball2030/main.cpp index bd6557f..f719a8c 100644 --- a/Faceball2030/main.cpp +++ b/Faceball2030/main.cpp @@ -139,6 +139,10 @@ void FaceBall::LoadLevel(int level) if (id == EXIT) { exitCoords = { x,y }; } + if (id == START) { + player.UpdatePos({ x+0.5f,0.3,y+0.5f }); + fYaw = (int(mapData[y][x].facingDir) - 1) * PI / 2; + } } map.push_back(row); }