2020-01-02 16:58:06 +00:00
/ * *
*
* @ flow
* /
import React from 'react' ;
2021-01-29 01:43:03 +00:00
import { c , t , jt } from 'ttag' ;
import { GiMouse } from 'react-icons/gi' ;
import { MdTouchApp } from 'react-icons/md' ;
2020-01-02 16:58:06 +00:00
2020-01-28 10:04:24 +00:00
/* eslint-disable max-len */
2020-01-02 16:58:06 +00:00
2021-04-27 19:30:19 +00:00
const Help = ( ) => {
2021-01-29 01:43:03 +00:00
const bindG = < kbd > { c ( 'keybinds' ) . t ` G ` } < / kbd > ;
const bindX = < kbd > { c ( 'keybinds' ) . t ` X ` } < / kbd > ;
const bindH = < kbd > { c ( 'keybinds' ) . t ` H ` } < / kbd > ;
const bindR = < kbd > { c ( 'keybinds' ) . t ` R ` } < / kbd > ;
const bindQ = < kbd > { c ( 'keybinds' ) . t ` Q ` } < / kbd > ;
const bindE = < kbd > { c ( 'keybinds' ) . t ` E ` } < / kbd > ;
const bindW = < kbd > { c ( 'keybinds' ) . t ` W ` } < / kbd > ;
const bindA = < kbd > { c ( 'keybinds' ) . t ` A ` } < / kbd > ;
const bindS = < kbd > { c ( 'keybinds' ) . t ` S ` } < / kbd > ;
const bindD = < kbd > { c ( 'keybinds' ) . t ` D ` } < / kbd > ;
const bindAUp = < kbd > ↑ < / kbd > ;
const bindALeft = < kbd > ← < / kbd > ;
const bindADown = < kbd > ↓ < / kbd > ;
const bindARight = < kbd > → < / kbd > ;
const mouseSymbol = < kbd > < GiMouse / > < / kbd > ;
const touchSymbol = < kbd > < MdTouchApp / > < / kbd > ;
const bindShift = < kbd > ⇧ { c ( 'keybinds' ) . t ` Shift ` } < / kbd > ;
const bindC = < kbd > { c ( 'keybinds' ) . t ` C ` } < / kbd > ;
const guildedLink = < a href = "https://pixelplanet.fun/guilded" > guilded < / a > ;
const getIPLink = < a href = "https://www.whatismyip.com/" > { t ` your IP ` } < / a > ;
const mailLink = < a href = "mailto:pixelplanetdev@gmail.com" > pixelplanetdev @ gmail . com < / a > ;
return (
2022-01-01 00:39:01 +00:00
< div style = { { textAlign : 'center' , paddingLeft : '5%' , paddingRight : '5%' } } >
2021-01-29 01:43:03 +00:00
< p className = "modaltext" >
{ t ` Place color pixels on a large canvas with other players online! ` } < br / >
{ t ` Our main canvas is a huge worldmap, you can place wherever you like, but you will have to wait a specific \
2021-02-14 21:32:44 +00:00
Cooldown between pixels . You can check out the cooldown and requirements on the Canvas Selection menu ( globe button on top ) . \
2021-01-29 01:43:03 +00:00
Some canvases have a different cooldown for replacing a user - set pixels than placing on a unset pixel . i . e . 4 s / 7 s means 4 s on fresh \
pixels and 7 s on already set pixels . ` }<br />
{ t ` Higher zoomlevels take some time to update, the 3D globe gets updated at least once per day. ` } < br / >
{ t ` Have fun! ` }
< / p >
< p > Guilded ( { t ` recommended ` } ) : < a href = "./guilded" target = "_blank" rel = "noopener noreferrer" > pixelplanet . fun / guilded < / a > < / p >
< p > { t ` Source on ` } < a href = "https://github.com/pixelplanetdev/pixelplanet" target = "_blank" rel = "noopener noreferrer" > github < / a > < / p >
< p className = "modaltitle" > { t ` Map Data ` } < / p >
< p className = "modaltext" > { t ` The bare map data that we use, together with converted OpenStreetMap tiles for orientation, \
can be downloaded from mega . nz here : ` }<a href="https://mega.nz/#!JpkBwAbJ!EnSLlZmKv3kEBE0HDhakTgAZZycD3ELjduajJxPGaXo">pixelplanetmap.zip</a> (422MB)</p>
< p className = "modaltitle" > { t ` Detected as Proxy? ` } < / p >
< div className = "modaltext" >
< p > { jt ` If you got detected as proxy, but you are none, please go to our ${ guildedLink } or send us an e-mail with ${ getIPLink } to ${ mailLink } . Do not post your IP anywhere else. We are sorry for the inconvenience. ` } < / p >
< / div >
< h3 className = "modaltitle" > 2 D { t ` Controls ` } < / h3 >
< div className = "modaltext" style = { { lineHeight : 1.8 } } >
{ t ` Click a color in palette to select it ` } < br / >
{ jt ` Press ${ bindG } to toggle grid ` } < br / >
{ jt ` Press ${ bindX } to toggle showing of pixel activity ` } < br / >
{ jt ` Press ${ bindH } to toggle historical view ` } < br / >
{ jt ` Press ${ bindR } to copy coordinates ` } < br / >
{ jt ` Press ${ bindQ } or ${ bindE } to zoom ` } < br / >
{ jt ` Press ${ bindW } , ${ bindA } , ${ bindS } , ${ bindD } to move ` } < br / >
{ jt ` Press ${ bindAUp } , ${ bindALeft } , ${ bindADown } , ${ bindARight } to move ` } < br / >
{ jt ` Drag ${ mouseSymbol } mouse or ${ touchSymbol } pan to move ` } < br / >
{ jt ` Scroll ${ mouseSymbol } mouse wheel or ${ touchSymbol } pinch to zoom ` } < br / >
{ jt ` Hold left ${ bindShift } for placing while moving mouse ` } < br / >
{ jt ` Hold right ${ bindShift } for placing while moving mouse according to historical view ` } < br / >
{ jt ` ${ mouseSymbol } Left click or ${ touchSymbol } tap to place a pixel ` } < br / >
{ jt ` Click ${ mouseSymbol } middle mouse button or ${ touchSymbol } long-tap to select current hovering color ` } < br / >
< / div >
< h3 className = "modaltitle" > 3 D { t ` Controls ` } < / h3 >
< div className = "modaltext" style = { { lineHeight : 1.8 } } >
{ jt ` Press ${ bindW } , ${ bindA } , ${ bindS } , ${ bindD } to move ` } < br / >
{ jt ` Press ${ bindAUp } , ${ bindALeft } , ${ bindADown } , ${ bindARight } to move ` } < br / >
{ jt ` Press ${ bindE } and ${ bindC } to fly up and down ` } < br / >
{ jt ` ${ mouseSymbol } Hold left mouse button and drag mouse to rotate ` } < br / >
{ jt ` ${ mouseSymbol } Scroll mouse wheel or hold ${ mouseSymbol } middle mouse button and drag to zoom ` } < br / >
{ jt ` ${ mouseSymbol } Right click and drag mouse to pan ` } < br / >
{ jt ` ${ mouseSymbol } Left click or ${ touchSymbol } tap to place a pixel ` } < br / >
{ jt ` ${ mouseSymbol } Right click or ${ touchSymbol } double-tap to remove a pixel ` } < br / >
{ jt ` Click ${ mouseSymbol } middle mouse button or ${ touchSymbol } long-tap to select current hovering color ` } < br / >
< / div >
< p > { t ` Partners: ` } < a href = "https://www.crazygames.com/c/io" target = "_blank" rel = "noopener noreferrer" > crazygames . com < / a > < / p >
2022-01-01 00:39:01 +00:00
< / div >
2021-01-29 01:43:03 +00:00
) ;
} ;
2020-01-02 16:58:06 +00:00
2021-04-27 19:30:19 +00:00
export default Help ;