block-fly

Block Dude, with Flies!

Stars
6

Block Dude in JavaScript

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 (worked before update to Vite. Gotta do it again.)
  • 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 protected]: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.

Deploying

  • Bump version in package.json
  • Update CHANGELOG.md
  • Build production version with npm run deploy
  • Copy /build/deploy to production server.

Contributing

  • Look at issues
  • Create a PR from your fork or branch
  • Review, rebase, etc.
  • yay!

Stuff

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.

Contributors

See the list.

History

See the changelog.