import javax.swing.JFrame;
002
import javax.swing.JLabel;
003
import javax.swing.ImageIcon;
004
import javax.swing.JOptionPane;
005
import java.awt.Color;
006
import java.awt.Graphics;
007
import java.awt.Container;
008
import java.awt.event.KeyEvent;
009
import java.awt.event.KeyListener;
010
011
public class VelchezGame extends JFrame implements KeyListener
012
{
013
int x1=200,y1=50;
014
int x2=150,y2=125;
015
016
017
// the heads coordinates (-_-;)
018
int x3=40 , y3=30;
019
int x4=60 , y4=30;
020
021
022
int d = (int)(20+Math.random()*100);
023
024
025
int minho;
026
027
028
//int y1=0,y2=0;
029
Contai