https://github.com/cdroulers/block-fly
Block Dude, with Flies!
https://github.com/cdroulers/block-fly
typescript webpack
Last synced: over 1 year ago
JSON representation
Block Dude, with Flies!
- Host: GitHub
- URL: https://github.com/cdroulers/block-fly
- Owner: cdroulers
- Created: 2016-10-29T20:06:04.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-02-19T02:22:47.000Z (over 2 years ago)
- Last Synced: 2025-02-27T01:52:39.955Z (over 1 year ago)
- Topics: typescript, webpack
- Language: TypeScript
- Size: 797 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
## 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](http://apps.cdroulers.com/block-fly/)
## 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 git@github.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.
# Deploying
- Bump version in package.json
- Update [`CHANGELOG.md`](CHANGELOG.md)
- Build production version with `npm run deploy`
- Copy `/build/deploy` to production server.
# Contributing
- Look at [issues](https://github.com/cdroulers/block-fly/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](http://azich.org/blockdude/levels.js).
# Contributors
See [the list](CONTRIBUTORS.md).
# History
See [the changelog](CHANGELOG.md).