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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

10 years agoChanged world geometry and repaired a var type incompatibility bug.
Christian Heller [Wed, 29 May 2013 01:48:38 +0000 (03:48 +0200)]
Changed world geometry and repaired a var type incompatibility bug.

10 years agoDon't hardcode size of unsigned chars.
Christian Heller [Wed, 29 May 2013 01:33:30 +0000 (03:33 +0200)]
Don't hardcode size of unsigned chars.

10 years agoUpdated README to reflect current game status.
Christian Heller [Tue, 28 May 2013 03:46:24 +0000 (05:46 +0200)]
Updated README to reflect current game status.

10 years agoDon't save and load maps, save and load seeds of maps. Load via command line option.
Christian Heller [Tue, 28 May 2013 03:43:14 +0000 (05:43 +0200)]
Don't save and load maps, save and load seeds of maps. Load via command line option.

10 years agoDon't use variables for what's not variable.
Christian Heller [Sun, 26 May 2013 03:59:35 +0000 (05:59 +0200)]
Don't use variables for what's not variable.

10 years agoMoved seed initialization into rrand().
Christian Heller [Sun, 26 May 2013 03:31:44 +0000 (05:31 +0200)]
Moved seed initialization into rrand().

10 years agoUse own pseudo-random number generator to ensure portable predictability.
Christian Heller [Sun, 26 May 2013 02:40:24 +0000 (04:40 +0200)]
Use own pseudo-random number generator to ensure portable predictability.

10 years agoAdded experimental map loading / saving.
Christian Heller [Sat, 25 May 2013 23:55:18 +0000 (01:55 +0200)]
Added experimental map loading / saving.

10 years agoUse stdint.h typedefs for ints.
Christian Heller [Sat, 25 May 2013 00:31:07 +0000 (02:31 +0200)]
Use stdint.h typedefs for ints.

10 years agoRemoved accidentally committed object file.
Christian Heller [Fri, 24 May 2013 22:21:29 +0000 (00:21 +0200)]
Removed accidentally committed object file.

10 years agoMoved keybindings manipulation stuff into its own library.
Christian Heller [Thu, 23 May 2013 10:04:49 +0000 (12:04 +0200)]
Moved keybindings manipulation stuff into its own library.

10 years agoMoved draw_*_win() into its own library. Removed some unneeded libray includes.
Christian Heller [Thu, 23 May 2013 09:34:53 +0000 (11:34 +0200)]
Moved draw_*_win() into its own library. Removed some unneeded libray includes.

10 years agoRenamed functions for greater stylistic consistency.
Christian Heller [Thu, 23 May 2013 09:13:18 +0000 (11:13 +0200)]
Renamed functions for greater stylistic consistency.

10 years agoMinor code restyling.
Christian Heller [Thu, 23 May 2013 09:04:33 +0000 (11:04 +0200)]
Minor code restyling.

10 years agoinit_window() now initializes Win.data and Win.draw, too
Christian Heller [Thu, 23 May 2013 09:03:32 +0000 (11:03 +0200)]
init_window() now initializes Win.data and Win.draw, too

11 years agoRenamed shift_window() to shift_active_window() for more precise description and...
Christian Heller [Fri, 17 May 2013 00:59:04 +0000 (02:59 +0200)]
Renamed shift_window() to shift_active_window() for more precise description and consistency with names of comparable functions.

11 years agoRestructured window resizing. windows.c now only contains a general resize with width...
Christian Heller [Fri, 17 May 2013 00:57:00 +0000 (02:57 +0200)]
Restructured window resizing. windows.c now only contains a general resize with width/height values, while growing/shrinking by 1 is handled inside roguelike.c

11 years agoRemoved reference to unused library.
Christian Heller [Fri, 17 May 2013 00:39:19 +0000 (02:39 +0200)]
Removed reference to unused library.

11 years agoinit_win_meta() now defaults to knowledge of no window being active.
Christian Heller [Fri, 17 May 2013 00:37:51 +0000 (02:37 +0200)]
init_win_meta() now defaults to knowledge of no window being active.

11 years agoresize_window() now does its own check for existence of active window.
Christian Heller [Fri, 17 May 2013 00:36:59 +0000 (02:36 +0200)]
resize_window() now does its own check for existence of active window.

11 years agoScrolling pad now also has its own function with its own sanity checks.
Christian Heller [Fri, 17 May 2013 00:33:18 +0000 (02:33 +0200)]
Scrolling pad now also has its own function with its own sanity checks.

