A tool for creating new BeetPx projects.
To use it, in your terminal navigate to the parent folder in which you want to create your BeetPx game. Then run:
npm init @beetpx/beetpx-game@latest my-game
cd my-game
npm install
where my-game
is your desired directory/project name.
To make sure things are working correctly, continue with:
npm run tsc
npm start
and the sample project should open in your web browser.
To test if the current set of initial files is correct, do the following:
rm -rf test_sandbox
mkdir -p test_sandbox
cd test_sandbox
node ../init-game.js game
cd game
npm install
npm run tsc
npm start
# Then Ctrl-C and test other defined npm scripts as well.