/** * */ import React, { useCallback } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { c, t, jt } from 'ttag'; import { GiMouse } from 'react-icons/gi'; import { MdTouchApp } from 'react-icons/md'; import GetIID from '../GetIID'; import useLongPress from '../hooks/useLongPress'; import { toggleEasterEgg } from '../../store/actions'; import { notify } from '../../store/actions/thunks'; /* eslint-disable max-len */ const Help = () => { const bindG = {c('keybinds').t`G`}; const bindX = {c('keybinds').t`X`}; const bindH = {c('keybinds').t`H`}; const bindR = {c('keybinds').t`R`}; const bindQ = {c('keybinds').t`Q`}; const bindE = {c('keybinds').t`E`}; const bindW = {c('keybinds').t`W`}; const bindA = {c('keybinds').t`A`}; const bindS = {c('keybinds').t`S`}; const bindD = {c('keybinds').t`D`}; const bindAUp = ; const bindALeft = ; const bindADown = ; const bindARight = ; const mouseSymbol = ; const touchSymbol = ; const bindShift = ⇧ {c('keybinds').t`Shift`}; const starhouseLink = starhouse ; const vinikLink = Vinikdev; const donendoLink = Do-Nendo; const guildedLink = guilded; const mailLink = admin@pixelplanet.fun; const dispatch = useDispatch(); const easterEgg = useSelector((state) => state.gui.easterEgg); const onLongPress = useCallback(() => { dispatch(toggleEasterEgg()); dispatch(notify((easterEgg) ? t`Easter Egg OFF` : t`Easter Egg ON`)); }, [easterEgg, dispatch]); const refCallback = useLongPress(null, onLongPress, 1000); return (
ppfun

{t`Place color pixels on a large canvas with other players online!`}
{t`Our main canvas is a huge worldmap, you can place wherever you like, but you will have to wait a specific Cooldown between pixels. You can check out the cooldown and requirements on the Canvas Selection menu (globe button on top). Some canvases have a different cooldown for replacing a user-set pixels than placing on a unset pixel. i.e. 4s/7s means 4s on fresh pixels and 7s on already set pixels.`}
{t`Higher zoomlevels take some time to update, the 3D globe gets updated at least once per day.`}
{t`Have fun!`}

Guilded ({t`recommended`}): pixelplanet.fun/guilded

{t`Source on `}git.pixelplanet.fun

{t`Map Data`}

{t`The bare map data that we use, together with converted OpenStreetMap tiles for orientation, can be downloaded from mega.nz here: `}pixelplanetmap.zip (422MB)

{t`Banned? Detected as Proxy?`}

{jt`If you got detected as proxy, but you are none, or think that you got wrongfully banned, please go to our ${guildedLink} or send us an e-mail to ${mailLink} and include the following IID:`}

2D {t`Controls`}

{t`Click a color in palette to select it`}
{jt`Press ${bindG} to toggle grid`}
{jt`Press ${bindX} to toggle showing of pixel activity`}
{jt`Press ${bindH} to toggle historical view`}
{jt`Press ${bindR} to copy coordinates`}
{jt`Press ${bindQ} or ${bindE} to zoom`}
{jt`Press ${bindW}, ${bindA}, ${bindS}, ${bindD} to move`}
{jt`Press ${bindAUp}, ${bindALeft}, ${bindADown}, ${bindARight} to move`}
{jt`Drag ${mouseSymbol} mouse or ${touchSymbol} pan to move`}
{jt`Scroll ${mouseSymbol} mouse wheel or ${touchSymbol} pinch to zoom`}
{jt`Hold left ${bindShift} for placing while moving mouse`}
{jt`Hold right ${bindShift} for placing while moving mouse according to historical view`}
{jt`${mouseSymbol} Left click or ${touchSymbol} tap to place a pixel`}
{jt`Click ${mouseSymbol} middle mouse button or ${touchSymbol} long-tap to select current hovering color`}

3D {t`Controls`}

{jt`Press ${bindW}, ${bindA}, ${bindS}, ${bindD} to move`}
{jt`Press ${bindAUp}, ${bindALeft}, ${bindADown}, ${bindARight} to move`}
{jt`Press ${bindQ} and ${bindE} to fly up and down`}
{jt`${mouseSymbol} Hold left mouse button and drag mouse to rotate`}
{jt`${mouseSymbol} Scroll mouse wheel or hold ${mouseSymbol} middle mouse button and drag to zoom`}
{jt`${mouseSymbol} Right click and drag mouse to pan`}
{jt`${mouseSymbol} Left click or ${touchSymbol} tap to place a pixel`}
{jt`${mouseSymbol} Right click or ${touchSymbol} double-tap to remove a pixel`}
{jt`Click ${mouseSymbol} middle mouse button or ${touchSymbol} long-tap to select current hovering color`}

Palette Credits

{jt`We thank the following artists, who made their palettes available to the public on`}  lospec.com

{jt`Credit for the Palette of the Moon goes to ${starhouseLink}.`}

{jt`Credit for the Palette of the Top10 canvas goes to ${vinikLink}.`}

{jt`Credit for the Palette of the 2bit canvas goes to ${donendoLink}.`}

); }; export default Help;