ravens-engine / core

A Javascript library for building multiplayer turn-based games
https://ravens.dev/
15 stars 2 forks source link

Finish tutorial #12

Open mrhappyasthma opened 3 years ago

mrhappyasthma commented 3 years ago

The following sections are empty:

Also the very last sentence in https://ravens.dev/tutorial/#launching-the-game is an incomplete sentence.

(There may be more but I'm still working my way through it.)

mrhappyasthma commented 3 years ago

Another issue:

By the time the 'Launching the Game' section, the UI isn't really complete. The table just renders as empty and the action handler does not appear to be configured.

The actions are defined in processAction() but they never appear to be triggered. It's missing the this.props.client.sendAction() call.

mrhappyasthma commented 3 years ago

The UI css is not fully established by that point either. At a minimum we probably need table td to have the border color and size, so that it's better visible.

mrhappyasthma commented 3 years ago

I have a local change ready for the tap handling section. But it's dependent on a bunch of the other PRs landing, so I'll just hold off until those get resolved.

mrhappyasthma commented 3 years ago

Dependent PRs are in. I will propose some more PRs to finish up the rest of the tutorial.

mrhappyasthma commented 3 years ago

The last section missing is the GameInProgressPhase logic. That phase has the most logic, so this section will take some time. But adding it will complete the tutorial! :)

https://ravens.dev/tutorial/#implementing-gameinprogressphase