Skip to content

Commit

Permalink
Reverted main.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
fullspeccoder committed Oct 23, 2024
1 parent 0181d6f commit aceec06
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ k.scene('lose', loseScreen);
const gameState = getGameState();

// Initialize the scenes with position if saved, else go to default position
k.go('seaside', 'spawn_city');
// if (gameState) {
// k.go(gameState.player.scene);
// } else {
// k.go('start'); // Go to the default starting scene
// }
if (gameState) {
k.go(gameState.player.scene);
} else {
k.go('start'); // Go to the default starting scene
}

// To test different maps instead of going through each and every scene to get to yours,
// Import the scene, name the scene, and then name the spawn point as an additional tag
Expand Down

0 comments on commit aceec06

Please sign in to comment.