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.
Two Player Mode
two player mode is two player control a snake separately to compete for one foodpack using their own controller.
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.
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
- Clone the twosnakes-by-flutter
git clone https://github.com/zoujiemeng/twosnakes-by-flutter.git
-
open the directory and run the app following this instruction.
-
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.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - 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