to build TS into a bundled JS file automatically: webpack
then run a live server (I'm using VS code Live Server extension)
probably need to do npm install --save-dev webpack webpack-cli typescript ts-loader
first
- basic UI skeleton
- tooltips to show cost/power/effect
- end turn and deal with action points
- refactor to game class with different players possible; handle event state machine
- animate ingredients added (needs to be extended to non-local player cards too)
- play new sandwiches with bread
- add ingredient to sandwich
- apply effect if condiment
- close sandwich: get points and apply effects
- win condition
- close sandwich animation
- put closed sandwiches on sidebar
- QOL:
- move played ingredients between sandwiches before end turn
- hover sandwich ingredients to see what they do
- they should probably also have a UI to see at least the power stats and like an expected total power on complete of the sandwich
- need to disable dragging while anims are playing
- better looking win (also like button to redirect to main screen)
- start screen where you can choose a deck
- AI opponent
- networking opponent
extension:
- edit cards on the fly (debug screen)
- ai to determine best cards/decks; elo