11 years agoMoved map scrolling into its own function with its own sanity checks.
Christian Heller [Fri, 17 May 2013 00:24:36 +0000 (02:24 +0200)]
Moved map scrolling into its own function with its own sanity checks.

11 years agoMoved check for existence of active window into shift_window().
Christian Heller [Fri, 17 May 2013 00:14:28 +0000 (02:14 +0200)]
Moved check for existence of active window into shift_window().

11 years agoMoved check for existence of active window inside cycle_active_window().
Christian Heller [Fri, 17 May 2013 00:11:43 +0000 (02:11 +0200)]
Moved check for existence of active window inside cycle_active_window().

11 years agoRenaming for code-stylistic consistency.
Christian Heller [Fri, 17 May 2013 00:07:46 +0000 (02:07 +0200)]
Renaming for code-stylistic consistency.

11 years agoMoved into own function moving up/down in keybindings window selection and test for...
Christian Heller [Fri, 17 May 2013 00:06:12 +0000 (02:06 +0200)]
Moved into own function moving up/down in keybindings window selection and test for its legality.

11 years agoMoved key mod process into its own function for the reason defined in the previous...
Christian Heller [Thu, 16 May 2013 23:58:15 +0000 (01:58 +0200)]
Moved key mod process into its own function for the reason defined in the previous commit message.

11 years agoStarting to move all multi-line actions in key command loop into their own functions...
Christian Heller [Thu, 16 May 2013 23:48:07 +0000 (01:48 +0200)]
Starting to move all multi-line actions in key command loop into their own functions. Starting with wait action.

11 years agoThe monster moves. Contact between monster and player entails hitting each other.
Christian Heller [Thu, 16 May 2013 01:41:20 +0000 (03:41 +0200)]
The monster moves. Contact between monster and player entails hitting each other.

11 years agoAdded monster. Doesn't do much; only blocks the way so far.
Christian Heller [Thu, 16 May 2013 00:49:18 +0000 (02:49 +0200)]
Added monster. Doesn't do much; only blocks the way so far.

11 years agoMap is now somewhat randomized.
Christian Heller [Thu, 16 May 2013 00:30:12 +0000 (02:30 +0200)]
Map is now somewhat randomized.

11 years agoCorrected mixed up coordinates.
Christian Heller [Thu, 16 May 2013 00:29:01 +0000 (02:29 +0200)]
Corrected mixed up coordinates.

11 years agoForgot to check for success of current move in comparison with previous one.
Christian Heller [Tue, 14 May 2013 03:17:12 +0000 (05:17 +0200)]
Forgot to check for success of current move in comparison with previous one.

11 years agoFor further steps into the same direction, only add "." to the last message.
Christian Heller [Tue, 14 May 2013 02:56:52 +0000 (04:56 +0200)]
For further steps into the same direction, only add "." to the last message.

11 years agoPut check on player's ability of moving on a square into own function. Checking for...
Christian Heller [Tue, 14 May 2013 02:47:00 +0000 (04:47 +0200)]
Put check on player's ability of moving on a square into own function. Checking for terrain types too.

11 years agoMoved player moving logic into its own function and added log message about inability...
Christian Heller [Tue, 14 May 2013 02:14:48 +0000 (04:14 +0200)]
Moved player moving logic into its own function and added log message about inability to move.

11 years agoMinor code restyling.
Christian Heller [Tue, 14 May 2013 01:26:41 +0000 (03:26 +0200)]
Minor code restyling.

11 years agoUse pointers instead of putting the whole struct on the stack.
Christian Heller [Sun, 12 May 2013 22:00:27 +0000 (00:00 +0200)]
Use pointers instead of putting the whole struct on the stack.

11 years agoRestyling of roguelike.c, and added prototypes for functions.
Christian Heller [Sun, 12 May 2013 21:55:49 +0000 (23:55 +0200)]
Restyling of roguelike.c, and added prototypes for functions.

11 years agoRestructured map / player data, linked them into world struct.
Christian Heller [Sun, 12 May 2013 21:38:48 +0000 (23:38 +0200)]
Restructured map / player data, linked them into world struct.

11 years agoMinor code restyling.
Christian Heller [Sun, 12 May 2013 21:26:21 +0000 (23:26 +0200)]
Minor code restyling.

11 years agoMinor code restyling. Important: Renamed win->curses_win to win->curses.
Christian Heller [Sun, 12 May 2013 21:24:09 +0000 (23:24 +0200)]
Minor code restyling. Important: Renamed win->curses_win to win->curses.

