From 369166e0942cf234d34f31b587c4a08424129b09 Mon Sep 17 00:00:00 2001 From: Vitaly Turovsky Date: Sat, 28 Jun 2025 00:45:54 +0300 Subject: [PATCH] fix tsc, up readme --- README.MD | 6 ++++-- src/react/Chat.stories.tsx | 11 +---------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/README.MD b/README.MD index 4769192a..5f7a83f6 100644 --- a/README.MD +++ b/README.MD @@ -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 diff --git a/src/react/Chat.stories.tsx b/src/react/Chat.stories.tsx index 192d5cb4..e1aaf761 100644 --- a/src/react/Chat.stories.tsx +++ b/src/react/Chat.stories.tsx @@ -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 = { return () => clearInterval(interval) }, [autoSpam]) - const fadeMessages = () => { - for (const m of messages) { - fadeMessage(m, false, () => { - setMessages([...messages]) - }) - } - } - return
= { }} /> -