title: 2D Tile Engine (World Generation) - Beginner
body: <p>I am a beginning Java Game Developer. For my first game, I'm making something along an advanced version of <a href="https://s3.amazonaws.com/ld48/ld22/index.html" rel="nofollow">Minicraft</a>
  by Notch. However I have absolutely clue how to make a 2D Tile-Based World Generator.</p>
  
  <p>Would anyone mind explaining how I would do this and maybe a link or two to some YouTube Videos?</p>
  
  <p>I am using Eclipse EE for Java Developers.</p>
  
  <p>Also I can't seem to resize my window to make the pixels larger. The image is 16 x 16 pixels, however I'd like to display it larger like minicraft (link above)</p>
  
  <p>Here is the code for Skeleton.java (which is the framework ('Skeleton') of the game)`</p>
  
  <pre><code> package code;
  
   import java.awt.Graphics;
  
  public class Skeleton extends Loop{ //Should extend Applet?
  public void init(){
  Thread th= new Thread(this);
  th.start();
  offscreen = createImage(120,160); // 120, 160
  d = offscreen.getGraphics();
  addKeyListener(this); //15:43
  }
  public static final int HEIGHT = 120; //Original Height/Width= "120 x 160"
  public static final int WIDTH = 160;
  public static final String TITLE= "Test Game BETA";
  public static final int SCALE = 3;
  
  public void paint(Graphics g) {
  d.clearRect(0, 0, 160, 120); //Error Here, Scale perhaps? -Disregard //0,0,160,120      
  d.drawImage(him, x, y, this);     //12:17 http://www.youtube.com/watch?v=XmRD0PlAXEY
  g.drawImage(offscreen, 0, 0, this);
  }
  public void update(Graphics g){
      paint(g);
  } //Finished at 15:33 ERROR w/ the circle -Fixed
     } 
     //2D Tile Engine Must be Created
  </code></pre>