Skip to content

Commit 369166e

Browse files
committed
fix tsc, up readme
1 parent e161426 commit 369166e

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

README.MD

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ Minecraft **clone** rewritten in TypeScript using the best modern web technologi
66

77
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.
88

9-
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!
9+
> For Turkey/Russia use [ru.mcraft.fun](https://ru.mcraft.fun/) (since Cloudflare is blocked)
1010
11-
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).
11+
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!
12+
13+
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).
1214

1315
### Big Features
1416

src/react/Chat.stories.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'
22

33
import { useEffect, useState } from 'react'
44
import { formatMessage } from '../chatUtils'
5-
import Chat, { fadeMessage, chatInputValueGlobal } from './Chat'
5+
import Chat, { chatInputValueGlobal } from './Chat'
66
import Button from './Button'
77

88
window.spamMessage = window.spamMessage ?? ''
@@ -63,14 +63,6 @@ const meta: Meta<typeof Chat> = {
6363
return () => clearInterval(interval)
6464
}, [autoSpam])
6565

66-
const fadeMessages = () => {
67-
for (const m of messages) {
68-
fadeMessage(m, false, () => {
69-
setMessages([...messages])
70-
})
71-
}
72-
}
73-
7466
return <div style={{
7567
marginTop: args.usingTouch ? 100 : 0
7668
}}
@@ -88,7 +80,6 @@ const meta: Meta<typeof Chat> = {
8880
}}
8981
/>
9082
<Button onClick={() => setOpen(s => !s)}>Open: {open ? 'on' : 'off'}</Button>
91-
<Button onClick={() => fadeMessages()}>Fade</Button>
9283
<Button onClick={() => setAutoSpam(s => !s)}>Auto Spam: {autoSpam ? 'on' : 'off'}</Button>
9384
<Button onClick={() => setMessages(args.messages)}>Reset</Button>
9485
</div>

0 commit comments

Comments
 (0)