Results 1 to 3 of 3

Thread: help with Pi Darts!!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2002
    Posts
    20

    help with Pi Darts!!

    Ok i have this Pi darts game, the board is shaped with a square and a circle inscribed inside of it. I have it set up so the user types in how many darts they wanna throw and it randomly plots that many points on the board.

    Now how would i make it so that the dots that did not land on the board are say red instead of blue?


    any help will be appreciated, and if you dont understand what im saying please be honest. I can TRY to go in more detail if needed !!


    Thanks alot,


    -Chaos

  2. #2
    Fanatic Member Armbruster's Avatar
    Join Date
    Sep 2002
    Location
    Maryland Heights, MO
    Posts
    857
    What are you using for the "dots"? This would be very easy to do with shapes. You could plot a circle shape where the dart land and set the fillcolor to blue if on the board and red if not.
    "Look! Up in the sky! It's a bird! It's a plane! It's Diaper-Head Boy! (there by my name!) Yes, Diaper-Head Boy, who disguised as my son, Seth, fights a never-ending battle for truth, justice and terrorizing my house!

    Resistance is futile, you will be compiled . . . Please!

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Dec 2002
    Posts
    20
    no, it just shows a random dot... here's a frag of the code:


    VB Code:
    1. dim x as integer, y as integer
    2.  
    3. x= 6000*rnd+1
    4. y=6000*rnd+1
    5.  
    6. Pset(x,y), vbBlue

    something like that!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width