11 years agoAdd windows vertically before adding them horizontally even inside of columns.
Christian Heller [Sun, 12 May 2013 21:14:57 +0000 (23:14 +0200)]
Add windows vertically before adding them horizontally even inside of columns.

11 years agoSimplified keybindings initialization, using stdlib functions, unusing math functions.
Christian Heller [Sat, 11 May 2013 09:35:08 +0000 (11:35 +0200)]
Simplified keybindings initialization, using stdlib functions, unusing math functions.

11 years agoMade if-else-order more clear.
Christian Heller [Sat, 11 May 2013 08:24:25 +0000 (10:24 +0200)]
Made if-else-order more clear.

11 years agoRemoved line that was already commented out and is no longer needed.
Christian Heller [Sat, 11 May 2013 08:10:33 +0000 (10:10 +0200)]
Removed line that was already commented out and is no longer needed.

11 years agoLog is now saved in world struct, not in win_log.
Christian Heller [Sat, 11 May 2013 08:09:02 +0000 (10:09 +0200)]
Log is now saved in world struct, not in win_log.

11 years agoTurn is now part of world struct, instead of being saved in win_info.data
Christian Heller [Fri, 10 May 2013 23:43:18 +0000 (01:43 +0200)]
Turn is now part of world struct, instead of being saved in win_info.data

11 years agoList dependencies.
Christian Heller [Thu, 2 May 2013 14:29:36 +0000 (16:29 +0200)]
List dependencies.

11 years agoForgot to add wait command.
Christian Heller [Thu, 2 May 2013 14:27:04 +0000 (16:27 +0200)]
Forgot to add wait command.

11 years agoMore informative README.
Christian Heller [Thu, 2 May 2013 14:25:39 +0000 (16:25 +0200)]
More informative README.

11 years agoCleaning up at the end to eliminate memory leaks detected by valgrind.
Christian Heller [Thu, 2 May 2013 03:32:06 +0000 (05:32 +0200)]
Cleaning up at the end to eliminate memory leaks detected by valgrind.

11 years agoRepaired buggy window title display.
Christian Heller [Thu, 2 May 2013 02:46:22 +0000 (04:46 +0200)]
Repaired buggy window title display.

11 years agoTest for minimal window size no longer necessary since windows cannot shrink so far.
Christian Heller [Thu, 2 May 2013 02:13:15 +0000 (04:13 +0200)]
Test for minimal window size no longer necessary since windows cannot shrink so far.

11 years agoReplaced obsolete end-of-list detection with new one.
Christian Heller [Thu, 2 May 2013 00:03:41 +0000 (02:03 +0200)]
Replaced obsolete end-of-list detection with new one.

11 years agoForgot to use getmaxy/getmaxx on screen, too.
Christian Heller [Wed, 1 May 2013 23:42:48 +0000 (01:42 +0200)]
Forgot to use getmaxy/getmaxx on screen, too.

11 years agoCorrected broken if.
Christian Heller [Wed, 1 May 2013 23:38:59 +0000 (01:38 +0200)]
Corrected broken if.

11 years agoReplaced all references to _begy/_begx/_maxy/_maxx to getbegy/getbegx/getmaxy/getmaxx...
Christian Heller [Wed, 1 May 2013 23:37:30 +0000 (01:37 +0200)]
Replaced all references to _begy/_begx/_maxy/_maxx to getbegy/getbegx/getmaxy/getmaxx calls.

11 years agoForgot to allocate one byte for string-terminating null byte.
Christian Heller [Wed, 1 May 2013 02:52:32 +0000 (04:52 +0200)]
Forgot to allocate one byte for string-terminating null byte.

11 years agoEnforced -Wall on compiling, corrected some minor stuff diagnosed by it.
Christian Heller [Wed, 1 May 2013 02:18:02 +0000 (04:18 +0200)]
Enforced -Wall on compiling, corrected some minor stuff diagnosed by it.

11 years agoRemoved redundant whitespace fillings; plus some minor cosmetic changes.
Christian Heller [Wed, 1 May 2013 01:32:35 +0000 (03:32 +0200)]
Removed redundant whitespace fillings; plus some minor cosmetic changes.

11 years agoMinor keybinding renamings.
Christian Heller [Wed, 1 May 2013 00:48:42 +0000 (02:48 +0200)]
Minor keybinding renamings.

