- 14 Jan, 2021 1 commit
-
-
Leo Prikler authored
-
- 13 Jan, 2021 2 commits
- 10 Jan, 2021 1 commit
-
-
Leo Prikler authored
Fixes #10.
-
- 02 Jan, 2021 4 commits
-
-
Leo Prikler authored
* tsukundere/math.scm: (anchor:top-left, anchor:center) (anchor:bottom-left): New variables. * tsukundere/textures.scm (%render-texture): Take pos and dim as arrays. (render-texture): Take anchor procedure. Resolve symbols using new definitions.
-
Leo Prikler authored
Use 3-way <=.
-
nixo authored
-
Leo Prikler authored
-
- 21 Dec, 2020 4 commits
-
-
Leo Prikler authored
-
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.
-
Leo Prikler authored
-
Leo Prikler authored
* doc/tsukundere.texi (Preferences): New section. * tsukundere/preferences.scm (add-preference-hook!): Document it.
-
- 13 Dec, 2020 2 commits
-
-
Leo Prikler authored
-
Leo Prikler authored
-
- 04 Dec, 2020 2 commits
-
-
Leo Prikler authored
-
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.
-
- 03 Dec, 2020 1 commit
-
-
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.
-
- 02 Dec, 2020 1 commit
-
-
nixo authored
* tsukundere/script/utils.scm (input): Do not use negative index when pressing backspace on empty input.
-
- 01 Dec, 2020 8 commits
-
-
Leo Prikler authored
-
Leo Prikler authored
Not the commit we deserve, but the one we need...
-
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.
-
Leo Prikler authored
-
Leo Prikler authored
-
Leo Prikler authored
-
Leo Prikler authored
-
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.
-
- 28 Oct, 2020 3 commits
-
-
Leo Prikler authored
-
Leo Prikler authored
-
Leo Prikler authored
* tsukundere/history.scm (%save): Ensure (dirname file) exists.
-
- 19 Oct, 2020 1 commit
-
-
Leo Prikler authored
-
- 18 Oct, 2020 8 commits
-
-
Leo Prikler authored
-
Leo Prikler authored
-
Leo Prikler authored
-
Leo Prikler authored
-
Leo Prikler authored
-
Leo Prikler authored
-
Leo Prikler authored
-
Leo Prikler authored
-
- 17 Oct, 2020 1 commit
-
-
Leo Prikler authored
Fixes #1.
-
- 16 Oct, 2020 1 commit
-
-
Leo Prikler authored
-