CMU graphics help needed!

Discussion in 'Computer Science & Culture' started by squirrels, May 13, 2003.

Thread Status:
Not open for further replies.
  1. squirrels Registered Member

    Messages:
    5
    im writing basically a rip of of Galaga(top down "aircraft" shooter), whenever the player tries to "shoot", the game pauses to animate the line, i want it to animate the line being drawn, but still let the player move as the enemy "reacts" by "shooting" back. any help?
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. squirrels Registered Member

    Messages:
    5
    btw, im using borland pcGrasp.
     
  4. Google AdSense Guest Advertisement



    to hide all adverts.
  5. squirrels Registered Member

    Messages:
    5
    please help!
     
  6. Google AdSense Guest Advertisement



    to hide all adverts.
  7. SG-N Registered Senior Member

    Messages:
    1,051
    What do you want to know ?

    Please Register or Log in to view the hidden image!

     
  8. god-of-course Bluegoblin. Registered Senior Member

    Messages:
    234
    i dont know anything about borland. But as is the case with any langauge, you need to first develop your functions for controlling everything, if these include producing animations then they should each add there frame in the animation into a block in memory when they are called. When control returns to the main program loop it should be tyhe duty of the loop to flip that memory block onto the graphics memory segments. The loop repeats and each function e.g. the plane one, the gun one etc each add thier bit to the memmory and it all repeats. The way you've done it is that the shooting code displays the whole animation in one time that it is called.
     
Thread Status:
Not open for further replies.

Share This Page