This is a ski game that I built with help of my niece. All credit for artwork goes to Molly!
It is built with Phaser, using the Ruby Starter Kit.
- Git (on OS X install via homebrew)
- Ruby 3.2.1 (we recommend using RVM)
- Clone this repository, e.g.
git clone https://github.com/ardell/ski-game.git
cd ski-game
bundle
This installs ruby dependencies, such as your web server
You'll build your game in the public
directory. We've started you out with Phaser's Hello World Example so all you should have to do is start building. public/index.html
is the page that will be served at /
, images
, javascripts (js
), and stylesheets (css
) each have their own directory within public
. Mostly you'll be working in public/js/app.js
.
Within your game directory, run foreman start
, then go to http://localhost:5000
in your browser.
To deploy your game to GitHub Pages...
- Create a GitHub repository for your game.
- Add your GitHub repository as a remote called "origin", e.g.
git remote add origin [email protected]:username/repository.git
where "username" is your GitHub username and "repository" is the name of the GitHub repository you created for your game. - Commit all changes that you want to be deployed.
- Run
rake deploy
. - View your game at:
https://[username].github.io/[repository]
where "username" is your GitHub username and "repository" is the name of the GitHub repository you created for your game.