]> 4ch.mooo.com Git - 16.git/blobdiff - src/palllist.c
having the palette in the game code may help. also i added wolf3d's palette for exama...
[16.git] / src / palllist.c
index e15d862564e2dbb8497673ce32e7db21bd125c59..eb428c1d6b9ba81ea78a72755601e29ea6f0828c 100755 (executable)
@@ -1,5 +1,5 @@
 /* Project 16 Source Code~\r
- * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
+ * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
  *\r
  * This file is part of Project 16.\r
  *\r
  * i am going to work on a really big area of code it will be on the refresh system, the walking/scrolling system, things that use showpage, adding disableing 8087 functions if no 8087 detected, and a bunch of other things i cannot remember off the top of my head because i am BURNT. I need a small break~ -- -- -- -- update! i am working on this i made ZC_WALK and i am going to move to VRL/VRS soon! .\r
  * ==== PRE SHOWPAGE TO SHOWMV CONVERSION ==== i am going to work on a really big area of code it will be on the refresh system, the walking/scrolling system, things that use showpage, adding disableing 8087 functions if no 8087 detected, and a bunch of other things i cannot remember off the top of my head because i am BURNT. I need a small break~ -- -- -- -- update! i am working on this i made ZC_WALK and i am going to move to VRL/VRS soon!\r
  */\r
-#include <stdio.h>\r
+#include "src/lib/ll.h"\r
 \r
 void\r
 main(int argc, char *argv[])\r
 {\r
-//TOO TIREDWWWW\r
+       int i;\r
+       node_t * head = NULL;           node_t * heao = NULL;\r
+       head = malloc(sizeof(node_t));  heao = malloc(sizeof(node_t));\r
+       head->val = 0;                  heao->val = 9;\r
+       head->next=NULL;                heao->next=NULL;\r
+       head->id=0;                             heao->id=0;\r
+\r
+       for(i=1; i<\r
+               //PAL_SIZE\r
+               7\r
+               ; i++)\r
+       {\r
+               if(!(i%3)) printf("\n   ");\r
+               printf("%d,", i);\r
+               pushe(head, i);\r
+       }\r
+\r
+       printf("\n");\r
+\r
+       for(i=8; i>0; i--)\r
+       {\r
+               if(!(i%3)) printf("\n   ");\r
+               printf("%d,", i);\r
+               pushe(heao, i);\r
+       }\r
+       print_list(head);\r
+       printf("\n");\r
+       print_list(heao);\r
+       free(head);\r
+       free(heao);\r
 }\r