Age | Commit message (Collapse) | Author |
|
it is redundant in thus inconvenient to repeat 'position' inside a
structure named position.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
many structures or positions were not revelant anymore and thus have
been removed.
some positions were not relative to each other
it is sometimes not meaningful to put surfaces in the global scope when
they only need to be used once.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
example (for my netbook):
$ ./a.out 1024 600
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
the fonts (actually the font) is opened at startup and closed at
shutdown.
This fixes possible crashes during the game if a font file is
removed/moved.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
physical and magical damages are divided by 2 when a character is on
defensive state.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
in the function `new_enemy_team()',
we used to loop through the enemies while the incrementer is less or
equal to the count. However, since there are `count' elements, we need
to stop the loop when the incrementer gets equal to `count'
the same bug is present in `Fjouer()' when checking if the player wins.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
the current character is generated randomly at the initialization of the
team.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
we can now pass any team and it will be generated.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
do not differenciate between the players and the enemies as well
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
There is no need to reopen the bitmap files each time we need a new
paladin or priest or whatever. Instead, just load them at startup and
them make them point to the good destination.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
since gcc produces warnings when default cases are not handled, make it
happy.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
h/j/k/l are mapped to behave like arrow keys so that the navigation is
easier in the menus.
F and A are respectiverly used to validate and cancel as well.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Accents in the content of certain files made them react as binary files.
Fixed by converting them to Unicode.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
it is safe to pass a null pointer to SDL_FreeSurface()
BTW: change the format of the files from dos to unix
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|