Ejemplo n.º 1
0
void CStateQuit::Render(Console& con){
  con.setBackgroundColor(0);
  con.cls();
  con.setColor(15);
 
  for(int i = 0; i < 80; ++i){
    con.write(i, 0, "*");
    con.write(i, 24, "*");
  }
  for(int i = 1; i < 24; ++i){
    con.write(0, i, "*");
    con.write(79, i, "*");
  }

  con.setColor(14);
  con.write(31,11,"Thanks for Playing");
  con.flip();

}
Ejemplo n.º 2
0
void CStateIntro::Render(Console& con){

  static int frameCount = 0;

  con.setColor(14);
  con.setBackgroundColor(0);
  con.cls();
  
  //draw border
  Pair pt;
  int color = 9;
  for(int i = 0; i < 208; i += 1){
    con.setColor(color);
    color++;
    if(color > 15)
      color = 9;
    pt = GetBorderPosition(m_borderCount + i);
    con.writeAscii(pt.x, pt.y, 42);
  }

  //draw info
  con.setColor(15);
  con.write(36, 5, "Chuck's");
  con.setColor(12);
  con.write(34, 7, "Factory Game");

  con.setColor(10);
  con.write(26, 10, "http:\\\\www.gameinstitute.com");
  con.write(31, 12, "Game Challenge #5");
  con.setColor(7);
  con.write(31, 14, "February 23, 2008");

  con.setColor(11);
  con.write(24, 20, "<<< PRESS ANY KEY TO CONTINUE >>>");
  con.flip();
}