diff --git a/client/src/components/cryp.battle.jsx b/client/src/components/cryp.battle.jsx new file mode 100644 index 00000000..b388afc2 --- /dev/null +++ b/client/src/components/cryp.battle.jsx @@ -0,0 +1,100 @@ +const preact = require('preact'); + +function CrypPanel() { + return ( +
+
+
+
+

Future Animation / Fizzy Area

+
+
+
+
+
+ +
+
+
+
+
+

Drake

+

Level 1

+
+
+

Flying

+

Fire

+

Stone

+
+
+
    5
+
    5
+
    5
+
+
+
5 / 5 HP
+ +
+
+
+
+
+
+
+
+
+
+
+
+
    10
+
    1
+
    40
+
+
+

Walking

+

Water

+

Rock

+
+
+

BB

+

Level 1

+
+
+
5 / 5 HP
+ +
+
+
+ +
+
+
+
+
+
+
+ Ability 1 +
+ Ability 3 +
+
+ Ability 2 +
+ Ability 4 +
+
+

Combat Log

+

"bamboo basher" deals 0 dmg to "drake" (0 blocked / 1 hp remaining)

+

"bamboo basher" deals 0 dmg to "drake" (0 blocked / 1 hp remaining)

+
+
+
+
+
+ +
+
+ ); +} + +module.exports = CrypPanel; diff --git a/client/src/components/cryp.panel.jsx b/client/src/components/cryp.panel.jsx index 35994db5..e6377064 100644 --- a/client/src/components/cryp.panel.jsx +++ b/client/src/components/cryp.panel.jsx @@ -47,7 +47,7 @@ function CrypPanel({ cryp, sendCombatPve }) {

Level - {cryp.lvl}

-
    Hit Points {cryp.hp}
+
    Hit Points {cryp.hp.value}
    Attack Damage {cryp.dmg.value}
diff --git a/client/src/main.jsx b/client/src/main.jsx index 15c676a4..1628edbf 100644 --- a/client/src/main.jsx +++ b/client/src/main.jsx @@ -12,6 +12,7 @@ const createSocket = require('./socket'); const CrypContainer = require('./components/cryp.container'); const LoginContainer = require('./components/login.container'); const Navbar = require('./components/navbar'); +const CrypBattle = require('./components/cryp.battle'); // Redux Store const store = createStore( @@ -40,6 +41,8 @@ const Cryps = () => (
+
+ );