fix tsc, up readme
This commit is contained in:
parent
e161426caf
commit
369166e094
2 changed files with 5 additions and 12 deletions
|
|
@ -6,9 +6,11 @@ Minecraft **clone** rewritten in TypeScript using the best modern web technologi
|
|||
|
||||
You can try this out at [mcraft.fun](https://mcraft.fun/), [pcm.gg](https://pcm.gg) (short link), [mcon.vercel.app](https://mcon.vercel.app/) or the GitHub pages deploy. Every commit from the default (`develop`) branch is deployed to [s.mcraft.fun](https://s.mcraft.fun/) and [s.pcm.gg](https://s.pcm.gg/) - so it's usually newer, but might be less stable.
|
||||
|
||||
Don't confuse with [Eaglercraft](https://git.eaglercraft.rip/eaglercraft/eaglercraft-1.8) which is a REAL vanilla Minecraft Java edition port to the web (but with its own limitations). Eaglercraft is a fully playable solution, but this project is more in position of a "technical demo" to show how it's possible to build games for web at scale entirely with the JS ecosystem. Have fun!
|
||||
> For Turkey/Russia use [ru.mcraft.fun](https://ru.mcraft.fun/) (since Cloudflare is blocked)
|
||||
|
||||
For building the project yourself / contributing, see [Development, Debugging & Contributing](#development-debugging--contributing). For reference at what and how web technologies / frameworks are used, see [TECH.md](./TECH.md).
|
||||
Don't confuse with [Eaglercraft](https://git.eaglercraft.rip/eaglercraft/eaglercraft-1.8) which is a REAL vanilla Minecraft Java edition port to the web (but with its own limitations). Eaglercraft is a fully playable solution, meanwhile this project is aimed for *device-compatiiblity* and better performance so it feels portable, flexible and lightweight. It's also a very strong example on how to build true HTML games for the web at scale entirely with the JS ecosystem. Have fun!
|
||||
|
||||
For building the project yourself / contributing, see [Development, Debugging & Contributing](#development-debugging--contributing). For reference at what and how web technologies / frameworks are used, see [TECH.md](./TECH.md) (also for comparison with Eaglercraft).
|
||||
|
||||
### Big Features
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|||
|
||||
import { useEffect, useState } from 'react'
|
||||
import { formatMessage } from '../chatUtils'
|
||||
import Chat, { fadeMessage, chatInputValueGlobal } from './Chat'
|
||||
import Chat, { chatInputValueGlobal } from './Chat'
|
||||
import Button from './Button'
|
||||
|
||||
window.spamMessage = window.spamMessage ?? ''
|
||||
|
|
@ -63,14 +63,6 @@ const meta: Meta<typeof Chat> = {
|
|||
return () => clearInterval(interval)
|
||||
}, [autoSpam])
|
||||
|
||||
const fadeMessages = () => {
|
||||
for (const m of messages) {
|
||||
fadeMessage(m, false, () => {
|
||||
setMessages([...messages])
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
return <div style={{
|
||||
marginTop: args.usingTouch ? 100 : 0
|
||||
}}
|
||||
|
|
@ -88,7 +80,6 @@ const meta: Meta<typeof Chat> = {
|
|||
}}
|
||||
/>
|
||||
<Button onClick={() => setOpen(s => !s)}>Open: {open ? 'on' : 'off'}</Button>
|
||||
<Button onClick={() => fadeMessages()}>Fade</Button>
|
||||
<Button onClick={() => setAutoSpam(s => !s)}>Auto Spam: {autoSpam ? 'on' : 'off'}</Button>
|
||||
<Button onClick={() => setMessages(args.messages)}>Reset</Button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue