Design and logic for user-facing site https://exmods.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta name="theme-color" content="#fdce72" />
  5. <meta name="author" content="NGnius" />
  6. <meta name="keywords" content="pixi,exmods,gamecraft,modding,mod" />
  7. <meta name="og:type" content="website" />
  8. <meta name="og:title" content="Pixi" />
  9. <meta name="og:description" content="Pixi mod for Gamecraft" />
  10. <meta name="description" content="Pixi mod for Gamecraft" />
  11. <meta name="og:image" content="../../mods/Pixi/pixi-logo.png" />
  12. <meta name="og:url" content="https://www.exmods.org/mods/Pixi" />
  13. <meta charset="UTF-8" />
  14. <link rel="icon" href="../../mods/Pixi/pixi-logo.png" type="image/x-icon"/>
  15. <link rel="shortcut icon" href="../../mods/Pixi/pixi-logo.png" type="image/x-icon"/>
  16. <!--<link rel="stylesheet" href="../../mods/Pixi/style.css" type="text/css" />-->
  17. <style type="text/css" style="display: none;" rel="stylesheet">
  18. body {text-align: left; background-color: #8a704e; animation-name: background-fade-in; animation-duration: 3s;}
  19. footer {text-align: right; width: clamp(100px, 96%, 1600px); border: 4px; border-style: solid; border-color: #d98c61; margin: auto; background-color: #ffd072; animation-name: foreground-fade-in; animation-duration: 3s;}
  20. .content-wrapper {width: clamp(100px, 96%, 1600px); padding: 0; margin: auto; border:0px; border-left: 4px; border-right: 4px; border-style: solid; border-color: #d98c61; background-color: #ffd072; animation-name: foreground-fade-in; animation-duration: 3s;}
  21. .content-title {text-align: center; font-size: 400%; font-weight: bold; padding-top: 1%;}
  22. .content-subtitle {text-align: center; font-size: 150%; vertical-align: middle;}
  23. .content-header {text-align: left; padding: 1%; padding-left: 12%; padding-top: 2%; font-size: 250%; vertical-align: middle; font-weight: bold; background-image: linear-gradient(to right, #d98c61FF, #ffd07200, #ffd07200);}
  24. .content-img-header {text-align: left; padding-left: 12%; padding-bottom: 1%; margin-top: -5%; font-size: 250%; vertical-align: middle; font-weight: bold;}
  25. .content-text {padding: 1%; line-height: 142%;}
  26. .tab { margin-left: 40px; }
  27. /* I feel like such a kid messing around with animations */
  28. @keyframes background-fade-in { from {background-color: #ffd072;} to {background-color: #8a704e;}}
  29. @keyframes foreground-fade-in { from {border-color: #8a704e;} to {border-color: #d98c61;}}
  30. @keyframes swoop { from {bottom: -50%;} to {bottom: 110%;}}
  31. </style>
  32. <title>Pixi</title>
  33. </head>
  34. <body>
  35. <div class="content-wrapper">
  36. <div style="width: 100%; background-image: linear-gradient( #FFFFFF00, #FFFFFF00, #ffd072FF ), url('../../mods/Pixi/pixi-world1-1-banner.png'); background-size: 100%; background-position: bottom; background-repeat: no-repeat;">
  37. <img src="../../mods/Pixi/pixi-world1-1-banner.png" width="40%" style="visibility: hidden;" />
  38. <div class="content-title" id="pixi-title">
  39. <div style="text-align: center;">
  40. <img src="../../mods/Pixi/pixi-logo.png" width="8%" style="vertical-align: middle;" />
  41. <span style="vertical-align: middle;">Pixi</span>
  42. <img src="../../mods/Pixi/pixi-logo.png" width="8%" style="vertical-align: middle; -webkit-transform: scaleX(-1); transform: scaleX(-1);" />
  43. </div>
  44. </div>
  45. <div class="content-subtitle">
  46. <span>Convert images, Robocraft bots and more into Gamecraft blocks.</span>
  47. </div>
  48. </div>
  49. <div class="content-text" id="pixi-intro-p">
  50. <p><span class="tab"></span>
  51. Pixi adds new commands to Gamecraft's command line to import images, and other stuff, into a game.
  52. Since Pixi places vanilla Gamecraft blocks, imported files should be visible without Pixi installed.
  53. See the background image above this?
  54. That's a picture of Super Mario Bros World 1-1 in Gamecraft using the <i>Pixi2D</i> command for image importing.
  55. </p>
  56. </div>
  57. <div class="content-header" id="pixi-installation">
  58. <img src="../../mods/Pixi/pixi-logo.png" width="4%" style="vertical-align: middle;" />
  59. <span style="vertical-align: middle;">Installation</span>
  60. </div>
  61. <div class="content-text" id="pixi-installation-p">
  62. <p><span class="tab"></span>
  63. Before installing Pixi, please patch Gamecraft with
  64. <a href="https://git.exmods.org/modtainers/GCIPA/releases">GCIPA</a> and install the latest version of
  65. <a href="https://git.exmods.org/modtainers/GamecraftModdingAPI/releases">GamecraftModdingAPI</a>.
  66. Once that's done, download <a href="https://git.exmods.org/NGnius/Pixi/releases">Pixi's latest release</a>
  67. and then copy <i>Pixi.dll</i> into the Plugins folder in Gamecraft's main folder.
  68. Alternately, follow the <a href="https://www.exmods.org/guides/install.html" title="link to installation guide">install guide</a>
  69. (ignore the part about a zip file -- move <i>Pixi.dll</i> into the Plugins folder instead).
  70. </p>
  71. </div>
  72. <div style="width: 100%; background-image: url('../../mods/Pixi/rc-pixi-gc2.png'); background-size: 100%; background-position: bottom; background-repeat: no-repeat;">
  73. <img src="../../mods/Pixi/rc-pixi-gc2.png" width="100%" style="visibility: hidden; vertical-align: middle;" />
  74. <div class="content-img-header" id="pixi-robots">
  75. <img src="../../mods/Pixi/pixi-logo.png" width="4%" style="vertical-align: middle;" />
  76. <span style="vertical-align: middle;">Robot Importing</span>
  77. </div>
  78. </div>
  79. <div class="content-text" id="pixi-robots-p">
  80. <p>
  81. <i><b>PixiBot "[bot search text]"</b></i> downloads the first search result from Robocraft's community Factory and places it beside you.
  82. <br/><br/>
  83. <i><b>PixiBotFile "[bot filename]"</b></i> converts a bot from <a href="https://github.com/NGnius/rcbup">rcbup</a> to blocks and places it beside you.
  84. </p>
  85. <p><span class="tab"></span>
  86. In the previous commands, anything between (and including) <i><b>[</b></i> and <i><b>]</b></i> is a command argument that you must replace.
  87. Do not remove the quotation marks -- those are required for the command to work.
  88. These commands also have a hidden scaling property which is set to 3 by default.
  89. Changing the scaling will disable conversion for all Robocraft blocks except simple blocks.
  90. </p>
  91. <p><span class="tab"></span>
  92. For example, if you want to import a robot from the CRF called Pixi Art, execute the command <span style="display:inline-block;"><i><b>PixiBot "Pixi Art"</b></i></span> to load the robot into your Gamecraft game world.
  93. </p>
  94. </div>
  95. <div style="background-image: url('../../mods/Pixi/img-pixi-gc2.png'); background-size: 100%; background-position: bottom; background-repeat: no-repeat;">
  96. <img src="../../mods/Pixi/img-pixi-gc2.png" width="100%" style="visibility: hidden; vertical-align: middle;" />
  97. <div class="content-img-header" id="pixi-images">
  98. <img src="../../mods/Pixi/pixi-logo.png" width="4%" style="vertical-align: middle;" />
  99. <span style="vertical-align: middle;">Image Importing</span>
  100. </div>
  101. </div>
  102. <div class="content-text" id="pixi-images-p">
  103. <p>
  104. <i><b>Pixi2D "[image filename]"</b></i> converts an image to blocks and places it beside you.
  105. High-opacity (>75%) pixels are converted to the block you're holding, medium-opacity (>50%) pixels are converted to glass and low-opacity (<50%) pixels are skipped.
  106. <br/><br/>
  107. <i><b>PixiText "[image filename]"</b></i> converts an image to text and places a text block with that text beside you.
  108. <br/><br/>
  109. <i><b>PixiConsole "[image filename]" "[text block id]"</b></i> converts an image to text and places a console block beside you which changes the specified text block.
  110. </p>
  111. <p><span class="tab"></span>
  112. In the previous commands, anything between (and including) <i><b>[</b></i> and <i><b>]</b></i> is a command argument that you must replace.
  113. Do not remove the quotation marks -- those are required for the command to work.
  114. These commands assume that the specified image is in the same folder as Gamecraft.
  115. If your image is in a different folder, please provide the full filepath (eg C:\path\to\image\my_image.png) and put a @ before the quotation marks.
  116. The <i><b>Pixi2D</b></i> command also has a hidden rotation property.
  117. By default, the image will be placed along the xy-plane (rotation 0,0,0).
  118. </p>
  119. <p><span class="tab"></span>
  120. For example, if you want to import an image called <i>pixi_art.png</i> that's stored in Gamecraft's installation directory, execute the command <span style="display:inline-block;"><i><b>Pixi2D "pixi_art.png"</b></i></span> to load the image as blocks.
  121. It's important to include the file extension, since Pixi isn't capable of any black magic.
  122. </p>
  123. </div>
  124. <div class="content-header" id="pixi-dev">
  125. <img src="../../mods/Pixi/pixi-logo.png" width="4%" style="vertical-align: middle;" />
  126. <span style="vertical-align: middle;">Development</span>
  127. </div>
  128. <div class="content-text" id="pixi-dev-p">
  129. <p><span class="tab"></span>
  130. You don't have to be a developer to help out! Please read the <a href="https://git.exmods.org/NGnius/Pixi#user-content-development">Development section</a> of Pixi's README if you're interested in contributing to Pixi.
  131. </p>
  132. </div>
  133. <div class="content-header" id="pixi-ack">
  134. <img src="../../mods/Pixi/pixi-logo.png" width="4%" style="vertical-align: middle;" />
  135. <span style="vertical-align: middle;">Acknowledgements</span>
  136. </div>
  137. <div class="content-text" id="pixi-ack-p">
  138. <p><span class="tab"></span>
  139. PixiBot uses the Factory to download robots, which involves a partial re-implementation of
  140. <a href="https://github.com/NGnius/rcbup">rcbup</a>.
  141. Robot parsing uses information from
  142. <a href="https://github.com/dddontshoot/RoboCraftAssembler">RobocraftAssembler</a>.
  143. </p>
  144. <p><span class="tab"></span>
  145. Gamecraft interactions use the <a href="https://git.exmods.org/modtainers/GamecraftModdingAPI">GamecraftModdingAPI</a>.
  146. </p>
  147. <p><span class="tab"></span>
  148. Thanks to <b>TheGreenGoblin</b>, who created the Python app for converting images to coloured square characters which inspired the <i><b>PixiConsole</b></i> and <i><b>PixiText</b></i> commands.
  149. </p>
  150. <p><span class="tab"></span>
  151. Thanks to <b>Mr. Rotor</b> for all of the Robocraft blocks used in the <i><b>PixiBot</b></i> and <i><b>PixiBotFile</b></i> commands.
  152. </p>
  153. </div>
  154. <div class="content-header" id="pixi-disclaimer">
  155. <img src="../../mods/Pixi/pixi-logo.png" width="4%" style="vertical-align: middle;" />
  156. <span style="vertical-align: middle;">Disclaimer</span>
  157. </div>
  158. <div class="content-text" id="pixi-disclaimer-p">
  159. <p><span class="tab"></span>
  160. Pixi, Exmods and NGnius are not endorsed or supported by Gamecraft or FreeJam. Modify Gamecraft at your own risk.
  161. Read the <a href="https://git.exmods.org/NGnius/Pixi/src/branch/master/LICENSE">LICENSE</a> file for licensing information.
  162. Please don't sue this project or its contributors (that's what all disclaimers boil down to, right?).
  163. <br />
  164. For more information, refer to Pixi's source repository: <a href="https://git.exmods.org/NGnius/Pixi">https://git.exmods.org/NGnius/Pixi</a>
  165. <br /><br />
  166. Pixi is not magic and is actually just sufficiently advanced technology that's indistinguishable from magic.
  167. </p>
  168. </div>
  169. </div>
  170. <footer>
  171. <div style="padding: 0.5%; padding-left: 1%; padding-right: 1%;">
  172. Pixi is developed by <a href="https://twitter.com/NGniusness">NGnius</a>|hosted on exmods.org|<a href="https://git.exmods.org/ExMods/html-site">Site Repository</a>|<a href="https://exmods.org">Home</a>|<a href="https://discord.gg/2CtWzZT">Discord</a>|<a href="https://twitter.com/GamecraftMods">Twitter</a>
  173. </div>
  174. </footer>
  175. <!-- Ssshhhh! Sneaky stuff -->
  176. <div id="pixi-flight" style="position: relative; animation-name: swoop; animation-duration: 0.75s; bottom: 500%; text-align: center;">
  177. <img src="../../mods/Pixi/pixi-double.png" width="33%" />
  178. <script>var pfa = document.getElementById("pixi-flight"); pfa.addEventListener("webkitAnimationEnd", () => {pfa.style.display = "none"}); pfa.addEventListener("animationend", () => {pfa.style.display = "none"});</script>
  179. </div>
  180. </body>
  181. </html>