home · contact · privacy
plomrogue
11 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.

11 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.

11 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".

11 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.

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

11 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.

11 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.

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

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

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

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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().

11 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().

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

11 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.

11 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.

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

11 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.

11 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().

11 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.

11 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.

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

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

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

11 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.

11 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/.

11 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.

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

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

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

11 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.

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

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

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

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

11 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.

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

11 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.

11 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.

11 years agoMinor style correction.
Christian Heller [Wed, 12 Jun 2013 23:48:02 +0000 (01:48 +0200)]
Minor style correction.

11 years agoUse yx_uint16 struct for WinMeta and Win struct size attributes.
Christian Heller [Wed, 12 Jun 2013 23:31:30 +0000 (01:31 +0200)]
Use yx_uint16 struct for WinMeta and Win struct size attributes.

11 years agoUse yx_uint16 struct for Win struct start coordinates.
Christian Heller [Wed, 12 Jun 2013 23:14:32 +0000 (01:14 +0200)]
Use yx_uint16 struct for Win struct start coordinates.

11 years agoRenamed yx type to more precisely reflect its data structure.
Christian Heller [Wed, 12 Jun 2013 23:07:56 +0000 (01:07 +0200)]
Renamed yx type to more precisely reflect its data structure.

11 years agoA yx struct is no longer needed to temporarily store calculated coordinates.
Christian Heller [Wed, 12 Jun 2013 23:03:36 +0000 (01:03 +0200)]
A yx struct is no longer needed to temporarily store calculated coordinates.

11 years agoUse a Win struct starty attribute too, instead of endlessly calling getbegy on curses...
Christian Heller [Wed, 12 Jun 2013 22:58:22 +0000 (00:58 +0200)]
Use a Win struct starty attribute too, instead of endlessly calling getbegy on curses win.

11 years agoUse new startx attribute of Win struct instead of getbegx on respective curses window.
Christian Heller [Wed, 12 Jun 2013 22:53:51 +0000 (00:53 +0200)]
Use new startx attribute of Win struct instead of getbegx on respective curses window.

11 years agoSlightly shortened window shifting code.
Christian Heller [Wed, 12 Jun 2013 22:50:15 +0000 (00:50 +0200)]
Slightly shortened window shifting code.

11 years agoAdded startx attribute to Win struct to allow for less pad refitting code.
Christian Heller [Wed, 12 Jun 2013 22:47:41 +0000 (00:47 +0200)]
Added startx attribute to Win struct to allow for less pad refitting code.

11 years agoMinor intendation correction.
Christian Heller [Mon, 10 Jun 2013 08:38:03 +0000 (10:38 +0200)]
Minor intendation correction.

11 years agoModularized windows.c subsystem by moving anything not supposed to be public into...
Christian Heller [Mon, 10 Jun 2013 08:33:03 +0000 (10:33 +0200)]
Modularized windows.c subsystem by moving anything not supposed to be public into the scopy of windows.c only.

11 years agoAbstract pad scrolling; windows.c only checks for validity of new pad offset, doesn...
Christian Heller [Mon, 10 Jun 2013 07:46:28 +0000 (09:46 +0200)]
Abstract pad scrolling; windows.c only checks for validity of new pad offset, doesn't generate the new offset itself.

11 years agoRemoved unneeded line.
Christian Heller [Mon, 10 Jun 2013 07:31:05 +0000 (09:31 +0200)]
Removed unneeded line.

11 years agoDon't call update_windows() unnecessarily just for resizing the pad.
Christian Heller [Mon, 10 Jun 2013 07:26:38 +0000 (09:26 +0200)]
Don't call update_windows() unnecessarily just for resizing the pad.

11 years agoFixed bug: Pad did not get shrunk with window suspension, leading to obsolete scrolla...
Christian Heller [Fri, 7 Jun 2013 22:45:04 +0000 (00:45 +0200)]
Fixed bug: Pad did not get shrunk with window suspension, leading to obsolete scrollable areas.

11 years agoCorrected what valgrind complains about.
Christian Heller [Fri, 7 Jun 2013 22:30:50 +0000 (00:30 +0200)]
Corrected what valgrind complains about.

11 years agoCorrected vertical scroll hint counting.
Christian Heller [Fri, 7 Jun 2013 22:04:32 +0000 (00:04 +0200)]
Corrected vertical scroll hint counting.

11 years agoMade vertical scroll hint more informative.
Christian Heller [Thu, 6 Jun 2013 10:56:37 +0000 (12:56 +0200)]
Made vertical scroll hint more informative.

11 years agoIgnore rightmost border column.
Christian Heller [Thu, 6 Jun 2013 10:33:13 +0000 (12:33 +0200)]
Ignore rightmost border column.

11 years agoRemoved uncommented line.
Christian Heller [Thu, 6 Jun 2013 10:31:51 +0000 (12:31 +0200)]
Removed uncommented line.

