pegar();
   

  Posts

Nuevo Post

actionscript - surratt 2h.
actionscript - edens 2h.
actionscript - fifignagli 3h.
actionscript - omemyqe 13h.
actionscript - lafyzlogfe 15h.
actionscript - ylutluwtek 15h.
actionscript - crouch 15h.
actionscript - jone 16h.
actionscript - oliva 19h.
- dybbvPxL 19h.

   

  Formulario de pegado de código/texto

Lenguaje: c
Nickname: Ceritium
Descripción: Sin descripción
Descargar Codigo
  1. ##########################################################
  2. ##
  3. ## By Ceritium
  4. ## ceritium@gmail.com http://ceritium.blogsome.com
  5. ##
  6. ## Este codigo es de libre uso y distribución, si quieres hacer una reseña a
  7. ## a su autor se agradece.
  8. ##
  9. ##########################################################
  10.  
  11. #include "allegro.h"
  12. #include "stdio.h"
  13. #include "math.h"
  14. main()
  15. {
  16. int x;
  17. int y;
  18. int color;
  19.  
  20. x=130;
  21. y=50;
  22.  
  23.  
  24. allegro_init();
  25. install_keyboard();
  26. install_timer();
  27. set_gfx_mode(GFX_AUTODETECT,320,200,0,0);
  28.  
  29. do{
  30. //color=rand()%255;
  31. putpixel(screen, x, y,color);
  32. if (key[KEY_LEFT]) {
  33. if (x<1) { x=1; }
  34. x = x-1; printf( "%i,%i %i left\n", x,y,color);
  35. }
  36. if (key[KEY_RIGHT]) {
  37. if (x>319) { x=319;}
  38. x = x+1; printf( "%i,%i %i right\n", x,y,color);
  39. }
  40. if (key[KEY_DOWN]) {
  41. if (y>199) { y=199; }
  42. y = y+1; printf( "%i,%i %i down\n", x,y,color);
  43. }
  44. if (key[KEY_UP]) {
  45. if (y<1) { y=1; }
  46. y = y-1; printf( "%i,%i %i up\n", x,y,color);
  47. }
  48. if (key[KEY_SPACE]) { color=rand()%255; printf( "%i,%i %i \n", x,y,color); }
  49. }while(!key[KEY_ESC]);
  50.  
  51. }END_OF_MAIN();
Lenguaje:
Recuerdame:
Nick:
Recuerdame:
Descripción:
Nota: Script en constante desarrollo, por favor los bugs que encuentres y sugerencias te ruego los remitas clicando en este enlace Cuando pensemos que el script es seguro y estable será liberado para su libre uso.