Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.21 seconds.

  1. Replies
    60
    Views
    9,883

    Re: Tower Defense on Java

    Yeah, g2d is an instance of Graphics2D. You can get one by overriding paintComponent and casting the Graphics Object, which is actually a Graphics2D Object. And it fills whatever you want, you just...
  2. Replies
    60
    Views
    9,883

    Re: Tower Defense on Java

    You'll want something more like:


    LinearGradientPaint gradient = new LinearGradientPaint(start, end, fractions, colors);
    g2d.setPaint(gradient);
    g2d.fillRect(0, 0, getWidth(), getHeight());...
  3. Replies
    60
    Views
    9,883

    Re: Tower Defense on Java

    What Norm said.
  4. Replies
    60
    Views
    9,883

    Re: Tower Defense on Java

    Threading is certainly one way to go, but I'm not sure I'd recommend it to a beginner.

    Think about it this way: all of the stuff going on in a game is not happening at the same time, it's just...
Results 1 to 4 of 4