Changeset 1474


Ignore:
Timestamp:
Jun 14, 2012, 4:09:22 PM (7 years ago)
Author:
rez
Message:

ESC key to quit added

Location:
trunk/neercs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/neercs/neercs.cpp

    r1471 r1474  
    6161    caca_clear_canvas(m_caca);
    6262
    63     caca_fill_ellipse(m_caca, 0, 0, 30, 10, '+');
     63    caca_fill_ellipse(m_caca, 20+10 * cos(m_time * 1.f), 10+10 * sin(m_time * 1.f), 16+8 * sin(m_time * 6.f), 12+6 * cos(m_time * 5.f), '|');
     64    caca_fill_ellipse(m_caca, 20+10 * cos(m_time * 1.f), 10+10 * sin(m_time * 1.f), 12+8 * sin(m_time * 6.f), 8+6 * cos(m_time * 5.f), ' ');
    6465
    6566    caca_set_color_ansi(m_caca, 2, CACA_DEFAULT);
     
    7980    int x4 = 6 + 5 * cos(m_time * 2.f);
    8081    caca_set_color_ansi(m_caca, CACA_YELLOW, CACA_RED);
    81     caca_put_str(m_caca, x4, 12, "Le Caca C'Est Surpuissant");
     82    caca_put_str(m_caca, x4, 12, "Le Caca C'Est Surpuissant \\:D/");
    8283
    8384    caca_put_str(m_caca, 0, 0, "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
    8485    caca_put_str(m_caca, 0, 1, " !\"#$%&'()*+,-./0123456789");
     86
     87    if (Input::GetButtonState(27 /*SDLK_ESCAPE*/))
     88        Ticker::Shutdown();
     89
    8590}
    8691
  • trunk/neercs/video/render.cpp

    r1473 r1474  
    102102vec3 dos_color;            // color value
    103103int dos_vtx[8];            // vertex array
    104 ivec2 ratio_2d(2,6);       // 2d ratio
     104ivec2 ratio_2d(2,4);       // 2d ratio
    105105ivec2 map_size(256,256);   // texture map size
    106106ivec2 font_size(8,8);      // font size
Note: See TracChangeset for help on using the changeset viewer.