<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Bernat Torres</title>
    <description>The latest articles on DEV Community by Bernat Torres (@bernatixer).</description>
    <link>https://dev.to/bernatixer</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4096%2F2202231.png</url>
      <title>DEV Community: Bernat Torres</title>
      <link>https://dev.to/bernatixer</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bernatixer"/>
    <language>en</language>
    <item>
      <title>Creating a voxel world on the web</title>
      <dc:creator>Bernat Torres</dc:creator>
      <pubDate>Wed, 20 May 2020 08:56:12 +0000</pubDate>
      <link>https://dev.to/bernatixer/creating-a-voxel-world-on-the-web-4p16</link>
      <guid>https://dev.to/bernatixer/creating-a-voxel-world-on-the-web-4p16</guid>
      <description>&lt;p&gt;[Comment]: I wanted to learn how to create WebGL experiences on the website, so I took the three.js library, which makes it easier. I came up with the idea of creating a voxel world, optimised and infinite, just like Minecraft! This way, I could later use it for other projects.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Final Project
&lt;/h2&gt;

&lt;p&gt;I wanted to learn how to create WebGL experiences on the website, so I took the three.js library, which makes it easier. I came up with the idea of creating a voxel world, optimised and infinite, just like Minecraft! This way, I could later use it for other projects.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo Link
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://bernatixer.github.io/Gevolution/"&gt;https://bernatixer.github.io/Gevolution/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Link to Code
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vWogaON8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/github-logo-28d89282e0daa1e2496205e2f218a44c755b0dd6536bbadf5ed5a44a7ca54716.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/bernatixer"&gt;
        bernatixer
      &lt;/a&gt; / &lt;a href="https://github.com/bernatixer/Gevolution"&gt;
        Gevolution
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Just... Evolve
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
Gevolution&lt;/h1&gt;
&lt;p&gt;Evolution like three.js based game
&lt;a rel="noopener noreferrer" href="https://raw.githubusercontent.com/bernatixer/Gevolution/master//images/gevolution.png"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cw9YZD3r--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/bernatixer/Gevolution/master/images/gevolution.png" alt="Gevolution" title="Gevolution"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
Demo&lt;/h2&gt;
&lt;p&gt;You can see the progression of the game in the following &lt;a href="https://bernatixer.github.io/Gevolution/" rel="nofollow"&gt;page&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Note: Demo is not up to date with the code&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;
Installation&lt;/h2&gt;
&lt;pre&gt;&lt;code&gt;git clone git@github.com:bernatixer/Gevolution
npm i
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;
Usage&lt;/h2&gt;
&lt;h3&gt;
Development server&lt;/h3&gt;
&lt;div class="highlight highlight-source-shell"&gt;&lt;pre&gt;npm start&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;You can view the development server at &lt;code&gt;localhost:3000&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;
Production build&lt;/h3&gt;
&lt;div class="highlight highlight-source-shell"&gt;&lt;pre&gt;npm run build&lt;/pre&gt;&lt;/div&gt;
&lt;blockquote&gt;
&lt;p&gt;Note: Install &lt;a href="https://www.npmjs.com/package/http-server" rel="nofollow"&gt;http-server&lt;/a&gt; globally to deploy a simple server.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class="highlight highlight-source-shell"&gt;&lt;pre&gt;npm i -g http-server&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;You can view the deploy by creating a server in &lt;code&gt;dist&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight highlight-source-shell"&gt;&lt;pre&gt;&lt;span class="pl-c1"&gt;cd&lt;/span&gt; dist &lt;span class="pl-k"&gt;&amp;amp;&amp;amp;&lt;/span&gt; http-server&lt;/pre&gt;&lt;/div&gt;
&lt;h2&gt;
Author&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://bernattorres.com" rel="nofollow"&gt;Bernat Torres&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
License&lt;/h2&gt;
&lt;p&gt;This project is open source and available under the &lt;a href="https://raw.githubusercontent.com/bernatixer/Gevolution/master/LICENSE"&gt;MIT License&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;



&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/bernatixer/Gevolution"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;h2&gt;
  
  
  How I built it (what's the stack? did I run into issues or discover something new along the way?)
&lt;/h2&gt;

&lt;p&gt;I used three.js library to handle all the WebGL logic, also in order to pack all the files into one I used webpack. Finally, to host the project I used GitHub pages as the generated files are static.&lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Thoughts / Feelings / Stories
&lt;/h2&gt;

&lt;p&gt;I am willing to continue with this project and convert it to a game.&lt;/p&gt;

&lt;p&gt;[Final Note]: Hopefully by this summer I would get a playable game :D&lt;/p&gt;

</description>
      <category>2020devgrad</category>
      <category>octograd2020</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
