So I watched a video, and felt the need to go build something. This isn't done, it isn't for use for anyone but me, and I'm having fun :D
I'm using the parceljs for developing this so install it
npm install -g parcel-bundler
Then bring it up for development:
parcel index.html
- Spawn Pieces
- Move Pieces
- Rotate Pieces
- Wall Kick Rotation
- Spawn piece one it reaches the "bottom"
- Spawn piece outside of game area so that it naturally uses object collision
- Line clearing
- Hold piece
- Score system
- Replay system
- Once I've worked out what the hell I'm doing it should be fairly trivial to convert what I have into an event sourced system, where I can store the commands, and time travel in state. (redux should be a good solution for this)