Browse Source

NEERCS: tried to make copper working

master
parent
commit
45e25f482b
2 changed files with 9 additions and 3 deletions
  1. +2
    -0
      neercs/video/copper.lolfx
  2. +7
    -3
      neercs/video/render.cpp

+ 2
- 0
neercs/video/copper.lolfx View File

@@ -33,6 +33,8 @@ void main(void)
color.y = float(int(color.y*8.0)*32)/256.0;
color.z = float(int(color.z*8.0)*32)/256.0;

color = vec3(1.0,0.0,0.0);

gl_FragColor = vec4((color==1.0)?color:source,1.0);
}


+ 7
- 3
neercs/video/render.cpp View File

@@ -666,9 +666,13 @@ void Render::TickGame(float seconds)
}
/* draw LOL */
caca_set_color_argb(m_caca, 0xfff, 0x000);
caca_put_str(m_caca, canvas_char.x - 11, canvas_char.y - 3,"█ ███ █");
caca_put_str(m_caca, canvas_char.x - 11, canvas_char.y - 2,"█ █ █ █");
caca_put_str(m_caca, canvas_char.x - 11, canvas_char.y - 1,"███ ███ ███");
caca_put_str(m_caca, canvas_char.x - 9 , canvas_char.y - 6, "_______");
caca_put_str(m_caca, canvas_char.x - 10, canvas_char.y - 5, "/ /|");
caca_put_str(m_caca, canvas_char.x - 11, canvas_char.y - 4, "/______/ |");
caca_put_str(m_caca, canvas_char.x - 11, canvas_char.y - 3, "| | |");
caca_put_str(m_caca, canvas_char.x - 11, canvas_char.y - 2, "| :D | /");
caca_put_str(m_caca, canvas_char.x - 11, canvas_char.y - 1, "|______|/");

}

void Render::Pause()


Loading…
Cancel
Save