Combine games and generate a new one
TypeScript JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
src
.gitattributes
.gitignore
LICENSE.txt
README.md
package.json
tsconfig.json
webpack.config.js

README.md

game-combinator (Demo)

Combine games and generate a new one. (Experimental)

How to work

Combine the games randomly...

helmet flap ...
helmet flap ...
(game helmet                                     (game flap
  (actor stage                                     (actor stage
    (if initial (spawn player))                      (if initial (spawn player))
    (if (random frequently) (spawn enemy))           (if (random frequently) (spawn enemy))
  )                                                )
  (actor player                                    (actor player
    (if initial (place bottom_left))                 (if initial (place left_center))
    (if (key left) (move left))      CROSSOVER       (if (key up) (accelerate up fast))
    (accelerate down normal)    <------------------
                                 ------------------> (if (key right) (move right))
    (if (touch out_of_screen_right) (                (if (touch out_of_screen) miss)
      score                                          (if (touch enemy) miss)
      (place bottom_left)                          )
    ))
    (if (touch out_of_screen) (move step_back))  
  )
  (actor enemy                                     (actor enemy
    (if initial (place top))         CROSSOVER       (if initial (place right))
                                 ------------------> (accelerate down normal)
    (move left)                 <------------------
    (if (touch player) miss)                         (if (touch out_of_screen) (
    (if (touch out_of_screen) remove)                  score
  )                                                    remove
)                                                    ))
                                                   )
                                                 )

and pray that it becomes a game.

generated

Examples of generated games

rainy day
rainy_day
racket fire
racket_fire

Libraries

s-expression / lz-string / lodash / Material Components