Jeu de FPS en multijoueur. Voir la description sur planete casio
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.c 793B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #include <gint/display.h>
  2. #include <gint/keyboard.h>
  3. #include <gint/std/stdio.h>
  4. #include <gint/std/stdlib.h>
  5. #include <gint/clock.h>
  6. #include "FxEngine/FxEngine.h"
  7. #include "FxEngine/face.h"
  8. #include "controls.h"
  9. int main(void)
  10. {
  11. init_controls();
  12. dclear(C_WHITE);
  13. FE_point point[4]={{{10,0,0},{0,0,0}},{{10,10,0},{0,0,0}},{{10,0,10},{0,0,0}},{{10,10,10},{0,0,0}}};
  14. FE_face face={&point[0],&point[1],&point[2],1,2};
  15. FE_face face2={&point[3],&point[1],&point[2],0,2};
  16. while (1)
  17. {
  18. FE_new_frame();
  19. reload_fps_displaying();
  20. for (int i=0;i<4;i++)
  21. {
  22. FE_calc(&point[i]);
  23. if (point[i].translated.z>0)
  24. {
  25. dpixel(point[i].translated.x,point[i].translated.y,C_BLACK);
  26. }
  27. }
  28. FE_draw_face(&face);
  29. FE_draw_face(&face2);
  30. display_fps(100,56);
  31. }
  32. getkey();
  33. return 1;
  34. }