11 years agoAdded pad scrolling hints.
Christian Heller [Thu, 6 Jun 2013 10:31:18 +0000 (12:31 +0200)]
Added pad scrolling hints.

11 years agoOnly allow movement rightwards if pad is big enough.
Christian Heller [Thu, 6 Jun 2013 10:10:30 +0000 (12:10 +0200)]
Only allow movement rightwards if pad is big enough.

11 years agoKeybindings window now shows scrolling information.
Christian Heller [Thu, 6 Jun 2013 10:04:19 +0000 (12:04 +0200)]
Keybindings window now shows scrolling information.

11 years agoTo generate starting positions on passable terrain, a lot of code resctructuring...
Christian Heller [Thu, 6 Jun 2013 07:59:40 +0000 (09:59 +0200)]
To generate starting positions on passable terrain, a lot of code resctructuring was necessary, and minor improvements were added here and there in the course.

11 years agoCorrected parentheses.
Christian Heller [Thu, 6 Jun 2013 07:03:18 +0000 (09:03 +0200)]
Corrected parentheses.

11 years agoImproved map generation algorithm.
Christian Heller [Mon, 3 Jun 2013 19:28:05 +0000 (21:28 +0200)]
Improved map generation algorithm.

11 years ago-s takes optional argument: number of turn from which to start replay.
Christian Heller [Mon, 3 Jun 2013 17:58:57 +0000 (19:58 +0200)]
-s takes optional argument: number of turn from which to start replay.

11 years agoDon't abort replay on last turn.
Christian Heller [Mon, 3 Jun 2013 17:10:47 +0000 (19:10 +0200)]
Don't abort replay on last turn.

11 years agoUse more descriptive variable name.
Christian Heller [Mon, 3 Jun 2013 17:06:29 +0000 (19:06 +0200)]
Use more descriptive variable name.

11 years agoCorrected minor inconsistencies.
Christian Heller [Mon, 3 Jun 2013 17:02:51 +0000 (19:02 +0200)]
Corrected minor inconsistencies.

11 years agoAdded info on new recording system to README.
Christian Heller [Thu, 30 May 2013 00:02:51 +0000 (02:02 +0200)]
Added info on new recording system to README.

11 years agoAdded a gameplay recording system and restructured everything to make it fit in.
Christian Heller [Thu, 30 May 2013 00:00:08 +0000 (02:00 +0200)]
Added a gameplay recording system and restructured everything to make it fit in.

11 years agoStart with windows toggled on and put into a sensible starting configuration.
Christian Heller [Wed, 29 May 2013 22:39:20 +0000 (00:39 +0200)]
Start with windows toggled on and put into a sensible starting configuration.

11 years agoRestructured main() start. Start with empty log.
Christian Heller [Wed, 29 May 2013 22:27:04 +0000 (00:27 +0200)]
Restructured main() start. Start with empty log.

11 years agoCorrected comments.
Christian Heller [Wed, 29 May 2013 03:46:38 +0000 (05:46 +0200)]
Corrected comments.

11 years agoUpdated README to reflect last hours' changes.
Christian Heller [Wed, 29 May 2013 03:33:55 +0000 (05:33 +0200)]
Updated README to reflect last hours' changes.

11 years agoRenamed functions to reflect change from seed files system to game save files system.
Christian Heller [Wed, 29 May 2013 03:28:28 +0000 (05:28 +0200)]
Renamed functions to reflect change from seed files system to game save files system.

11 years agoWorking towards roguelike permadeath conventions: Saving happens automatically now...
Christian Heller [Wed, 29 May 2013 03:26:45 +0000 (05:26 +0200)]
Working towards roguelike permadeath conventions: Saving happens automatically now at each new turn.

11 years agoRe-seed rrand() with a new but predictable seed each new turn.
Christian Heller [Wed, 29 May 2013 03:17:14 +0000 (05:17 +0200)]
Re-seed rrand() with a new but predictable seed each new turn.

11 years agoReplaced seed file system with a game save file system.
Christian Heller [Wed, 29 May 2013 03:13:03 +0000 (05:13 +0200)]
Replaced seed file system with a game save file system.

11 years agoAs init_map() doesn't need the seed anymore, it's no longer a parameter.
Christian Heller [Wed, 29 May 2013 02:30:11 +0000 (04:30 +0200)]
As init_map() doesn't need the seed anymore, it's no longer a parameter.

11 years agoAlways load seed file if it exists. Don't provide a default one.
Christian Heller [Wed, 29 May 2013 02:28:29 +0000 (04:28 +0200)]
Always load seed file if it exists. Don't provide a default one.

11 years agoSeed rrand() at start of main() instead of inside init_map().
Christian Heller [Wed, 29 May 2013 01:56:41 +0000 (03:56 +0200)]
Seed rrand() at start of main() instead of inside init_map().

11 years agoRemoved unused variable start value.
Christian Heller [Wed, 29 May 2013 01:51:40 +0000 (03:51 +0200)]
Removed unused variable start value.