Search:

Type: Posts; User: Campos

Search: Search took 0.11 seconds.

  1. Replies
    3
    Views
    1,376

    Re: Click to start and drawString fonts

    Here it goes. The paddle movement worked just fine until i put in the buttons. What about text size, bold or italics?


    solved the paddle moving problem by adding this.setFocusable(true); and...
  2. Replies
    3
    Views
    1,376

    Click to start and drawString fonts

    Hello,

    I've looked around and can't find answers i understand. Is it possible to have an applet that doesn't start until the user has clicked on the applet to give it focus? Maybe even have an...
  3. Thread: Java n00b

    by Campos
    Replies
    6
    Views
    865

    Re: Java n00b

    Can't believe i missed the capital, thats like the first thing they tell you in big bold letters
  4. Thread: Java n00b

    by Campos
    Replies
    6
    Views
    865

    Re: Java n00b

    To HelloWorld922

    I added the rest of the code you posted in what i feel is the correct spot. To call lpmove() from the run method i used the following:


    if (lpmovedown = true || lpmoveup ==...
  5. Thread: Java n00b

    by Campos
    Replies
    6
    Views
    865

    Re: Java n00b

    Figured out the Top/Bottom collision problem. The ball and the paddle were moving vertically at the same speed, so once they met, the ball would reverse direction, but since the speed was the same...
  6. Thread: Java n00b

    by Campos
    Replies
    6
    Views
    865

    Re: Java n00b

    Thanks for the reply.

    See all those If statements? Thats where I did the collision detection.


    if (posx == lpredge)
    {
    if (posy >= lpuedge)
    {
    if (posy...
  7. Thread: Java n00b

    by Campos
    Replies
    6
    Views
    865

    Java n00b

    Hey,

    I'm trying to learn java. I've made a simple applet, kind of pongish. I have two problems with it. One is manual control of the paddles. Trying to do keylisteners makes my brain hurt. ...
Results 1 to 7 of 7