This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
blog:spring2016:klymber:journal [2016/04/20 16:01] – [Systems Programming Journal] klymber | blog:spring2016:klymber:journal [2016/04/29 14:23] (current) – [April 29 2016] klymber | ||
---|---|---|---|
Line 13: | Line 13: | ||
======Systems Programming Journal====== | ======Systems Programming Journal====== | ||
+ | ====April 29, 2016==== | ||
+ | As a class we have worked on displaying a pahkmahn board in full color! Using appropriate characters for each item in the game for example we used @ for the power pellet and used . for the regular pellets and a W for the ghosts the walls are hopefully going to be solid lines using the ACS_BLOCK and pahkmahn is an O. The attributes such as color for the symbols should correspond to the actual color as close as we can get it to the actual Pacman game. The board is going to be a 2 dimensional array for rows and columns that we are going to fill accordingly for walls pellets ghosts and pahkmahn himself! | ||
====April 20, 2016==== | ====April 20, 2016==== | ||
- | + | As a class we wrote a program we are calling | |
- | // Gchat | + | |
- | + | ||
- | 1 #include <stdio.h> | + | |
- | 2 #include < | + | |
- | 3 #include < | + | |
- | 4 #include < | + | |
- | 5 #include < | + | |
- | 6 #include < | + | |
- | 7 #include < | + | |
- | 8 #include < | + | |
- | 9 #include < | + | |
- | 10 #include < | + | |
- | 11 | + | |
- | 12 | + | |
- | 13 | + | |
- | 14 int quit; | + | |
- | 15 | + | |
- | 16 void finish(); | + | |
- | 17 | + | |
- | 18 int main() | + | |
- | 19 { | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | 32 | + | |
- | 33 | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | 41 | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | 49 | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | 54 | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | 75 | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | 100 | + | |
- | 101 | + | |
- | 102 f = 0; | + | |
- | 103 } | + | |
- | 104 } | + | |
- | 105 } | + | |
- | 106 else // parent | + | |
- | 107 { | + | |
- | 108 | + | |
- | 109 while ((!feof(stdin)) && quit == 0) | + | |
- | 110 { | + | |
- | 111 c = fgetc(stdin); | + | |
- | 112 if (c == ' | + | |
- | 113 | + | |
- | 114 | + | |
- | 115 } | + | |
- | 116 | + | |
- | 117 | + | |
- | 118 | + | |
- | 119 for (x = 0; x < 9; x++) | + | |
- | 120 | + | |
- | 121 } | + | |
- | 122 | + | |
- | 123 | + | |
- | 124 } | + | |
- | 125 | + | |
- | 126 | + | |
- | 127 void finish() | + | |
- | 128 { | + | |
- | 129 quit = 1; | + | |
- | 130 } | + | |
- | + | ||
====MARCH 24, 2016==== | ====MARCH 24, 2016==== | ||