11 years agoRestructured windows into pads that are horizontally scrollable. Also cleaned up...
Christian Heller [Wed, 1 May 2013 00:47:02 +0000 (02:47 +0200)]
Restructured windows into pads that are horizontally scrollable. Also cleaned up order of clear/erase/refresh calls.

11 years agoSimplified clearing of terminal by using clear() instead of homebrew code.
Christian Heller [Tue, 30 Apr 2013 03:09:21 +0000 (05:09 +0200)]
Simplified clearing of terminal by using clear() instead of homebrew code.

11 years agoMade comment more precise.
Christian Heller [Tue, 30 Apr 2013 02:56:44 +0000 (04:56 +0200)]
Made comment more precise.

11 years agoChanged window border corner symbol.
Christian Heller [Tue, 30 Apr 2013 02:50:36 +0000 (04:50 +0200)]
Changed window border corner symbol.

11 years agoRemoved unused Win properties.
Christian Heller [Tue, 30 Apr 2013 02:45:46 +0000 (04:45 +0200)]
Removed unused Win properties.

11 years agoRely on ncurses windows' _begyx properties instead of duplicating them in Win structs.
Christian Heller [Tue, 30 Apr 2013 02:44:40 +0000 (04:44 +0200)]
Rely on ncurses windows' _begyx properties instead of duplicating them in Win structs.

11 years agoCompletely rebuilt how window borders are realized. Are now drawn in top window,...
Christian Heller [Tue, 30 Apr 2013 02:15:49 +0000 (04:15 +0200)]
Completely rebuilt how window borders are realized. Are now drawn in top window, whereas individual "Win" windows are drawn in the spaces between the top windows' border drawings.

11 years agoIn keybindings editing window, print out key names instead of numerical key codes.
Christian Heller [Mon, 29 Apr 2013 18:56:24 +0000 (20:56 +0200)]
In keybindings editing window, print out key names instead of numerical key codes.

11 years agoRestructured order of draw_all_windows() calls, heavily reduced number of superfluous...
Christian Heller [Sun, 28 Apr 2013 10:17:00 +0000 (12:17 +0200)]
Restructured order of draw_all_windows() calls, heavily reduced number of superfluous calls of it.

11 years agoCorrected mixed up player movement key defaults.
Christian Heller [Sun, 28 Apr 2013 04:39:00 +0000 (06:39 +0200)]
Corrected mixed up player movement key defaults.

11 years agoMinor spelling correction.
Christian Heller [Sun, 28 Apr 2013 04:27:39 +0000 (06:27 +0200)]
Minor spelling correction.

11 years agoKeybindings can now be written back to keybindings file. Also made some memory alloca...
Christian Heller [Sun, 28 Apr 2013 04:03:11 +0000 (06:03 +0200)]
Keybindings can now be written back to keybindings file. Also made some memory allocations more flexible.

11 years agoHumble beginnings of customizable keybindings. So far only reading from, not writing...
Christian Heller [Sat, 27 Apr 2013 03:23:58 +0000 (05:23 +0200)]
Humble beginnings of customizable keybindings. So far only reading from, not writing to file. Window only shows key number codes, not key names.

11 years agoRemoved redundant call to update_windows().
Christian Heller [Tue, 23 Apr 2013 03:49:39 +0000 (05:49 +0200)]
Removed redundant call to update_windows().

11 years agoRe-wrote shift_window() and place_window().
Christian Heller [Tue, 23 Apr 2013 03:43:26 +0000 (05:43 +0200)]
Re-wrote shift_window() and place_window().

11 years agodraw_all_windows() only starts drawing cycle if any window is actually visible.
Christian Heller [Mon, 22 Apr 2013 16:53:42 +0000 (18:53 +0200)]
draw_all_windows() only starts drawing cycle if any window is actually visible.

11 years agoMinor comment expansion.
Christian Heller [Mon, 22 Apr 2013 16:31:16 +0000 (18:31 +0200)]
Minor comment expansion.

11 years agoUploading current state of work.
Christian Heller [Mon, 22 Apr 2013 02:11:51 +0000 (04:11 +0200)]
Uploading current state of work.

11 years agoDon't like the md ending.
Christian Heller [Mon, 22 Apr 2013 02:10:36 +0000 (04:10 +0200)]
Don't like the md ending.

11 years agoInitial commit
Christian Heller [Mon, 22 Apr 2013 02:10:59 +0000 (19:10 -0700)]
Initial commit