diff --git a/client/assets/styles/menu.less b/client/assets/styles/menu.less index e197781e..e52249d0 100644 --- a/client/assets/styles/menu.less +++ b/client/assets/styles/menu.less @@ -174,59 +174,3 @@ section { } } -.demo { - margin-top: 1em; - - display: block; - - button { - pointer-events: none; - } - - section { - margin-bottom: 0.5em; - - div:first-child { - padding-right: 1em; - } - } - - .construct-section { - .construct-list { - height: 25em; - grid-area: unset; - - .instance-construct { - // border: 0; - } - } - } - - .colour-info { - grid-area: vinfo; - display: flex; - align-items: center; - - div { - display: flex; - } - - svg { - flex: 1; - height: 1em; - } - } - - .game-demo { - .game { - height: 25em; - display: flex; - flex-flow: column; - - .game-construct { - flex: 1; - } - } - } -} - diff --git a/client/src/actions.jsx b/client/src/actions.jsx index e99bba62..311d444b 100644 --- a/client/src/actions.jsx +++ b/client/src/actions.jsx @@ -7,8 +7,6 @@ export const setAnimSource = value => ({ type: 'SET_ANIM_SOURCE', value }); export const setAnimTarget = value => ({ type: 'SET_ANIM_TARGET', value }); export const setResolution = value => ({ type: 'SET_RESOLUTION', value }); -export const setDemo = value => ({ type: 'SET_DEMO', value }); - export const setChatShow = value => ({ type: 'SET_CHAT_SHOW', value }); export const setChatWheel = value => ({ type: 'SET_CHAT_WHEEL', value }); export const setInstanceChat = value => ({ type: 'SET_INSTANCE_CHAT', value }); diff --git a/client/src/components/demo.jsx b/client/src/components/demo.jsx deleted file mode 100644 index e6bee9eb..00000000 --- a/client/src/components/demo.jsx +++ /dev/null @@ -1,190 +0,0 @@ -const { connect } = require('preact-redux'); -const preact = require('preact'); - -// const actions = require('../actions'); -const shapes = require('./shapes'); - -const { ConstructAvatar } = require('./construct'); -// const { ConstructAnimation } = require('./animations'); - -const addState = connect( - function receiveState(state) { - const { - account, - itemInfo, - demo, - } = state; - - return { - account, - itemInfo, - demo, - }; - } - -/* function receiveDispatch(dispatch) { - function setAnimTarget(anim) { - dispatch(actions.setAnimTarget(anim)); - } - - return { setAnimTarget }; - } */ -); - - -function Demo(args) { - const { - demo, - itemInfo, - account, - - // setAnimTarget, - } = args; - - if (!demo || !itemInfo.items.length || account) return false; - - const { combiner, items, equipping, equipped, players, combo } = demo; - - const vboxDemo = () => { - function stashBtn(i, j) { - if (!i) return ; - const highlighted = combiner.indexOf(j) > -1; - const classes = `${highlighted ? 'highlight' : ''}`; - - if (shapes[i]) { - return ; - } - - return ; - } - - function combinerBtn() { - let text = ''; - - if (combiner.length < 3) { - for (let i = 0; i < 3; i++) { - if (combiner.length > i) { - text += '■ '; - } else { - text += '▫ '; - } - } - } else { - text = 'combine'; - } - - return ( - - ); - } - - function stashElement() { - return ( -
- Combine colours with base skills and specialisations to build an array of powerful variants. -
-Constructs are the units you control. They are reset every game and their initial appearance is randomly generated.
-Skills and Specs you create in the VBOX Phase are equipped to your constructs to create a build.
-Battle your opponent using dynamic team builds from the VBOX phase.
-The skills crafted can be used to damage the opponent or support your team.
-Simultaneous turn based combat: each team picks targets for their skills during this phase.
-The damage dealt by skills, cast order and construct life depend on your decisions in the VBOX phase.
-