I`m trying to make a game of cards, like a blackjack. But before the game, there is a menu, an start menu, with a logo and some buttons, to choose witch card game you want to play. After i click in the blackjack button, i should open the game in a different scene.
The point is, i`m trying to make a structure like this, i have te index.html, witch loads game.js, this game.js is the menu. When i click on blackjack, i would like the code to read blackjack.js, with a different scene.
What happens is that i`m unable to find any sample of this type os structure… all that i find is all scenes in the same file.
So, here is what is my file structure:
index.html - simple html loading a babylon file, index.js
index.js - HERE i would like to make primary scene to load the other scenes (game.js, blackjack.js, etc)
game.js - scene menu to choose a game - builded
blackjack.js - scene with the core game - not builded yet
card.js - class with suit and value - builded
deckofcards.js - class to build the deck and shuffle - builded
But happens that i didnt find any type of similar sample for this type os structure. Is there possible to build something like this in Babylon?
Thanks for the help.