GithubHelp home page GithubHelp logo

pearmini / life-swings Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 7.28 MB

2020 WeChat Mini-Game Competition National Third Prize!🌱

License: GNU General Public License v3.0

JavaScript 100.00%
minigame wechat-app game-of-life

life-swings's Introduction

Life-swings

Overview

Life-swings is a 3D WeChat game that combines "Building a House" and "Game of Life".

Building a House is a game in which the player operates a hoist that continuously performs a single pendulum movement, and releases the suspended floors at the right moment. The fallen floors are stacked one after another. The higher the pile, the higher the score.

Game of Life is a kind of cellular motivation. Players place some cells in a dead or dead state on a two-dimensional plane. The state of each cell at the next moment is determined by the state of nearby cells in accordance with certain rules. The charm of the life game is that the simple initial state and rules can be evolved to produce complex and wonderful graphics, life is born on the edge of chaos.

Why is it

On the one hand, this game is to cherish the memory of the British mathematician John Horton Conway, who died due to the epidemic. We hopes that after the epidemic, everything grows.

On the other hand, we hope that users will experience the swinging creation of life and the process of its reproduction so that more people can learn about life games and experience the fun of creation.

Life is growing up amidst stumbling, and prosper in swing.

How to play

The game contains two modes: pass mode and classic mode.

The pass mode is designed to help the player complete the initial life state's layout through a series of set initial patterns; the classic mode provides an empty and whiteboard, and the player can freely create the initial state.

Both of these modes can automatically evolve according to the initial state, allowing players to experience the fun of creating life.

Pass mode

There are a total of 20 levels in the pass mode.

The scene will gradually form a series of cylinders at each level, which will be arranged in a specific way. Each cylinder represents a cell. They need the energy to multiply, and the energy comes from a single pendulum that constantly swings. Energy blocks are hanging on the pendulum. Players need to tap the screen at the right time to let the energy blocks fall. Only when the energy block falls in the cell's proper position, the pendulum will automatically move to the next position. Otherwise, the game will fail.

The color of the energy block, the pendulum's speed, and the size of the cell will change depending on the position.

When all cells have energy, they can begin to evolve. Players can observe how these simple cells evolve into complex and beautiful patterns.

Classic mode

After the player has learned the mystery of the proliferation of life games through the pass-through mode, they can go to the classic mode to easily modify the cell state by clicking on the checkerboard and experience the fun of creating life from start to end.

Future works

  • The WeChat version of Life Swings is still in experience version, it will publish official version soon.
  • Refactor the code and add more features.
  • Write a H5 version of Life Swings.

life-swings's People

Contributors

mrdugithub avatar pearmini avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.