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 中文项目简介
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 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 is two player control a snake separately to compete for one foodpack using their own controller.
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.
To get a local copy up and running follow these simple steps.
If you have never used Flutter before, you can install Flutter following this instruction.
After the Installation, you may choose a editor you like. Android Studio and VS code are recommended.
- 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.
See the open issues for a list of proposed features (and known issues).
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
Distributed under the MIT License. See LICENSE
for more information.
Zou Jiemeng - @jiemengzou - [email protected]
Project Link: https://github.com/zoujiemeng/twosnakes-by-flutter