Skip to content
Snippets Groups Projects
  1. Sep 01, 2010
    • dg's avatar
      * the Game:tick() method must check for savefile_pipe.saving and return true... · c4b84432
      dg authored
       * the Game:tick() method must check for savefile_pipe.saving and return true if it's true (otherwise the save will not continue in the background). Check the example module tick()
      
      
      git-svn-id: http://svn.net-core.org/repos/t-engine4@1122 51575b47-30f0-44d4-a5cc-537603b46e54
      c4b84432
    • dg's avatar
      fix · 26eec1a4
      dg authored
      git-svn-id: http://svn.net-core.org/repos/t-engine4@1121 51575b47-30f0-44d4-a5cc-537603b46e54
      26eec1a4
    • dg's avatar
      * In your PlayerDisplay you can add a line like that: · 9914b2ff
      dg authored
      	if savefile_pipe.saving then h = h + self.font_h self.surface:drawColorStringBlended(self.font, "#YELLOW#Saving...", 0, h, 255, 255, 255) h = h + self.font_h end
         To make a graphical display of the background saving thread.
      Quitting while a save is going one will obviously still wait until it is finished
      
      
      git-svn-id: http://svn.net-core.org/repos/t-engine4@1120 51575b47-30f0-44d4-a5cc-537603b46e54
      9914b2ff
    • dg's avatar
      New :cloneFull() method on all objects, this makes a perfect clone of the... · cde38fd2
      dg authored
      New :cloneFull() method on all objects, this makes a perfect clone of the given object and any subjects recursively without creting duplicates of subobjects. This is nearly instantaneous and thus could be used to create time travel spells and other neat things.
      Saves can now be made in the background while continuing to play the game. This obviously speeds ups considerably the gameplay since saves now "feel" instant.
      *WARNING* Module makers: I had to change how savefiles work, there is a few changes needed in your modules for it to work.
       * In Game.lua: change the Savefile code in saveGame() to be just a call to savefile_pipe:push(game.save_name, "game", game)
       * In dialogs.Death too
       * Take a look at either the example module or ToME to see how it works exactly, it's really easy to convert
      
      
      git-svn-id: http://svn.net-core.org/repos/t-engine4@1119 51575b47-30f0-44d4-a5cc-537603b46e54
      cde38fd2
  2. Aug 31, 2010
  3. Aug 30, 2010
  4. Aug 29, 2010
  5. Aug 28, 2010
  6. Aug 27, 2010
Loading