SECCOMP exit()
[mirrors/Programs.git] / c / ninvaders-0.1.1 / ChangeLog
CommitLineData
21c4e167
H
1
2****** Release 0.1.1 ******
3
42003-04-22 Alexander Hollinger <alexander.hollinger@gmx.net>
5
6 * globas.c: changed version from 0.0.11 to 0.1.1
7
82003-05-06 Sebastian Gutsfeld <segoh@gmx.net>
9
10 * aliens.c (aliensMissileMove): added test if there is an alien
11 ship left when starting a new missile; this was the bug which is
12 responsible for freezing the game when shooting at the last alien
13
142003-05-05 Sebastian Gutsfeld <segoh@gmx.net>
15
16 * nInvaders.c (readInput): updated readInput for reading input in
17 different states (see status var)
18
19 * nInvaders.c (handleTimer): added code for status GAME_HIGHSCORE
20 so a title screen with animation is shown; updated status
21 GAME_OVER
22
23 * nInvaders.c (main): updated status initialisation from
24 GAME_NEXTLEVEL to GAME_HIGHSCORE
25
26 * view.c: added WINDOW wTitleScreen; added titleScreenInit; added
27 titleScreenDisplay; added titleScreenClear; added battleFieldClear
28
29 * view.c (aliensRefresh): formatted some code
30
31 * view.c (ufoRefresh): fixed array length
32
33 * view.c (gameOverDisplay): simpified function
34
35 * view.c (graphicEngineInit): updated with titleScreenInit
36
37 * view.h: sorted function declarations; updated gameOverDisplay,
38 titleScreenClear, titleScreenDisplay and battleFieldClear
39
402003-04-22 Alexander Hollinger <alexander.hollinger@gmx.net>
41
42 * globals.c (doSleep): added again. still needed in
43 view.c. added "#ifdef win32" instruction again.
44
452003-04-22 Alexander Hollinger <alexander.hollinger@gmx.net>
46
47 * globals.c (doSleep): deleted method. not used any more.
48
49 * globals.c: incremented version number from 0.0.10 to 0.0.11
50
51 * globals.c: removed '#ifdef win32' instruction.
52
53 * *.c, *.h: added license notice to each file
54
55 * renamed ToDo to TODO
56
572003-04-18 Alexander Hollinger <alexander.hollinger@gmx.net>
58
59 * nInvaders.c (finish): "barely mediocre" and "show promise"
60 both "< 10000". Changed latter to "< 12500"
61
622003-04-17 Alexander Hollinger <alexander.hollinger@gmx.net>
63
64 * view.c (statusDisplay): modified so that buffer is written
65 to wBattleField. new variable WINDOW* wStatus. added method
66 (statusInit) which does initialisation of WINDOW wStatus.
67 Problem: Alien missiles go right to the bottom of screen,
68 where status is located and overwritten with missile sprite.
69 Fix: see next point
70 Changed behaviour of display of lives. Now the _remaining_
71 lives are displayed. i.e. at the beginning you will see
72 two little spaceshuttles, because you have two lives left.
73
74 * aliens.c (aliensMissileMove): added some checking, if missile
75 reached bottom where player moves. if so, do not move further
76 and reload missile. this reduces number of missiles which have
77 to be hit-tested each round, yet made it necessary to change
78 the shot-threshold otherwise too many missiles would have been
79 coming down. Not limiting ALIENS_MAX_MISSILES from 50 to 10 is
80 possible, because missiles are reloaded when they reach the
81 bottom. 10 concurrent missiles should be quite hard to manage..
82 Removed ALIENS_MAX_MISSILES-definition from view.h. Was defined
83 twice, now only in aliens.h.
84 optimized threshold-checking. calculation outside for-
85 instruction, and only comparison within.
86
87
882003-04-17 Alexander Hollinger <alexander.hollinger@gmx.net>
89
90 * nInvaders.c (readInput): removed (ch==27) for exit
91 sequence. as dettus pointed out there would be problems
92 on some terminals. pressing some keys too long will send
93 an KEY_ESC and quit the game.
94
952003-04-17 Alexander Hollinger <alexander.hollinger@gmx.net>
96
97 * nInvaders.c (setUpTimer): changed method to call handleTimer.
98 The call signal(SIG_ALRM, handleTimer) didn't work on irix.
99 There, the timer was only fired once and then the programm
100 exited. Now using call to sigaction() with flag SA_RESTART.
101
1022003-04-16 Alexander Hollinger <alexander.hollinger@gmx.net>
103
104 * nInvaders.c: added a real-time timer that does 50 fps. if you
105 want it slower toggle the constant FPS. the higher the slower.
106 A timer is created and does all the gaming stuff while key
107 checking is still done in (main). Gamehandling is done by
108 simulating a deterministic finite automaton by setting the
109 'status'-attribute to e.g. GAME_LOOP, GAME_PAUSED, GAME_EXIT.
110 the following methods were modified/ added:
111 (setUpTimer): creates and initializes timer
112 (handleTimer): this method is called every 1/FPS seconds and
113 contains most code from old (main)
114 (readInput): changed so that the 'status'-variable is affected.
115 pressing of 'p' now changes 'status'
116 (main): most code moved to (handleTimer), calls setUpTimer and
117 sets 'status' to GAME_NEXTLEVEL
118 (gameOver): completely moved to handleTimer
119
120 * view.c (graphicEngineInit): removed 'timeout(0);' no longer
121 needed as we now hava a timer. another advantage: call to
122 (readInput) in nInvaders.c no longer called permanently.
123 in (readInput) the getch()-call waits till a key is pressed.
124 doSleep(1) no longer needed in nInvaders.c (readInput).
125
1262003-04-08 Sebastian Gutsfeld <segoh@gmx.net>
127
128 * ufo.c:replaced 'u' with 'ufo' (see ufo.h) and 'a' with 'aliens'
129
130 * ufo.h: added typedef for Ufo and renamed 'u' into 'ufo',
131
132 * player.c: added typedef for Player and renamed 'p' into 'player',
133 replaced 'p' with 'player and 'a' with 'aliens'
134
135 * aliens.c: replaced 'a' with 'aliens' (see aliens.h)
136
137 * aliens.h: added typedef for Aliens and renamed 'a' into 'aliens'
138
139 * globals.c (RELEASE): updated release number
140
1412003-04-07 Sebastian Gutsfeld <segoh@gmx.net>
142
143 * view.c (ufoRefresh): reverted 'frame' assignement
144
145 * nInvaders.c (main): reverted to old ufo speed from revision 1.3
146
1472003-04-06 Alexander Hollinger <alexander.hollinger@gmx.net>
148
149 * nInvaders.c (resetPlayer): added a call to playerMisisleClear();
150
151 * view.c (aliensRefresh): fully encapsulated. access to aliens-Array
152 by pointer.
153
154 * aliens.c (*HitCheck): moved hit_alien_test and hit_bunker_test to
155 aliens.c and renamed to aliensHitCheck and bunkersHitCheck. Added
156 comments and did improvement of bunkersHitCheck-Algorithm
157 (shoty < BUNKERY + BUNKERHEIGHT instead of <=).
158
159 * nInvaders.c (finish): moved short version of GPL to globals.c
160 (showGplShort)
161
162 * view.c (gameOverInit): fixed color code
163
164 * player.h: removed lives from structPlayer. This variable belongs
165 more to the gamehandling in nInvaders.c that to the model of the
166 player in player.c. This is done because of better encapsulation
167 of player.c.
168
169 * player.c (playerReset): added a playerDisplay. Removed playerDisplay
170 from nInvaders.c just before refreshScreen() and added another
171 playerDisplay in the player.c (playerMissileMove) so that the
172 playerMissileClear does not clear the middle of the player when
173 a new shot is fired.
174
175 * aliens.c (aliensHitCheck): added support for return of alienType so
176 that different scoring according to type of aliens is possible.
177