Skip to content

zoujiemeng/twosnakes-by-flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIT License


Logo

twosnakes-by-flutter

A snake game with two player mode powered by Flutter
Get it at Play Store »

View Demo · report Bug · Request Feature

For Chinese instruction, please refer to 中文项目简介

Table of Contents

About The Project

This is a snake game powered by Flutter with one or two player mode. Everything you can see in this app is generated by code. The most interesting part for me is I can play the game with a friend and change the color of almost everything at anytime.

One Player Mode

one player mode is just like traditional snake game, player could use both controller to control the snake, Please refer to the following demo. by the way, the gif compression algorithm lost too much details for this app, it is highly recommended to get app at Google Play Store or watch HD video at youtube. one player mode preview

Two Player Mode

two player mode is two player control a snake separately to compete for one foodpack using their own controller. two player mode preview

Change Color

user can change color of almost everything at anytime, and the changes take effect realtime even during the game. In fact, the render rate of widgets is quite high in this app since its a game app, and there is only one red bar(stands for a jank) occurred during a 5 minutes performance test. change color preview1 change color preview2

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Installation

If you have never used Flutter before, you can install Flutter following this instruction.

Set up an editor

After the Installation, you may choose a editor you like. Android Studio and VS code are recommended.

play with app

  1. Clone the twosnakes-by-flutter
git clone https://github.com/zoujiemeng/twosnakes-by-flutter.git
  1. open the directory and run the app following this instruction.

  2. Make a change to app source and save the changed file then you can see the change take effect almost immediately on your device! This cool feature is provided by Hot Reload of Flutter.

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Zou Jiemeng - @jiemengzou - jiemengzou@gmail.com

Project Link: https://github.com/zoujiemeng/twosnakes-by-flutter

Acknowledgements