×

Discussion Board

Results 1 to 5 of 5

Thread: game

  1. #1
    Registered User
    Join Date
    Feb 2007
    Posts
    21

    game

    hi all of u i have one dout iwant to move the ball in x and y direction simulateneously menas if iclick the ball from that ball twa balls will come out ant if the ball which will come out found big ball then again two ball caome out
    pls tell me the logic

  2. #2
    Registered User
    Join Date
    Feb 2005
    Posts
    10

    Re: game

    Quote Originally Posted by vilastalewale
    hi all of u i have one dout iwant to move the ball in x and y direction simulateneously menas if iclick the ball from that ball twa balls will come out ant if the ball which will come out found big ball then again two ball caome out
    pls tell me the logic

    Plz be a bit clear in what u wanna implement. U doing it for a device with pointer?

  3. #3
    Nokia Developer Champion
    Join Date
    Apr 2007
    Posts
    2,708

    Re: game

    guess u may look into the gaming api's for this, especially the per-pixel collision detection to see when a ball actually hits another one...
    logic as in collision detection logic or logic as in u want the code for the whole game ?

  4. #4
    Registered User
    Join Date
    Apr 2007
    Location
    Hyderabad
    Posts
    21

    Re: game

    Hey this is all matter of collision detection
    USe sprites and collision detection logic

  5. #5
    Registered User
    Join Date
    May 2007
    Posts
    13

    Re: game

    hi,
    The best way for collision detection betweeen two balls ..considering them as circles is to check the distance between there center points to be greater then there sum of there diameters .Eg if r1 is ball 1 radius and r2 is ball 2 radius then if r1+r2 <= d1 or d2 assuming both balls are of same diamter This technique will work only when the amount of motion of balls is lesser then the diameter of the ball.
    There are other techniques too which can be used u can refer any circle to circle collision detection techniques.

Similar Threads

  1. Question. Free memory in Game Loop(J2ME)
    By videador in forum Mobile Java General
    Replies: 5
    Last Post: 2009-08-24, 06:05
  2. Game directly to Game Folder
    By JPurd in forum Mobile Java General
    Replies: 4
    Last Post: 2008-04-15, 20:34
  3. Great game Wappo
    By geonofear in forum News and Announcements
    Replies: 2
    Last Post: 2007-01-03, 12:00
  4. Game Icon (Solution urgently required)
    By siddharth23 in forum Mobile Java General
    Replies: 5
    Last Post: 2004-01-13, 19:15
  5. Avail Economical & quality game development service
    By pramod_kaushik in forum Mobile Java General
    Replies: 1
    Last Post: 2003-08-18, 15:40

Posting Permissions

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