Skip to content

Instantly share code, notes, and snippets.

@iofractorg
Created July 17, 2022 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iofractorg/c121828c69d6a77014c3b9bba8df9e70 to your computer and use it in GitHub Desktop.
Save iofractorg/c121828c69d6a77014c3b9bba8df9e70 to your computer and use it in GitHub Desktop.
Dicey Run

Dicey Run

Endless runner where you begin as a giant dice that can split itself and you begin rolling and the camera keeps moving even when you get stuck. When you lose all your dice then you will lose.

Obstacles are procedurally generated and can be too small for the giant dice to fit through. To fit through the holes you’ll need to split yourself. Splitting yourself can make you faster and more agile (smaller) but you will be more vulnerable (have less mass) to attacks (if have no time to implement attacks then you slowly decay over time). When you are bigger then you are slower and less agile but are less vulnerable to attacks (more health).

Some obstacles can shoot projectiles at your dice or collide with your dice (static obstacle) to force it to split and lose some mass. How much it health it loses depends on its mass. The smaller it is the more mass it loses.

If you touch a chance point (probably should be renamed but idk of a better name) which has a multiplier then the dice will perform the action on the dice face with the strength of the multiplier. The dice face action is randomly generated when the dice is spawned.

You can control your dice by clicking on it and it will jump. The mouse pointer become a box that influences all dices that collide with it. You can resize your box by using the scroll wheel. If you right click your dice and drag and release then it will split towards the direction you dragged it.

Dice color palette: https://colorhunt.co/palette/f0ebe3e4dccf7d9d9c576f72

Obstacle color: black Background color: white (unless you have time to make a proper background)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment