home · contact · privacy
plomrogue
10 years agoCorrected README description of enemies' hitpoints.
Christian Heller [Fri, 26 Jul 2013 04:43:34 +0000 (06:43 +0200)]
Corrected README description of enemies' hitpoints.

10 years agoCorrected map generation algorithm description.
Christian Heller [Thu, 25 Jul 2013 23:01:15 +0000 (01:01 +0200)]
Corrected map generation algorithm description.

10 years agoImproved comment precision.
Christian Heller [Thu, 25 Jul 2013 22:01:45 +0000 (00:01 +0200)]
Improved comment precision.

10 years agoApplied new style and documentation requirements to map library; also some minor...
Christian Heller [Thu, 25 Jul 2013 21:58:48 +0000 (23:58 +0200)]
Applied new style and documentation requirements to map library; also some minor code fixes.

10 years agoMinor stylistic consistency correction.
Christian Heller [Thu, 25 Jul 2013 20:36:19 +0000 (22:36 +0200)]
Minor stylistic consistency correction.

10 years agoEnforced new indentation rules.
Christian Heller [Thu, 25 Jul 2013 20:33:47 +0000 (22:33 +0200)]
Enforced new indentation rules.

10 years agoEnforced three empty lines between functions / large meaningful blocks.
Christian Heller [Thu, 25 Jul 2013 20:29:55 +0000 (22:29 +0200)]
Enforced three empty lines between functions / large meaningful blocks.

10 years agoEnforced width limit on a comment.
Christian Heller [Thu, 25 Jul 2013 20:27:44 +0000 (22:27 +0200)]
Enforced width limit on a comment.

10 years agoApplied new style and documentation rules to the "windows" library, also performing...
Christian Heller [Thu, 25 Jul 2013 20:19:49 +0000 (22:19 +0200)]
Applied new style and documentation rules to the "windows" library, also performing some extremly minor code fixing / re-structuring on the way.

10 years agoMore documentation and re-styling of code.
Christian Heller [Tue, 23 Jul 2013 03:37:21 +0000 (05:37 +0200)]
More documentation and re-styling of code.

10 years agoMore documentation and re-styling of code according to new rules.
Christian Heller [Tue, 23 Jul 2013 03:04:27 +0000 (05:04 +0200)]
More documentation and re-styling of code according to new rules.

10 years agoMore code re-styling and documentation.
Christian Heller [Mon, 22 Jul 2013 14:00:53 +0000 (16:00 +0200)]
More code re-styling and documentation.

10 years agoMinor code-stylistic adjustment.
Christian Heller [Sun, 21 Jul 2013 04:02:46 +0000 (06:02 +0200)]
Minor code-stylistic adjustment.

10 years agoRemoved unneeded AND operation.
Christian Heller [Sun, 21 Jul 2013 04:00:32 +0000 (06:00 +0200)]
Removed unneeded AND operation.

10 years agoMinor stylistic alignment adjustment.
Christian Heller [Sun, 21 Jul 2013 03:57:29 +0000 (05:57 +0200)]
Minor stylistic alignment adjustment.

10 years agoUse bit-shifting instead of bizarre arithmetics on UCHAR_MAX for readwrite library...
Christian Heller [Sun, 21 Jul 2013 03:54:42 +0000 (05:54 +0200)]
Use bit-shifting instead of bizarre arithmetics on UCHAR_MAX for readwrite library. Also apply new code style idea.

10 years agoForced new documentation style on readwrite library.
Christian Heller [Sun, 21 Jul 2013 01:42:49 +0000 (03:42 +0200)]
Forced new documentation style on readwrite library.

10 years agoMoved game exiting into its own function.
Christian Heller [Sat, 20 Jul 2013 03:54:50 +0000 (05:54 +0200)]
Moved game exiting into its own function.

10 years agoUse standard-conformant exit.
Christian Heller [Sat, 20 Jul 2013 03:43:33 +0000 (05:43 +0200)]
Use standard-conformant exit.

10 years agoUse enum instead of define for directions in yx_uint16 library.
Christian Heller [Sat, 20 Jul 2013 03:20:57 +0000 (05:20 +0200)]
Use enum instead of define for directions in yx_uint16 library.

10 years agoMore intuitive keybindings.
Christian Heller [Fri, 19 Jul 2013 23:48:30 +0000 (01:48 +0200)]
More intuitive keybindings.

10 years agoReplaced dummy function by just passing NULL and checking for it.
Christian Heller [Fri, 19 Jul 2013 23:39:05 +0000 (01:39 +0200)]
Replaced dummy function by just passing NULL and checking for it.

10 years agoMoved initialization of map object definitions from defs file into map_objects library.
Christian Heller [Fri, 19 Jul 2013 23:35:14 +0000 (01:35 +0200)]
Moved initialization of map object definitions from defs file into map_objects library.

10 years agoRead monster / item definitions from file "defs". File-reading repeats some code...
Christian Heller [Fri, 19 Jul 2013 23:21:56 +0000 (01:21 +0200)]
Read monster / item definitions from file "defs". File-reading repeats some code from keybindings.c/init_keybindings() so refactored that into misc.c/textfile_sizes.c.

10 years agoHad forgotten to actually add the new library.
Christian Heller [Thu, 18 Jul 2013 02:12:29 +0000 (04:12 +0200)]
Had forgotten to actually add the new library.

10 years agoEmptied map_objects library of stuff that fits better elsewhere, like a new map_objec...
Christian Heller [Thu, 18 Jul 2013 02:11:42 +0000 (04:11 +0200)]
Emptied map_objects library of stuff that fits better elsewhere, like a new map_object_actions library.

10 years agoUpdated README to reflect recent changes.
Christian Heller [Thu, 18 Jul 2013 01:46:06 +0000 (03:46 +0200)]
Updated README to reflect recent changes.

10 years agoSupport different kinds of monsters and items defined in map object definition struct...
Christian Heller [Thu, 18 Jul 2013 01:44:23 +0000 (03:44 +0200)]
Support different kinds of monsters and items defined in map object definition structs. To support this, large parts of the map object system were rewritten.

10 years agoRenamed include guard constants to better reflect the respective library names.
Christian Heller [Wed, 10 Jul 2013 22:57:45 +0000 (00:57 +0200)]
Renamed include guard constants to better reflect the respective library names.

10 years agoRenamed "objects_on_map" library to "map_objects".
Christian Heller [Wed, 10 Jul 2013 22:56:32 +0000 (00:56 +0200)]
Renamed "objects_on_map" library to "map_objects".

10 years agoAdded some externs.
Christian Heller [Wed, 10 Jul 2013 22:46:58 +0000 (00:46 +0200)]
Added some externs.

10 years agoSplit roguelike.(c|h) into main.(c|h) and misc.(c|h).
Christian Heller [Wed, 10 Jul 2013 22:44:02 +0000 (00:44 +0200)]
Split roguelike.(c|h) into main.(c|h) and misc.(c|h).

10 years agoActually save player's hitpoints to savefile (instead of, bug, resetting them on...
Christian Heller [Wed, 10 Jul 2013 22:24:06 +0000 (00:24 +0200)]
Actually save player's hitpoints to savefile (instead of, bug, resetting them on each game load).

10 years agoAddendum to previous commit: Added files mentioned but forgotten.
Christian Heller [Wed, 10 Jul 2013 22:18:17 +0000 (00:18 +0200)]
Addendum to previous commit: Added files mentioned but forgotten.

10 years agoMoved map-specific functions into map.h / map.c library.
Christian Heller [Wed, 10 Jul 2013 22:17:39 +0000 (00:17 +0200)]
Moved map-specific functions into map.h / map.c library.

10 years agoMade draw_info_win() use new center_offset () for scrolling.
Christian Heller [Wed, 10 Jul 2013 11:41:42 +0000 (13:41 +0200)]
Made draw_info_win() use new center_offset () for scrolling.

10 years agoFixed map centering bug, refactored center offseting.
Christian Heller [Wed, 10 Jul 2013 11:32:06 +0000 (13:32 +0200)]
Fixed map centering bug, refactored center offseting.

10 years agoAdded command to focus map on player.
Christian Heller [Wed, 10 Jul 2013 03:09:01 +0000 (05:09 +0200)]
Added command to focus map on player.

10 years agoMap scrolling is only possible within map size now.
Christian Heller [Wed, 10 Jul 2013 02:32:41 +0000 (04:32 +0200)]
Map scrolling is only possible within map size now.

10 years agoAdded hitpoints and death for player.
Christian Heller [Wed, 10 Jul 2013 02:16:43 +0000 (04:16 +0200)]
Added hitpoints and death for player.

10 years agoSome minor refactoring.
Christian Heller [Tue, 9 Jul 2013 02:57:58 +0000 (04:57 +0200)]
Some minor refactoring.

10 years agoMoved building/reading/writing of map objects into obejcts_on_map library. Fixed...
Christian Heller [Tue, 9 Jul 2013 02:32:53 +0000 (04:32 +0200)]
Moved building/reading/writing of map objects into obejcts_on_map library. Fixed a bug whereby non-existence of an object type would not be properly marked by a zero value to the world.[object] element.

10 years agoImproved map generation algorithm.
Christian Heller [Tue, 9 Jul 2013 00:39:02 +0000 (02:39 +0200)]
Improved map generation algorithm.

10 years agoRestructured chained objects on map via new ChainMapObject struct, allowing for great...
Christian Heller [Thu, 4 Jul 2013 23:26:55 +0000 (01:26 +0200)]
Restructured chained objects on map via new ChainMapObject struct, allowing for great refactoring of / duplication elimination on lots of code.

10 years agoEnemies have hitpoints (5 at start), disappear when those reach 0.
Christian Heller [Wed, 3 Jul 2013 03:10:02 +0000 (05:10 +0200)]
Enemies have hitpoints (5 at start), disappear when those reach 0.

10 years agoGenerate name chars for items, monsters randomly, save them in savefile.
Christian Heller [Wed, 3 Jul 2013 02:39:32 +0000 (04:39 +0200)]
Generate name chars for items, monsters randomly, save them in savefile.

10 years agoReworked "actors" library as more inclusive "objects_on_map".
Christian Heller [Wed, 3 Jul 2013 01:47:43 +0000 (03:47 +0200)]
Reworked "actors" library as more inclusive "objects_on_map".

10 years agoRefactored finding of random passable position into its own function.
Christian Heller [Wed, 3 Jul 2013 01:42:05 +0000 (03:42 +0200)]
Refactored finding of random passable position into its own function.

10 years agoUpdated README.
Christian Heller [Tue, 2 Jul 2013 03:24:07 +0000 (05:24 +0200)]
Updated README.

10 years agoNumber of items and enemies is now random. To facilitate flexible numbers, the savefi...
Christian Heller [Tue, 2 Jul 2013 03:22:38 +0000 (05:22 +0200)]
Number of items and enemies is now random. To facilitate flexible numbers, the savefile system was restructured.

10 years agoUpdated README to reflect change in number of enemies.
Christian Heller [Tue, 2 Jul 2013 01:43:13 +0000 (03:43 +0200)]
Updated README to reflect change in number of enemies.

10 years agoGrew number of monsters / items.
Christian Heller [Tue, 2 Jul 2013 01:42:42 +0000 (03:42 +0200)]
Grew number of monsters / items.

10 years agoRefactored / made more flexible: item/monster initialization.
Christian Heller [Tue, 2 Jul 2013 01:40:06 +0000 (03:40 +0200)]
Refactored / made more flexible: item/monster initialization.

10 years agoRefactored code for loading/saving positions of monsters and items, is a bit more...
Christian Heller [Tue, 2 Jul 2013 00:51:10 +0000 (02:51 +0200)]
Refactored code for loading/saving positions of monsters and items, is a bit more flexible now.

10 years agoStarted implementing items. They don't do much but lie around on the map.
Christian Heller [Tue, 2 Jul 2013 00:32:33 +0000 (02:32 +0200)]
Started implementing items. They don't do much but lie around on the map.

10 years agoIf pad ends leftwards of current right screen border, allow pad scrolling to the...
Christian Heller [Fri, 28 Jun 2013 20:43:32 +0000 (22:43 +0200)]
If pad ends leftwards of current right screen border, allow pad scrolling to the left, but not to the right.

10 years agoRe-grouped functions in readwrite library for readability reasons.
Christian Heller [Fri, 28 Jun 2013 00:33:19 +0000 (02:33 +0200)]
Re-grouped functions in readwrite library for readability reasons.

10 years agoMade all function declarations in header files extern, for stylistic consistency...
Christian Heller [Fri, 28 Jun 2013 00:29:20 +0000 (02:29 +0200)]
Made all function declarations in header files extern, for stylistic consistency only.

10 years agoUpdated the README a bit.
Christian Heller [Fri, 28 Jun 2013 00:22:05 +0000 (02:22 +0200)]
Updated the README a bit.

10 years agoRewrote update_log () for a comeback of the message repition compression feature...
Christian Heller [Fri, 28 Jun 2013 00:12:23 +0000 (02:12 +0200)]
Rewrote update_log () for a comeback of the message repition compression feature; this time less buggy.

10 years agoRemoved library dependencies made obsolete by last commit.
Christian Heller [Thu, 27 Jun 2013 23:07:02 +0000 (01:07 +0200)]
Removed library dependencies made obsolete by last commit.

10 years agoMake is_passable() use yx_uint16 for coordinates instead of two ints.
Christian Heller [Thu, 27 Jun 2013 23:06:03 +0000 (01:06 +0200)]
Make is_passable() use yx_uint16 for coordinates instead of two ints.

10 years agoMake resize_active_win use yx_uint16 for coordinates instead of two separate ints.
Christian Heller [Thu, 27 Jun 2013 23:01:19 +0000 (01:01 +0200)]
Make resize_active_win use yx_uint16 for coordinates instead of two separate ints.

10 years agoSorted out library dependencies / includes. Include every header file needed by each...
Christian Heller [Thu, 27 Jun 2013 01:07:53 +0000 (03:07 +0200)]
Sorted out library dependencies / includes. Include every header file needed by each file individually, don't assume any inherited includes. Use forward declarations where possible.

10 years agoMoved lots of stuff into new library actors.
Christian Heller [Wed, 26 Jun 2013 23:31:33 +0000 (01:31 +0200)]
Moved lots of stuff into new library actors.

10 years agoMoved more stuff into yx_uint16 library.
Christian Heller [Wed, 26 Jun 2013 23:10:46 +0000 (01:10 +0200)]
Moved more stuff into yx_uint16 library.

10 years agoSimplified internal structure of move_monster().
Christian Heller [Wed, 26 Jun 2013 23:07:03 +0000 (01:07 +0200)]
Simplified internal structure of move_monster().

10 years agoSimplified internal structure of move_player().
Christian Heller [Wed, 26 Jun 2013 23:00:42 +0000 (01:00 +0200)]
Simplified internal structure of move_player().

10 years agoRemoved buggy log text compression.
Christian Heller [Wed, 26 Jun 2013 22:52:31 +0000 (00:52 +0200)]
Removed buggy log text compression.

10 years agoRefactored all "next turn" / "record action" stuff into one short function.
Christian Heller [Wed, 26 Jun 2013 22:38:26 +0000 (00:38 +0200)]
Refactored all "next turn" / "record action" stuff into one short function.

10 years agoMoved line to make refactoring easier.
Christian Heller [Mon, 24 Jun 2013 14:37:43 +0000 (16:37 +0200)]
Moved line to make refactoring easier.

10 years agoRemoved redundant condition.
Christian Heller [Mon, 24 Jun 2013 14:35:44 +0000 (16:35 +0200)]
Removed redundant condition.

10 years agoRe-grouped functions in roguelike.c/roguelike.h into more meaningful collections.
Christian Heller [Mon, 24 Jun 2013 14:30:14 +0000 (16:30 +0200)]
Re-grouped functions in roguelike.c/roguelike.h into more meaningful collections.

10 years agoMonsters now clash with and hit each other; more elaborate algorithms moved into...
Christian Heller [Mon, 24 Jun 2013 14:22:44 +0000 (16:22 +0200)]
Monsters now clash with and hit each other; more elaborate algorithms moved into its own move_monster().

10 years agoMade Map struct use yx_uint16 for 2D coordinates/sizes.
Christian Heller [Sun, 23 Jun 2013 23:09:05 +0000 (01:09 +0200)]
Made Map struct use yx_uint16 for 2D coordinates/sizes.

10 years agoMake map_scroll() use new direction macros and slightly re-styled its code.
Christian Heller [Sun, 23 Jun 2013 22:57:07 +0000 (00:57 +0200)]
Make map_scroll() use new direction macros and slightly re-styled its code.

10 years agoAdded #include guards.
Christian Heller [Sun, 23 Jun 2013 22:51:49 +0000 (00:51 +0200)]
Added #include guards.

10 years agoMoved basic yx_uint16 handling into its own library.
Christian Heller [Sun, 23 Jun 2013 22:37:15 +0000 (00:37 +0200)]
Moved basic yx_uint16 handling into its own library.

10 years agoRefactored direction-decision part of movement of actors, and in the course expanded...
Christian Heller [Fri, 21 Jun 2013 01:24:02 +0000 (03:24 +0200)]
Refactored direction-decision part of movement of actors, and in the course expanded role of and functionality towards yx_uint16 coordinates.

10 years agoSome code grouping and commenting to explain program flow.
Christian Heller [Fri, 21 Jun 2013 00:17:15 +0000 (02:17 +0200)]
Some code grouping and commenting to explain program flow.

10 years agoUse global variable uchar_s instead of UCHARSIZE macro.
Christian Heller [Thu, 20 Jun 2013 01:50:45 +0000 (03:50 +0200)]
Use global variable uchar_s instead of UCHARSIZE macro.

10 years agoUse preprocessor macro instead of constant variable for uchar size.
Christian Heller [Thu, 20 Jun 2013 01:39:37 +0000 (03:39 +0200)]
Use preprocessor macro instead of constant variable for uchar size.

10 years agoUpdated README on number of enemies.
Christian Heller [Thu, 20 Jun 2013 01:28:25 +0000 (03:28 +0200)]
Updated README on number of enemies.

10 years agoHave a number (currently: 3) of monsters, instead of only one. Lots of stuff hard...
Christian Heller [Thu, 20 Jun 2013 01:26:23 +0000 (03:26 +0200)]
Have a number (currently: 3) of monsters, instead of only one. Lots of stuff hard-coded that should be more flexible, but it's a start.

10 years agoRegrouped functions in roguelike.c.
Christian Heller [Thu, 20 Jun 2013 00:17:30 +0000 (02:17 +0200)]
Regrouped functions in roguelike.c.

10 years agoAdded descriptive comments to Makefile voodoo.
Christian Heller [Wed, 19 Jun 2013 03:53:49 +0000 (05:53 +0200)]
Added descriptive comments to Makefile voodoo.

10 years agoRestructured source tree. Code moves to src/, object files to build/.
Christian Heller [Wed, 19 Jun 2013 03:22:21 +0000 (05:22 +0200)]
Restructured source tree. Code moves to src/, object files to build/.

10 years agoMakefile now works on all .c files to generate its list of needed object files.
Christian Heller [Wed, 19 Jun 2013 03:08:08 +0000 (05:08 +0200)]
Makefile now works on all .c files to generate its list of needed object files.

10 years agoDeclare "clean" a phony target.
Christian Heller [Wed, 19 Jun 2013 02:56:47 +0000 (04:56 +0200)]
Declare "clean" a phony target.

10 years agoMade Makefile more maintainable.
Christian Heller [Wed, 19 Jun 2013 02:50:24 +0000 (04:50 +0200)]
Made Makefile more maintainable.

10 years agoRemove accidentally committed object file.
Christian Heller [Wed, 19 Jun 2013 01:52:18 +0000 (03:52 +0200)]
Remove accidentally committed object file.

10 years agoMoved low-level read/write-to-file functions into their own library.
Christian Heller [Wed, 19 Jun 2013 00:28:11 +0000 (02:28 +0200)]
Moved low-level read/write-to-file functions into their own library.

10 years agoMinor code re-styling.
Christian Heller [Sat, 15 Jun 2013 02:04:21 +0000 (04:04 +0200)]
Minor code re-styling.

10 years agoRemoved unused variable.
Christian Heller [Sat, 15 Jun 2013 01:22:06 +0000 (03:22 +0200)]
Removed unused variable.

10 years agoMore consistency in shortening names.
Christian Heller [Sat, 15 Jun 2013 01:21:22 +0000 (03:21 +0200)]
More consistency in shortening names.

10 years agoRemoved superfluous loop.
Christian Heller [Sat, 15 Jun 2013 01:05:41 +0000 (03:05 +0200)]
Removed superfluous loop.

10 years agoSome renamings to make names eat up less window space.
Christian Heller [Sat, 15 Jun 2013 01:01:02 +0000 (03:01 +0200)]
Some renamings to make names eat up less window space.

10 years agoMore descriptive comment.
Christian Heller [Sat, 15 Jun 2013 00:22:33 +0000 (02:22 +0200)]
More descriptive comment.

10 years agoUnite all scroll hint drawing functions into one.
Christian Heller [Sat, 15 Jun 2013 00:13:03 +0000 (02:13 +0200)]
Unite all scroll hint drawing functions into one.

10 years agoReorganized Win and WinMeta structs to use a common struct to organize curses window...
Christian Heller [Fri, 14 Jun 2013 23:15:08 +0000 (01:15 +0200)]
Reorganized Win and WinMeta structs to use a common struct to organize curses window and sizes.