PWM Simulator, v1.2
Posted on

2D puzzle game for Android inspired by pulse-width modulation and various side-scrolling games.
Collect and draw the game stats.
Change Log
- 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;
- metrics:
- drawing:
- 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.
- dynamic width of the stats labels:
- drawing of the game stats:
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;
- it is updated with a custom shift from the last value:
- 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;
- metrics:
- 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.
- dynamic width of the stats labels:
Repository
Link: https://github.com/thewizardplusplus/pwm-simulator/tree/v1.2.
Content: code.
License: MIT.