Small project to build Block Dude in TypeScript, in the browser.
Uses a Fly because I had those sprites laying around somewhere!
DEMO right here
Other things that should happen
- Fully offline with service workers
Fully mobile with gestures and zoom in/out, etc. Well tested.
- Level chooser.
- Level editor.
Load custom levels!
Build and develop
Developed with NodeJS 6.1 (Using
nvm is recommended!).
git clone email@example.com:cdroulers/block-fly.git npm install ./node_modules/.bin/typings install npm run start # to get a web server at [http://localhost:5555](http://localhost:5555) npm run test -- --watch # to get test to run and re-run anything you rebuild the files.
- Bump version in package.json
- Build production version with
npm run deploy
/build/deployto production server.
- Look at issues
- Create a PR from your fork or branch
- Review, rebase, etc.
The web part uses WebPack with hot reload, but nothing hot reloads because I have no idea how it really works.
The tests execute the JS in the
build folder which is output when
npm run build is run (or
ctrl+shift+b in VSCode).
This is because I tried to use
ts-node for running and it worked, but it wasn't possible to debug the tests that way.
Levels can be seen here.
See the list.
See the changelog.