• Content count

  • Joined

  • Last visited

Community Reputation

100 Neutral

About thedude018

  • Rank
  1. I can't find/solve the bugs with this code here. There are a lot of red "!"s meaning something is immensely wrong. package javagame; import java.awt.Graphics; import java.awt.event.KeyAdapter; import java.awt.KeyEvent; import javax.swing.JFrame; public class javagame extends JFrame { int x, y; public class AL extends Keyadapter { public void keyPressed (KeyEvent e) { int keyCode = e.getKeyCode(); if(keyCode == e.VK_LEFT) x--; } if(keyCode == e.VK_RIGHT} x++; } if(keyCode == e.VK_UP) y--; } if(keyCode == e.VK_DOWN) y++; } } public void keyReleased(KeyEvent e) { } } { public JavaGame(){ addKeyListener(new AL(); setTitle("Java Game");} setSize(250, 250); setResizable(false); setVisible(true); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); x = 150; y = 150; } public void paint(Graphics g) g.fillOval(x, y, 15, 15) repaint(); public static void main(String[] args) new JavaGame(); }
  2. Best language to start programming in?

    I'm not sure if i read that write, but did you say you were a programmer for a game? Anyway, i started with Java, it's simple, and more importantly, it's in everything. My only advice is download sample .javas and try to interpret how the game/program will work. If your into it, download Minecraft ([url=""][/url]) and decompile it, then look at the code, it is definitely one of the easiest codes to understand, because once you get it, it just clicks. Also, if your very ambitious, make a mod for minecraft and release it somewhere and most importantly ACCEPT CRITICISM because it will ultimately make you better, anyway, Good Luck!