Example #1
0
void drawBall(uchar x, uchar y, uchar* o, uchar c) {
  register uchar* d = cellAddr(x, y);
  SET_COLOR(COLOR_BLUE);
  d[-1] = 0x55;
  d[0x100-1] = 0x55;  
  drawBall1(d, o, c);
}
Example #2
0
void display() 
{ 
    glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT); 
    glMatrixMode(GL_MODELVIEW); 
    glLoadIdentity(); 
    drawBall1(); 
    drawBall2(); 
    update(); 
    glutSwapBuffers(); 
} 
Example #3
0
void drawSpriteSel(uchar x, uchar y, uchar s, uchar c, uchar t) {
  uchar* d;
  if(t==1) {
    d = cellAddr(x, y)-1;
    SET_COLOR(COLOR_BLUE);
    d[14] = 0x55;
    d[0x100+14] = 0x55;  
    drawBall1(d, selAnimation[t], s);  
  } else {
    drawBall(x, y, selAnimation[t], s);  
  }

  if(c) drawCursor();

  if(t==3) sound(1, 10);
}
Example #4
0
void redrawNewBalls(uchar a, uchar b, uchar c) {
  drawBall1(PIXELCOORDS(20, 3), imgBalls, a);
  drawBall1(PIXELCOORDS(23, 3), imgBalls, b);
  drawBall1(PIXELCOORDS(26, 3), imgBalls, c);
}