1. 14 Jan, 2021 1 commit
  2. 13 Jan, 2021 2 commits
  3. 10 Jan, 2021 1 commit
  4. 02 Jan, 2021 4 commits
  5. 21 Dec, 2020 4 commits
    • Leo Prikler's avatar
      Prepare for 0.2.2 release. · 080f9ec8
      Leo Prikler authored
      080f9ec8
    • Leo Prikler's avatar
      Hide our magic tricks. · 5761d6fc
      Leo Prikler authored
      * tsukundere/game.scm (sdl-func, sdl-get-window-minimum-size)
      (sdl-set-window-minimum-size, sdl-set-window-resizable)
      (sdl-render-set-viewport, sdl-render-set-scale)
      (window-minimum-size, set-window-minimum-size!)
      (set-window-resizable!, render-set-scale, render-set-viewport): Move
      from here ...
      * tsukundere/game/magic.scm: ... to here.
      * Makefile.am (nobase_dist_guilesource_DATA): Adjust accordingly.
      5761d6fc
    • Leo Prikler's avatar
      Publicly export preferences. · 0e74ecf2
      Leo Prikler authored
      0e74ecf2
    • Leo Prikler's avatar
      Add preference documentation. · 3be402c3
      Leo Prikler authored
      * doc/tsukundere.texi (Preferences): New section.
      * tsukundere/preferences.scm (add-preference-hook!): Document it.
      3be402c3
  6. 13 Dec, 2020 2 commits
  7. 04 Dec, 2020 2 commits
    • Leo Prikler's avatar
      Update NEWS. · feb5b462
      Leo Prikler authored
      feb5b462
    • Leo Prikler's avatar
      Implement fullscreen? as a preference. · dc11c3bf
      Leo Prikler authored
      * tsukundere/preferences.scm (make-preference): Synchronize preference
      hook accessors for var and proc.
      (add-preference-hook!): New variable.
      * tsukundere/game.scm (*fullscreen?*): New variable.
      Add hook to set current window to fullscreen when it's changed.
      (key-press): Set fullscreen preference instead of toggling fullscreen
      directly.
      (run-game): Remove fullscreen? argument.
      Sanitize game name.
      Save game preferences upon exiting.
      * examples/events.scm: Clear game-name to disable saving.
      * examples/scaling-rects.scm: Make game-name super duper unique.
      Remove fullscreen? argument.
      dc11c3bf
  8. 03 Dec, 2020 1 commit
    • Leo Prikler's avatar
      Start implementing preferences (#6). · 0498dd95
      Leo Prikler authored
      * tsukundere/utils.scm (xdg-config-dir, tsukundere-config-dir)
      (tsukundere-config-file): New variables.
      * tsukundere/preferences.scm: New file.
      * Makefile.am (nobase_dist_guilesource_DATA): Add it here.
      * tsukundere/text.scm (*text-speed*): Implemented as preference.
      * tsukundere/game.scm (run-game): Load preferences on startup.
      0498dd95
  9. 02 Dec, 2020 1 commit
    • nixo's avatar
      Fix crash in input. · 3884a972
      nixo authored
      * tsukundere/script/utils.scm (input): Do not use negative index
      when pressing backspace on empty input.
      3884a972
  10. 01 Dec, 2020 8 commits
    • Leo Prikler's avatar
      Fixup aesthetics. · c78344bf
      Leo Prikler authored
      c78344bf
    • Leo Prikler's avatar
      Fixup f0107dbf. · 136dbf3c
      Leo Prikler authored
      Not the commit we deserve, but the one we need...
      136dbf3c
    • Leo Prikler's avatar
      Refactor scaling. · f0107dbf
      Leo Prikler authored
      * tsukundere/game.scm (sdl-get-window-minimum-size):
      (window-minimum-size): New auxiliary variables.
      (sdl-set-window-minimum-size, sdl-set-window-resizable): Fix return
      type.
      (set-window-minimum-size!, set-window-resizable!): Do not throw error.
      (render-set-scale): Simplify to 1D.
      (*window-fitter*): Removed variable.
      (fit-current-window!): New variable, replaces *window-fitter*.
      Also enforce size request.
      (run-game, event-handler): Adjust accordingly.
      f0107dbf
    • Leo Prikler's avatar
      Update README. · 1ac832a7
      Leo Prikler authored
      1ac832a7
    • Leo Prikler's avatar
      Do not document sdl-func. · 20b89179
      Leo Prikler authored
      20b89179
    • Leo Prikler's avatar
      Bump version. · e9cb1aa3
      Leo Prikler authored
      e9cb1aa3
    • Leo Prikler's avatar
      Fixup AUTHORS and ChangeLog. · eb7e6e62
      Leo Prikler authored
      eb7e6e62
    • Leo Prikler's avatar
      game: Implement scaling and fullscreen support. · efee7ff5
      Leo Prikler authored
      * tsukundere/game.scm (sdl-set-window-minimum-size)
      (sdl-set-window-resizable, sdl-render-set-viewport)
      (sdl-render-set-scale, set-window-resizable!)
      (set-window-minimum-size!, render-set-scale)
      (render-set-viewport): New auxiliary variables, to be upstreamed
      in Guile-SDL2 proper.
      (key-press): Toggle fullscreen when F11 is pressed.
      (window-fullscreen?, toggle-window-fullscreen!)
      (render/window-fitter, *window-fitter*): New variables.
      (event-handler): Trigger window fitter on resize events.
      (run-game): Add fullscreen? argument.
      Initialize window fitter.
      Implement full-screen toggling in terms of toggle-window-fullscreen!.
      Enable window manager scaling based on support for minimum size
      setting.
      Hide window until renderer is created.
      * examples/scaling-rects.scm: New file.
      efee7ff5
  11. 28 Oct, 2020 3 commits
  12. 19 Oct, 2020 1 commit
  13. 18 Oct, 2020 8 commits
  14. 17 Oct, 2020 1 commit
  15. 16 Oct, 2020 1 commit