Permalink
Commits on Nov 16, 2017
  1. Experimental in-game menubar system

    Falcury committed Nov 16, 2017
    This partial implementation draws the menubars and menus as a partially transparent overlay on top of the onscreen surface.
    * Added a smaller pixel art font, so that the menu items would fit into the 320 by 200 area.
    * Hovering over menu items works.
    * The menu items themselves are not (yet) functional, they are simply placeholders at the moment.
  2. Match screen updates and timer durations to the refresh rate using VSync

    Falcury committed Nov 16, 2017
    This changes the way screen updates are displayed, and how timers work.
    Instead of relying on SDL_Timer delays, frame timings are now directly handled on the main thread.
    Basically, frame updates occur automatically, everywhere where idle() is called.
    The frame rates and timer accuracy should be more stable than before, thanks to VSync.
    (To examine the timings, uncomment the printf() statement in has_timer_stopped().
    The input latency is also lower now.
    The procedure request_screen_update() and the variable screen_updates_suspended (which were used to control when screen updates were triggered) are entirely removed.
    Also, it is now possible to display user interface elements as an overlay that updates at a higher frequency than the normal game loop (which is fixed at 12 or 10 fps).
    
    Misc other changes:
    * The debug timer is now displayed as a semi-transparent overlay.
    * Fixed: when quickloading from the title screen, the starting level would briefly be displayed (due to draw_level_first()).
    * Simplified various bits of code, where possible.
Commits on Nov 12, 2017
  1. Updated ChangeLog.txt

    NagyD committed Nov 12, 2017
  2. Updated README-SDL.txt

    NagyD committed Nov 12, 2017
Commits on Oct 21, 2017
  1. Merge branch 'preconvert_sounds'

    NagyD committed Oct 21, 2017
    See issue NagyD#142.
  2. Merge pull request NagyD#143 from mbeijen/macos-instructions

    NagyD committed Oct 21, 2017
    Updated Readme.txt - fix macOS instructions
  3. Merge pull request NagyD#141 from vanfanel/master

    NagyD committed Oct 21, 2017
    Add SDL_Joystick interface because not all joysticks are SDL_Controller compatible
Commits on Oct 16, 2017
  1. Updated Readme.txt - fix macOS instructions

    mbeijen committed Oct 16, 2017
    The brew packages mentioned were incorrect.
    Also, I fixed the instructions for where exactly to type `make`.
Commits on Oct 15, 2017
  1. Convert waves to mixer sounds when they are loaded, not when they are…

    NagyD committed Oct 15, 2017
    … first played.
    
    See issue NagyD#142.
Commits on Oct 7, 2017
Commits on Sep 24, 2017
  1. Fixed indenting to use tabs.

    NagyD committed Sep 24, 2017
  2. Merge pull request NagyD#139 from Falcury/audio

    NagyD committed Sep 24, 2017
    Use 8-bit audio samples if linking against older SDL2 versions
Commits on Sep 23, 2017
Commits on Sep 16, 2017
  1. Merge branch 'UTF-8'

    NagyD committed Sep 16, 2017
    See issue NagyD#134
  2. Merge pull request NagyD#135 from Falcury/build

    NagyD committed Sep 16, 2017
    Update CMake and MSVC build scripts; fix unistd.h not found in MSVC
Commits on Sep 12, 2017
  1. Update CMake and MSVC build scripts; fix unistd.h not found in MSVC

    Falcury committed Sep 12, 2017
    * Point to SDL 2.0.6 library files
    * Fixed compiling with MSVC (cl.exe cannot find the unistd.h header)
    * build.bat: use /subsystem:windows,5.01 for compatibility with XP; faster compilation by using the /MP flag (use parallelism on multi-core machines); print a better message to the console, if the build failed.
Commits on Sep 10, 2017
Commits on Aug 20, 2017
Commits on Aug 16, 2017
Commits on Aug 13, 2017
  1. Merge pull request NagyD#132 from Rondom/compile-warnings

    NagyD committed Aug 13, 2017
    Fix implicit-function-declaration warnings
Commits on Aug 12, 2017
  1. Fix implicit-function-declaration warnings

    Rondom committed Aug 9, 2017
    ./sdlpop/src/seg000.c: In function ‘save_game’:
    ./sdlpop/src/seg000.c:1766:6: warning: implicit declaration of function ‘write’; did you mean ‘fwrite’? [-Wimplicit-function-declaration]
      if (write(handle, &rem_min, 2) == 2) goto loc_1DC9;
    ./sdlpop/src/seg000.c:1768:2: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
      close(handle);
    ./sdlpop/src/seg000.c:1770:3: warning: implicit declaration of function ‘unlink’; did you mean ‘unix’? [-Wimplicit-function-declaration]
       unlink(save_path);
    ./sdlpop/src/seg000.c: In function ‘load_game’:
    ./sdlpop/src/seg000.c:1798:6: warning: implicit declaration of function ‘read’; did you mean ‘fread’? [-Wimplicit-function-declaration]
      if (read(handle, &rem_min, 2) == 2) goto loc_1E9E;
    ./sdlpop/src/seg001.c: In function ‘hof_write’:
    ./sdlpop/src/seg001.c:771:6: warning: implicit declaration of function ‘write’; did you mean ‘fwrite’? [-Wimplicit-function-declaration]
          write(handle, &hof_count, 2) != 2 ||
    ./sdlpop/src/seg001.c:773:6: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
          close(handle))
    ./sdlpop/src/seg001.c: In function ‘hof_read’:
    ./sdlpop/src/seg001.c:788:6: warning: implicit declaration of function ‘read’; did you mean ‘fread’? [-Wimplicit-function-declaration]
      if (read(handle, &hof_count, 2) != 2 ||
    ./sdlpop/src/replay.c: In function ‘change_working_dir_to_sdlpop_root’:
    ./sdlpop/src/replay.c:349:3: warning: implicit declaration of function ‘chdir’; did you mean ‘mkdir’? [-Wimplicit-function-declaration]
       chdir(exe_dir);
  2. Mute music with Ctrl+S.

    NagyD committed Aug 12, 2017
  3. Fixed the quicksave note in the splash.

    NagyD committed Aug 12, 2017
    save = F6, load = F9.
Commits on Aug 6, 2017
Commits on Aug 1, 2017
  1. Fixed indentation in replay.c

    NagyD committed Aug 1, 2017
Commits on Jul 31, 2017
  1. Merge pull request NagyD#131 from Falcury/vs

    NagyD committed Jul 31, 2017
    Fix compiling with MSVC and improve build scripts
  2. Merge branch 'master' into vs

    NagyD committed Jul 31, 2017
  3. Merge branch 'auto_input_mode'

    NagyD committed Jul 31, 2017
  4. Merge branch 'fix-identation'

    NagyD committed Jul 31, 2017