World Conquest Chronicles

World Conquest Chronicles

PWM Simulator, v1.3

2D puzzle game for Android inspired by pulse-width modulation and various side-scrolling games.

Add the pause mode.

Change Log

  • pause mode:
    • stopping of updating:
      • of the plots;
      • of the game stats;
  • drawing:
    • drawing of the pause mode.

Features

  • plots:
    • they display functions of time (as in an oscilloscope);
    • they are initially initialized by the average value over the entire length;
    • random plot:
      • it is updated with a random shift from the last value;
      • it takes up three-quarters of the screen width;
    • custom plot:
      • it is updated with a custom shift from the last value:
        • custom shift can be positive (the plot grows);
        • custom shift can be negative (the plot shrinks);
      • it takes up half of the screen width;
    • custom source plot:
      • it is updated by either the minimal or maximal value;
      • it takes up half of the screen width;
  • game stats:
    • metrics:
      • percentage of time when the distance between the random and custom plots was normal;
      • percentage of time when the distance between the random and custom plots fit within the soft limit;
      • percentage of time when the distance between the random and custom plots fit within the hard limit;
    • types:
      • current;
      • best;
  • pause mode:
    • stopping of updating:
      • of the plots;
      • of the game stats;
  • drawing:
    • drawing of plot boundaries;
    • drawing of plots;
    • drawing of a type of distance between the random and custom plots:
      • normal distance;
      • distance that fits within the soft limit;
      • distance that fits within the hard limit;
    • drawing of the game stats:
      • dynamic width of the stats labels:
        • width is selected by the maximum of the current and best values;
      • delay of updating of the best stats:
        • update starts only after all initial values of the custom plot have left the screen;
    • drawing of the pause mode.

Repository

Link: https://github.com/thewizardplusplus/pwm-simulator/tree/v1.3.

Content: code.

License: MIT.